summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-01-29 12:02:58 +0100
committerMateja <mail@matejamaric.com>2021-01-29 12:02:58 +0100
commitc9678556ce632e30672932bf4447b8cc756783a8 (patch)
tree8280978c1f15bfff06edf6a2fe75f4e94a4094c4
parent0c4e03691243c368a21953c3c9ecf0a7f5afac75 (diff)
downloadblog-c9678556ce632e30672932bf4447b8cc756783a8.tar.gz
blog-c9678556ce632e30672932bf4447b8cc756783a8.zip
Adding optional meta tags to baseof template.
-rw-r--r--layouts/_default/baseof.html18
1 files changed, 15 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index cd893d4..6c13084 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -6,9 +6,21 @@
<meta charset="UTF-8" />
<meta author="Mateja Maric" />
- <!--<meta name="description"-->
- <!--content="I am Mateja Maric and this is my personal web site. I am a student from Belgrade, Serbia. I am primarily interested in Unix-like operating systems and free(as in freedom) software.">-->
- <!--<meta name="keywords" content="mateja, maric, homepage, site, blog, contact">-->
+ {{ if .Description }}
+ <meta name="description" content="{{ .Description }}">
+ {{ end }}
+
+ {{ if .Keywords }}
+ <meta name="keywords" content="{{ .Keywords }}">
+ {{ end }}
+
+ {{ if .PublishDate }}
+ <meta property="article:published_time" content="{{ .PublishDate }}" />
+ {{ end }}
+
+ {{ if .Lastmod }}
+ <meta property="article:modified_time" content="{{ .Lastmod }}" />
+ {{ end }}
<link rel="canonical" href="{{ .Permalink }}" />
<meta name="viewport" content="width=device-width initial-scale=1.0" />