Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2021-05-20 05:02:08 +0300
committerzwbetz-gh <zwbetz@gmail.com>2021-05-20 05:02:08 +0300
commitf01266246f865b1351d0c52c8ff40c57848b4e0e (patch)
treec7a58e1b568a3f6590fd1ee3e71b4d053bac65df
parent9a83d805cc450d5f9158ce0e47ffae2f72323789 (diff)
meta description
-rw-r--r--layouts/partials/head.html3
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 }}