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

github.com/eddiewebb/hugo-resume.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEddie Webb <ollitech@gmail.com>2020-02-06 18:01:01 +0300
committerEddie Webb <ollitech@gmail.com>2020-02-06 18:01:01 +0300
commit163be10a0630e32baccafd8b79cf7490cef5a6be (patch)
tree9163ad16ebaa6ca1d7b6f8d2f5ae5b90b0e5d7fd
parentd35679eeb40becf7da446ce69d20e7b0249d7f73 (diff)
seo - page title and description now page specificflexible-names
-rw-r--r--layouts/_default/baseof.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 78f88b8..55e466f 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -3,11 +3,11 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <title>{{ .Title }}</title>
- <meta property="og:title" content="{{ .Title }}" />
+ <title>{{ .Site.Title }} | {{ .Title }}</title>
+ <meta property="og:title" content="{{ .Site.Title }} | {{ .Title }}" />
<meta property="og:image" content="{{ .Site.Params.profileImage | absURL }}" />
- <meta name="description" content="{{ .Site.Params.description }}">
- <meta property="og:description" content="{{ .Site.Params.description }}" />
+ <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{else}}{{ .Description }}{{ end }}">
+ <meta property="og:description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{else}}{{ .Description }}{{ end }}" />
<meta name="author" content="{{ .Site.Params.firstName }} {{ .Site.Params.lastName }}">
<!-- Bootstrap core CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">