diff options
Diffstat (limited to 'themes/bare/layouts/_default/list.html')
| -rwxr-xr-x | themes/bare/layouts/_default/list.html | 21 |
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 }} | ||
