diff options
-rw-r--r-- | layouts/partials/head.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f7d2f4d..c2a9d7e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,6 +2,9 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> {{ hugo.Generator }} + {{ $summary := trim (.Summary | plainify | htmlUnescape) "\n\r" + | default .Title }} + <meta name="description" content="{{ $summary }}"> <link rel="stylesheet" href="{{ "css/bootstrap.min.css" | absURL }}"> {{ $title := print .Title " | " .Site.Title }} {{ if .IsHome }} |