aboutsummaryrefslogtreecommitdiff
path: root/themes/bare/layouts/_default/list.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-12-20 20:33:57 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-12-20 20:33:57 +0100
commit1ac073cc30a23b68371e819c77422b4906dd4f20 (patch)
tree52469a6067a714dc93fb5a971ab620dd4a1c6c46 /themes/bare/layouts/_default/list.html
parent6342c2d1cc08bf6edb7f0ffdbdb69ce5b8be62dd (diff)
downloadmitjafelicijan.com-1ac073cc30a23b68371e819c77422b4906dd4f20.tar.gz
Move to bare theme.
Diffstat (limited to 'themes/bare/layouts/_default/list.html')
-rwxr-xr-xthemes/bare/layouts/_default/list.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/themes/bare/layouts/_default/list.html b/themes/bare/layouts/_default/list.html
new file mode 100755
index 0000000..73952eb
--- /dev/null
+++ b/themes/bare/layouts/_default/list.html
@@ -0,0 +1,21 @@
1{{ define "main" }}
2<main role="main">
3
4 <!-- List of all blog posts -->
5 <nav itemscope itemtype="https://schema.org/SiteNavigationElement" role="feed">
6 <meta itemprop="name" content="Article list">
7 {{ range (where .Site.RegularPages "Section" "posts") }}
8 <article itemscope itemtype="http://schema.org/Article" style="padding-bottom:10px;">
9 <time style="display:inline-block;width:70px">{{ .Date.Format "Jan 2006" }}</time>
10 <a href="/{{ .Params.url }}" itemprop="url" rel="bookmark noopener" aria-label="Opens URL">
11 {{ if .Params.draft }}
12 <span style="background:orange">Draft</span>
13 {{ end }}
14 {{.Title}}
15 </a>
16 </article>
17 {{ end }}
18 </nav>
19
20</main>
21{{ end }}