1
0
Fork 0
mirror of https://github.com/Findus23/guides.git synced 2024-09-19 16:03:51 +02:00
guides/layouts/_default/single.html

46 lines
1.7 KiB
HTML

{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<a href="/">Other guides</a>
<article>
<header>
<h1>{{ .Title }}</h1>
{{ if (gt .Params.date 0) }}
<p>
<span class="date">{{ .Date.Format "2006-01-02" }} (last changed on {{ .Lastmod.Format "2006-01-02" }})</span>
{{ with .Params.author }}
by <span class="author">{{ . }}</span>
{{ end }}
</p>
{{ end }}
<nav class="categories">
{{ range (.GetTerms "categories") }}
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
</nav>
test
</header>
<aside>
<div class="table-of-contents">
{{ partial "toc.html" . }}
</div>
</aside>
{{ .Content }}
{{ if not .Params.no_feedback }}
<div class="alert info">You have any feedback or ideas to improve this? Contact me on Social Media or <a
href="mailto:guides@lw1.at">per E-Mail</a>. You can find my other projects at <a
href="https://lw1.at/">lw1.at</a>.
</div>
{{ end }}
{{ if .Params.cc_license }}
<div class="alert info">
This guide is licensed under the
<a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noopener">
Creative Commons Attribution-ShareAlike 4.0 International license</a>.
</div>
{{ end }}
</article>
{{ end }}