mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-18 02:40:39 +00:00
Robert Kaussow
5e105c9ff4
BREAKING CHANGE: Build-in icons are prefixed with `gdoc_` now. If you use build-in icons in e.g. menus you have to rename these references!
20 lines
700 B
HTML
20 lines
700 B
HTML
{{ define "main" }}
|
|
<article class="gdoc-markdown gdoc-post">
|
|
<header class="gdoc-post__header">
|
|
<h1 class="gdoc-post__title">{{ .Title }}</h1>
|
|
<div class="gdoc-post__date">
|
|
<svg class="icon gdoc_date"><use xlink:href="#gdoc_date"></use></svg>
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
|
{{ if ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02") }}
|
|
Updated on
|
|
{{ end }}
|
|
{{ .Lastmod.Format "Jan 2, 2006" }}
|
|
</time>
|
|
</div>
|
|
</header>
|
|
<div>
|
|
{{ partial "content" . }}
|
|
</div>
|
|
</article>
|
|
{{ end }}
|