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

github.com/guangmean/Niello.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguangmean <angularcorp@outlook.com>2019-01-09 12:51:57 +0300
committerguangmean <angularcorp@outlook.com>2019-01-09 12:51:57 +0300
commit30ba099cf1c765e01d347b8e327db070ab6ba7b9 (patch)
tree1c1772df08b222b23a152535aa12c1772b483e02
parentf55eaa13be3b369a40ae1768b19d9b3db8c515b4 (diff)
SEO
Keywords and Descriptions
-rw-r--r--layouts/partials/head.html4
-rw-r--r--layouts/post/single.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f574d84..b64d145 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,8 +2,8 @@
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
{{ partial "title.html" . }}
- <meta name="keywords" content="{{ .Params.keywords }}">
- <meta name="description" content="">
+ <meta name="keywords" content="{{ with .Keywords }} {{- delimit . ", " -}} {{ end }}">
+ <meta name="description" content="{{ with .Description }} {{- . -}} {{ end }}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{{.Site.BaseURL | relLangURL}}css/highlight.min.css">
<link rel="stylesheet" href="{{.Site.BaseURL | relLangURL}}css/normalize.css">
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 30417c4..7451490 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -1,7 +1,7 @@
<!doctype html>
<html class="no-js" lang="">
-{{ partial "head.html" }}
+{{ partial "head.html" . }}
<body>
{{ `<!--[if lte IE 9]>