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

github.com/zwbetz-gh/cayman-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz <zachary.w.betz@uscis.dhs.gov>2021-05-20 04:58:14 +0300
committerzwbetz <zachary.w.betz@uscis.dhs.gov>2021-05-20 04:58:14 +0300
commitd632daf51331a466c1d1651a10090d414896e304 (patch)
treebcf1aef7dd59cabd44aad6def65c031fe278a9b9
parent17a56c5951570bca6bd37f100e704731648ccae3 (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 45cdf20..118246b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,6 +3,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{{ hugo.Generator }}
+ {{ $summary := trim (.Summary | plainify | htmlUnescape) "\n\r"
+ | default .Title }}
+ <meta name="description" content="{{ $summary }}">
<link rel="stylesheet" href="{{ "css/normalize.css" | absURL }}">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
{{ $caymanScss := "scss/cayman.scss" }}