File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2121 {{ .Site.Title -}}
2222 {{ end -}}
2323</ title >
24- {{ $desc := .Page.Description | default (.Page.Content | safeHTML | truncate 150) -}}
25- < meta name ="description " content ="{{ $desc }} ">
24+ < meta name ="description " content ="{{ template "partials /page-description.html" . }}">
2625{{ template "_internal/opengraph.html" . -}}
2726{{ template "_internal/schema.html" . -}}
2827{{ template "_internal/twitter_cards.html" . -}}
Original file line number Diff line number Diff line change 1+ {{ with .Description | plainify -}}
2+ {{ . -}}
3+ {{ else -}}
4+ {{ if .IsPage -}}
5+ {{ .Summary | plainify | chomp -}}
6+ {{ else -}}
7+ {{ with .Site.Params.description | plainify -}}
8+ {{ . -}}
9+ {{ end -}}
10+ {{ end -}}
11+ {{ end -}}
You can’t perform that action at this time.
0 commit comments