diff options
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d31e3be..6b23466 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,6 +10,10 @@ {{ with .Site.Params.homeMetaContent }} <meta name="description" content="{{ . | plainify }}"> {{ end }} + {{ else }} + {{ $summary := trim (.Summary | plainify | htmlUnescape) "\n\r" + | default .Title }} + <meta name="description" content="{{ $summary }}"> {{ end }} <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> |