abdullahtarawneh.com/layouts/blog/list.html

37 lines
1.3 KiB
HTML
Raw Normal View History

2021-12-20 11:27:10 +00:00
{{ define "main" }}
2024-06-02 05:04:04 +00:00
<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 }}
2021-12-20 11:27:10 +00:00
</header>
2024-06-02 05:04:04 +00:00
<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>
2021-12-20 11:27:10 +00:00
{{ end }}
2024-06-02 05:04:04 +00:00
</ul>
{{ end }}
</section>
<section class="posts">
<h2>Posts</h2>
{{ $paginator := .Paginate .RegularPages 10 }}
{{ range $paginator.Pages }}
{{ partial "category/h-entry.html" .}}
{{ end }}
{{ template "_internal/pagination.html" . }}
2021-12-20 11:27:10 +00:00
</section>
</main>
{{ end }}