diff options
author | Angelo Stavrow <contact@angelostavrow.com> | 2019-08-28 13:51:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 13:51:26 +0300 |
commit | 0fd2e272a9ebec937e097b33f24e9addaf16c754 (patch) | |
tree | ae78a3e3ac66adbdfa2720b7380f261908113ea9 | |
parent | e60e29352a33ae85ec95ceb1ce7c9c8369ac80d6 (diff) | |
parent | ec198a9fc364cd77ef2140d60740419c554f4c6e (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.html | 6 |
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> |