Didn't quite think that last change through

This commit is contained in:
BBaoVanC 2021-11-22 15:13:41 -06:00
parent f9e7eeeaa6
commit 2fdc78050a
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
6 changed files with 20 additions and 13 deletions

View File

@ -1,9 +1,7 @@
{{- with .Description -}} {{ with .Description }}
<p>{{- . | markdownify -}}</p> <p>{{ . | markdownify }}</p>
{{- else -}} {{ else }}
{{- with .Summary -}} {{ with .Summary }}
{{- . -}} {{ . }}
{{- else -}} {{ end }}
{{- .Site.Params.description -}} {{ end }}
{{- end -}}
{{- end -}}

View File

@ -33,5 +33,5 @@
{{ partial "seo-tags/author.html" . }} {{ partial "seo-tags/author.html" . }}
<meta name="language" content="{{ .Language.Lang }}"> <meta name="language" content="{{ .Language.Lang }}">
<meta name="description" content="{{ (partial "description-or-summary.html" .) | plainify }}"> <meta name="description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
</head> </head>

View File

@ -0,0 +1,9 @@
{{- with .Description -}}
<p>{{- . | markdownify -}}</p>
{{- else -}}
{{- with .Summary -}}
{{- . -}}
{{- else -}}
{{- .Site.Params.description -}}
{{- end -}}
{{- end -}}

View File

@ -1,5 +1,5 @@
<meta property="og:title" content="{{ .Title | plainify }}"> <meta property="og:title" content="{{ .Title | plainify }}">
<meta property="og:description" content="{{ (partial "description-or-summary.html" .) | plainify }}"> <meta property="og:description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"> <meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
<meta property="og:url" content="{{ .Permalink }}"> <meta property="og:url" content="{{ .Permalink }}">

View File

@ -1,5 +1,5 @@
<meta itemprop="name" content="{{ .Title | plainify }}"> <meta itemprop="name" content="{{ .Title | plainify }}">
<meta itemprop="description" content="{{ (partial "description-or-summary.html" .) | plainify }}"> <meta itemprop="description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
{{ $format := "2006-01-02T15:04:05-07:00" }} {{ $format := "2006-01-02T15:04:05-07:00" }}
{{ with .Date }} {{ with .Date }}

View File

@ -22,7 +22,7 @@
{{ end }} {{ end }}
<meta name="twitter:title" content="{{ .Title | plainify }}"> <meta name="twitter:title" content="{{ .Title | plainify }}">
<meta name="twitter:description" content="{{ (partial "description-or-summary.html" .) | plainify }}"> <meta name="twitter:description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
{{ with .Site.Social.twitter }} {{ with .Site.Social.twitter }}
<meta name="twitter:site" content="@{{ . }}"> <meta name="twitter:site" content="@{{ . }}">