summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html20
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/blog/single.html18
3 files changed, 25 insertions, 15 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 694d8a0..56e582c 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,12 +5,10 @@
<meta name="yandex-xverification" content="fc9dd63070a12909">
<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">-->
- <!--<link rel="canonical" href="https://matejamaric.com" />-->
-
+ {{ if .Description }}
+ <meta name="description" content="{{ .Description }}">
+ {{ end }}
+ <link rel="canonical" href="{{ .Permalink }}" />
<meta name="viewport" content="width=device-width initial-scale=1.0" />
<link href="/style.css" rel="stylesheet" type="text/css" />
<title>{{ .Title }}</title>
@@ -19,11 +17,11 @@
<body>
<nav>
<div class="mm">Mateja Maric</div>
- <a class="{{ if eq .URL `/`}}active{{ end }}" href="/">Home</a>
- <a class="{{ if eq .URL `/blog/`}}active{{ end }}" href="/blog/">Blog</a>
- <a href="https://github.com/MatejaMaric">GitHub</a>
- <a href="https://git.matejamaric.com">Git server</a>
- <a class="{{ if eq .URL `/contact/`}}active{{ end }}" href="/contact/">Contact</a>
+ <a {{ if eq .RelPermalink "/" }} class="active" {{ end }} href="/">Home</a>
+ <a {{ if eq .RelPermalink "/blog/" }} class="active" {{ end }} href="/blog/">Blog</a>
+ <a target="_blank" href="https://github.com/MatejaMaric">GitHub</a>
+ <a target="_blank" href="https://git.matejamaric.com">Git server</a>
+ <a {{ if eq .RelPermalink "/contact/" }} class="active" {{ end }} href="/contact/">Contact</a>
</nav>
<main>
{{ block "main" . }}{{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2fcfeba..2051961 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -3,7 +3,7 @@
<h3>Posts</h3>
<ul>
{{ range .Pages }}
- <li>{{ .Date.Format "2 Jan 2006" }} - <a href="{{ .URL }}">{{ .Title }}</a></li>
+ <li>{{ .Date.Format "2 Jan 2006" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index 4db531d..50ec4d8 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -1,7 +1,19 @@
{{ define "main" }}
-<h1>{{ .Title }}</h1>
+<div itemscope itemtype="http://schema.org/Article">
+ <h1 itemprop="headline">{{ .Title }}</h1>
-<em>{{ .Date.Format "2 Jan 2006" }}</em>
+ <em>
+ Published:
+ <time itemprop="dateCreated" datetime="{{ .Date.Format `2006-01-02` }}">{{ .Date.Format "2 Jan 2006" }}</time>
+ {{ if not (eq .Lastmod .Date) }}
+ <br>Modified:
+ <time itemprop="dateModified"
+ datetime="{{ .Lastmod.Format `2006-01-02` }}">{{ .Lastmod.Format "2 Jan 2006" }}</time>
+ {{ end }}
+ </em>
-{{ .Content }}
+ <div itemprop="articleBody">
+ {{ .Content }}
+ </div>
+</div>
{{ end }}