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

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <contact@angelostavrow.com>2019-08-28 13:51:26 +0300
committerGitHub <noreply@github.com>2019-08-28 13:51:26 +0300
commit0fd2e272a9ebec937e097b33f24e9addaf16c754 (patch)
treeae78a3e3ac66adbdfa2720b7380f261908113ea9
parente60e29352a33ae85ec95ceb1ce7c9c8369ac80d6 (diff)
parentec198a9fc364cd77ef2140d60740419c554f4c6e (diff)
Merge pull request #46 from web-work-tools/master
Change head so title and description are chosen for each page (closes #50).
-rw-r--r--layouts/partials/head.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b02bdf6..b4061f9 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,8 +1,8 @@
<head>
<meta charset="utf-8">
<!-- Site details -->
- <title>{{ .Site.Title }}</title>
- <meta name="description" content="{{ .Site.Params.Description }}">
+ <title>{{ .Title }} | {{ .Site.Title }}</title>
+ <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta name="author" content="{{ .Site.Params.AuthorName }}">
<!-- Favicon details -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
@@ -23,4 +23,4 @@
<style type="text/css">{{ partial "fonts.css" . | safeCSS }}</style>
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
-</head> \ No newline at end of file
+</head>