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-25 11:10:56 +0300
committerguangmean <angularcorp@outlook.com>2019-01-25 11:10:56 +0300
commitb59d0ace1dc82a166803ed7610da58d90b45f8ba (patch)
treef7a2613f4965c39c4b439423dbd71c7176909359
parentee4646c71f3b635eea6b38ba6aab83eb9dc7f2d5 (diff)
Update head.html
SEO for home page
-rw-r--r--layouts/partials/head.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f077dc6..3f43ece 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,8 +3,13 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1">
{{ partial "title.html" . }}
+ {{ if eq .IsHome true }}
+ <meta name="keywords" content="{{- .Site.Params.keywords -}}">
+ <meta name="description" content="{{- .Site.Params.description -}}">
+ {{ else }}
<meta name="keywords" content="{{ with .Keywords }} {{- delimit . ", " -}} {{ end }}">
<meta name="description" content="{{ with .Description }} {{- . -}} {{ end }}">
+ {{ end }}
<link rel="stylesheet" href="{{.Site.BaseURL | relLangURL}}css/highlight.min.css">
<link rel="stylesheet" href="{{.Site.BaseURL | relLangURL}}css/normalize.css">
<link rel="stylesheet" href="{{.Site.BaseURL | relLangURL}}css/diello.css">