diff options
author | dataCobra <datacobra@thinkbot.de> | 2021-02-06 18:11:56 +0300 |
---|---|---|
committer | dataCobra <datacobra@thinkbot.de> | 2021-02-06 18:11:56 +0300 |
commit | 0e274e6befbd8dcec0378d98162d227947764b0e (patch) | |
tree | 54b6e0a3d8f489d28ec63798490f5759dd77a57c /layouts | |
parent | fb4da6dd00d6b5515908a088e8b5b47781ae6ebe (diff) |
Change size of default descriptions
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/rss.xml | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3f9e39f..2e3a8d8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -34,7 +34,7 @@ {{ if isset .Params "description" }} {{ .Description }} {{ else }} - {{ .Plain | htmlUnescape | safeHTML | truncate 120 }} + {{ .Plain | htmlUnescape | safeHTML | truncate 140 }} {{ end }} </span> </div> diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 1d7bc19..b1a586c 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -45,7 +45,7 @@ {{ if isset .Params "description" }} {{ .Description }} {{ else }} - {{ .Plain | htmlUnescape | safeHTML | truncate 120 }} + {{ .Plain | htmlUnescape | safeHTML | truncate 140 }} {{ end }} </description> </item> diff --git a/layouts/index.html b/layouts/index.html index 1bb144d..5263aff 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -85,7 +85,7 @@ {{ if isset .Params "description" }} {{ .Description }} {{ else }} - {{ .Plain | htmlUnescape | safeHTML | truncate 120 }} + {{ .Plain | htmlUnescape | safeHTML | truncate 140 }} {{ end }} </span> </div> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index caa1c6a..f104f2c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -20,7 +20,7 @@ {{- end -}} <!-- Description is either out of the config or in front matter of a page --> {{- if or .Description $.Site.Params.description -}} - <meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ .Description }}{{ end }}"> + <meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ if isset .Params "description" }}{{ .Description }}{{ else }}{{ .Plain | htmlUnescape | safeHTML | truncate 140 }}{{ end }}{{ end }}"> {{- end -}} {{- template "_internal/opengraph.html" . -}} {{- template "_internal/twitter_cards.html" . -}} |