Fix the site meta description to pull from the localized site data (#121)
This commit is contained in:
parent
47c4ef0251
commit
43d97217c2
1 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,14 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<title>{{- .Site.Title -}}</title>
|
||||
<meta name="description" content="{{ .Site.Params.description }}" />
|
||||
{{ $siteDescription := .Site.Params.description }}
|
||||
{{ if (index .Site.Data .Site.Language.Lang).site }}
|
||||
{{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
|
||||
{{ if $siteConfig.description }}
|
||||
{{ $siteDescription = $siteConfig.description }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<meta name="description" content="{{ $siteDescription }}" />
|
||||
<!-- import common headers -->
|
||||
{{- partial "header.html" . -}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue