diff --git a/layouts/_default/li.html b/layouts/_default/li.html index 7ac057e..96fb602 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -8,5 +8,5 @@ -->
  • {{ .Title }} - {{ .Description | markdownify }} + {{ .Description | $.Page.RenderString | emojify }}
  • diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cff2b70..8e0a736 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -45,7 +45,7 @@

    {{ .Title }}


    Description/Summary

    {{ with .Description }} - {{ . | markdownify }} + {{ . | $.Page.RenderString | emojify }} {{ else }} {{ partial "summary_minus_toc.html" . | safeHTML }} {{ end }} diff --git a/layouts/partials/header_image.html b/layouts/partials/header_image.html index 18da4a0..c495548 100644 --- a/layouts/partials/header_image.html +++ b/layouts/partials/header_image.html @@ -5,25 +5,25 @@

    Featured/Header Image

    {{ $size := .Params.size | default 800 }} {{ $image := $original.Resize (printf "%dx" $size) }}
    - -
    + +
    {{ with .Params }} - {{ with .caption }} - {{ . | markdownify }} + {{ with .caption }} + {{ . | $.Page.RenderString | emojify }} {{ end }} {{ if .credit }} {{ printf "(Credit: " | safeHTML -}} {{- with .url -}} {{- printf `` . | safeHTML -}} {{- end -}} - {{- .credit | markdownify -}} + {{- .credit | $.Page.RenderString -}} {{- with .url -}} {{- printf "" | safeHTML -}} {{- end -}} {{- printf ")" | safeHTML }} {{ end }} {{ end }} -
    +
    {{ if (not ($.Param "disable_debug")) }} {{ with .Params }} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index da763ac..86f1629 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -2,7 +2,7 @@ {{ $permalink_pretty := .Permalink | replaceRE "\\.html$" "/" }} + content="{{ with .Description }}{{ . | $.Page.RenderString | plainify }}{{ else }}{{ if .IsPage }}{{ partial "summary_minus_toc.html" . | $.Page.RenderString | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . | $.Page.RenderString | plainify }}{{ end }}{{ end }}{{ end }}" /> {{ with .Params.images }} diff --git a/layouts/partials/summary_minus_toc.html b/layouts/partials/summary_minus_toc.html index a8faac7..224a438 100644 --- a/layouts/partials/summary_minus_toc.html +++ b/layouts/partials/summary_minus_toc.html @@ -1,5 +1,5 @@ {{- with .Description -}} - {{- . | markdownify | printf "

    %s

    " | safeHTML -}} + {{- . | $.Page.RenderString | printf "

    %s

    " | safeHTML -}} {{- else -}} {{- $summary_has_org_toc := substr .Content 0 30 | findRE "[\".]ox-hugo-toc" -}} {{- if $summary_has_org_toc -}} @@ -9,9 +9,9 @@ {{- $summary_raw := index $content_splits 1 -}} {{- $summary_splits := split $summary_raw "" -}} {{- if eq (len $summary_splits) 2 -}} - {{- index $summary_splits 0 | markdownify -}} + {{- index $summary_splits 0 | $.Page.RenderString -}} {{- else -}} - {{- $summary_raw | markdownify | truncate 300 -}} + {{- $summary_raw | $.Page.RenderString | truncate 300 -}} {{- end -}} {{- else -}} diff --git a/layouts/partials/twitter_cards.html b/layouts/partials/twitter_cards.html index b2f25ec..c6623ed 100644 --- a/layouts/partials/twitter_cards.html +++ b/layouts/partials/twitter_cards.html @@ -34,7 +34,7 @@ {{- end -}} {{- end }} - + {{ with .Site.Social.twitter -}} diff --git a/layouts/shortcodes/figure2.html b/layouts/shortcodes/figure2.html index 60661dd..4c48c2a 100644 --- a/layouts/shortcodes/figure2.html +++ b/layouts/shortcodes/figure2.html @@ -1,15 +1,15 @@ {{ if .Get "link"}}{{ end }} - + {{ if .Get "link"}}{{ end }} {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
    {{ if isset .Params "title" }}

    {{ .Get "title" }}

    {{ end }} {{ if or (.Get "caption") (.Get "attr")}}

    - {{ .Get "caption" | markdownify }} + {{ .Get "caption" | $.Page.RenderString }} {{ with .Get "attrlink"}} {{ end }} - {{ .Get "attr" | markdownify }} + {{ .Get "attr" | $.Page.RenderString }} {{ if .Get "attrlink"}} {{ end }}

    {{ end }}