aboutsummaryrefslogtreecommitdiff
path: root/themes/bare/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/bare/layouts/_default')
-rwxr-xr-xthemes/bare/layouts/_default/baseof.html14
-rwxr-xr-xthemes/bare/layouts/_default/list.html21
-rwxr-xr-xthemes/bare/layouts/_default/rss.xml27
-rwxr-xr-xthemes/bare/layouts/_default/single.html20
4 files changed, 82 insertions, 0 deletions
diff --git a/themes/bare/layouts/_default/baseof.html b/themes/bare/layouts/_default/baseof.html
new file mode 100755
index 0000000..79c7684
--- /dev/null
+++ b/themes/bare/layouts/_default/baseof.html
@@ -0,0 +1,14 @@
1<!DOCTYPE html>
2<html lang="en">
3
4{{ partial "head.html" . }}
5
6<body>
7 {{ partial "navigation.html" . }}
8 <div id="content">
9 {{ block "main" . }}{{ end }}
10 </div>
11 {{ partial "footer.html" . }}
12</body>
13
14</html> \ No newline at end of file
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 }}
diff --git a/themes/bare/layouts/_default/rss.xml b/themes/bare/layouts/_default/rss.xml
new file mode 100755
index 0000000..6a35b96
--- /dev/null
+++ b/themes/bare/layouts/_default/rss.xml
@@ -0,0 +1,27 @@
1<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
2
3 <channel>
4
5 <title>{{ .Site.Author.name }}</title>
6 <link>{{ .Permalink }}</link>
7 <description>{{ .Site.Params.description }}</description>
8 <language>en-us</language>
9
10 {{ range (where .Site.RegularPages "Section" "posts") }}
11 <item>
12
13 <title>{{ .Title }}</title>
14 <link>{{ .Permalink }}</link>
15 <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
16 {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
17 <guid>{{ .Permalink }}</guid>
18
19 <description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description>
20 <content:encoded>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></content:encoded>
21
22 </item>
23 {{end}}
24
25 </channel>
26
27</rss>
diff --git a/themes/bare/layouts/_default/single.html b/themes/bare/layouts/_default/single.html
new file mode 100755
index 0000000..23a60a9
--- /dev/null
+++ b/themes/bare/layouts/_default/single.html
@@ -0,0 +1,20 @@
1{{ define "main" }}
2<main role="main">
3
4 <!-- Single article -->
5 <article itemtype="http://schema.org/Article">
6 <header>
7 <h1 itemtype="headline">{{ .Title }}</h1>
8
9 {{ if in .Type "posts" }}
10 <time>Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time>
11 {{ end }}
12 </header>
13
14 <div>
15 {{.Content}}
16 </div>
17 </article>
18
19</main>
20{{ end }}