diff options
-rw-r--r-- | archetypes/default.md | 1 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/archetypes/default.md b/archetypes/default.md index 2752ac1..1ccf64c 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,7 @@ +++ tags = [] categories = [] +description = "" menu = "" banner = "" images = [] diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 00a57be..b35f51e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,7 +6,11 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} - {{ with .Site.Params.site_description }}<meta name="description" content="{{ . }}">{{ end }} + {{ with .Description }} + <meta name="description" content="{{ . }}"> + {{ else }} + <meta name="description" content="{{ .Site.Params.site_description }}"> + {{ end }} {{ if .RSSlink }} <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> <link href="{{ .RSSlink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> |