mirror of
https://github.com/andrewgioia/blog.git
synced 2024-12-23 02:39:55 +00:00
75 lines
2.1 KiB
HTML
75 lines
2.1 KiB
HTML
{{ define "title" }}
|
|
{{ .Title }} – {{ .Site.Title }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
|
|
<main id="thought" aria-role="main">
|
|
|
|
{{ with .Paginator }}
|
|
<aside class="paginate">
|
|
|
|
{{ if .HasPrev }}
|
|
<a href="{{ .Prev }}" id="previous">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="max(5vmax, 4rem)" height="max(5vmax, 4rem)" viewBox="0 0 24 24" fill="none" stroke="var(--text-color-subdued)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="15 18 9 12 15 6" />
|
|
</svg>
|
|
</a>
|
|
{{ end }}
|
|
|
|
<div id="meta">
|
|
<h1>
|
|
{{ .Title }}
|
|
</h1>
|
|
<time>
|
|
{{ .PublishDate.Format "January 2, 2006" }}
|
|
</time>
|
|
{{ with (.Params.tags) }}
|
|
<ul id="tags" class="clean">
|
|
{{ range . }}
|
|
<li>
|
|
<a href="{{ "tags/" | absURL }}{{ . | urlize }}">#{{ . }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ if .HasNext }}
|
|
<a href="#" id="next">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="max(5vmax, 4rem)" height="max(5vmax, 4rem)" viewBox="0 0 24 24" fill="none" stroke="var(--text-color-subdued)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="9 18 15 12 9 6" />
|
|
</svg>
|
|
</a>
|
|
{{ end }}
|
|
|
|
</aside>
|
|
|
|
{{ else }}
|
|
<aside>
|
|
<div id="meta">
|
|
<h1>
|
|
{{ .Title }}
|
|
</h1>
|
|
<time>
|
|
{{ .PublishDate.Format "January 2, 2006" }}
|
|
</time>
|
|
{{ with (.Params.tags) }}
|
|
<ul id="tags" class="clean">
|
|
{{ range . }}
|
|
<li>
|
|
<a href="{{ "tags/" | absURL }}{{ . | urlize }}">#{{ . }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</div>
|
|
</aside>
|
|
{{ end }}
|
|
|
|
<article>
|
|
{{ .Content }}
|
|
</article>
|
|
</main>
|
|
|
|
{{ end }} |