a
2247ee2776
still missing some things but they were missing before anyway. so it's probably better to just push and deploy already. Reviewed-on: #1
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
{{ define "main" }}
|
|
<main class="blog list container h-feed">
|
|
<header class="page-header">
|
|
<h1 class="page-title p-name">{{ .Title }}</h1>
|
|
<p>h-feed URL: <a class="u-url u-uid" href="{{ .Permalink }}" rel="self">{{ .Permalink }}</a></p>
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
<p>
|
|
<a href="{{ .Permalink}}" rel="{{ .Rel }}" type="{{ .MediaType.Type }}">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><title>vaadin:rss-square</title><path fill="currentColor" d="M0 0v16h16V0zm3.6 14c-.9 0-1.6-.7-1.6-1.6s.7-1.6 1.6-1.6s1.6.7 1.6 1.6S4.6 14 3.6 14m4 0c0-3.1-2.5-5.6-5.6-5.6V6c4.4 0 8 3.6 8 8zm4 0c0-5.3-4.3-9.6-9.6-9.6V2c6.6 0 12 5.4 12 12z"/></svg>
|
|
<span>RSS Feed</span>
|
|
</a>
|
|
</p>
|
|
{{ end }}
|
|
</header>
|
|
<section class="categories">
|
|
<h2>Categories</h2>
|
|
{{ with .Site.Taxonomies.categories }}
|
|
<ul>
|
|
{{ range .Alphabetical }}
|
|
<li>
|
|
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> <span>({{ .Count }})</span>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</section>
|
|
<section class="posts">
|
|
<h2>Posts</h2>
|
|
{{ $paginator := .Paginate .RegularPages 10 }}
|
|
|
|
{{ range $paginator.Pages }}
|
|
{{ partial "list/h-entry.summary.html" . }}
|
|
{{ end }}
|
|
{{ template "_internal/pagination.html" . }}
|
|
</section>
|
|
</main>
|
|
{{ end }} |