diff options
author | Mateja <mail@matejamaric.com> | 2021-03-26 13:50:17 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-03-26 13:50:17 +0100 |
commit | c2315bccc5f3f25e378d549cd17da93c6b6c8a96 (patch) | |
tree | 5f3654d4850bbb295d3d4199e562385543adc1ba /layouts/blog/single.html | |
parent | 3b0f0e86b8f012ed71bd3f652369b9d5d8a352b0 (diff) | |
parent | 47f5fbe92a7a5cc8f9906927e73527d278d2b542 (diff) | |
download | blog-c2315bccc5f3f25e378d549cd17da93c6b6c8a96.tar.gz blog-c2315bccc5f3f25e378d549cd17da93c6b6c8a96.zip |
Merge branch 'main' of github.com:MatejaMaric/blog into main
Diffstat (limited to 'layouts/blog/single.html')
-rw-r--r-- | layouts/blog/single.html | 18 |
1 files changed, 15 insertions, 3 deletions
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 }} |