diff options
author | Mateja <mail@matejamaric.com> | 2021-01-29 12:02:58 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-01-29 12:02:58 +0100 |
commit | c9678556ce632e30672932bf4447b8cc756783a8 (patch) | |
tree | 8280978c1f15bfff06edf6a2fe75f4e94a4094c4 /layouts | |
parent | 0c4e03691243c368a21953c3c9ecf0a7f5afac75 (diff) | |
download | blog-c9678556ce632e30672932bf4447b8cc756783a8.tar.gz blog-c9678556ce632e30672932bf4447b8cc756783a8.zip |
Adding optional meta tags to baseof template.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 18 |
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" /> |