diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2021-05-20 05:02:08 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2021-05-20 05:02:08 +0300 |
commit | f01266246f865b1351d0c52c8ff40c57848b4e0e (patch) | |
tree | c7a58e1b568a3f6590fd1ee3e71b4d053bac65df | |
parent | 9a83d805cc450d5f9158ce0e47ffae2f72323789 (diff) |
meta description
-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 }} |