mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
tpl/tplimpl: Trim descriptions rather than just chomp
This commit is contained in:
parent
9b635522e2
commit
039845804f
3 changed files with 6 additions and 6 deletions
|
@ -8,8 +8,8 @@
|
||||||
<meta property="og:title" content="{{ . }}">
|
<meta property="og:title" content="{{ . }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }}
|
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape }}
|
||||||
<meta property="og:description" content="{{ . }}">
|
<meta property="og:description" content="{{ trim . "\n\r\t " }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with or .Params.locale site.Language.LanguageCode }}
|
{{- with or .Params.locale site.Language.LanguageCode }}
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<meta itemprop="name" content="{{ . }}">
|
<meta itemprop="name" content="{{ . }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }}
|
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape }}
|
||||||
<meta itemprop="description" content="{{ . }}">
|
<meta itemprop="description" content="{{ trim . "\n\r\t " }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
|
{{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
<meta name="twitter:title" content="{{ . }}">
|
<meta name="twitter:title" content="{{ . }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }}
|
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape }}
|
||||||
<meta name="twitter:description" content="{{ . }}">
|
<meta name="twitter:description" content="{{ trim . "\n\r\t " }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $twitterSite := "" }}
|
{{- $twitterSite := "" }}
|
||||||
|
|
Loading…
Reference in a new issue