summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html13
-rw-r--r--layouts/_default/single.html13
2 files changed, 26 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..00e2181
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,13 @@
+{{ partial "header.html" . }}
+
+ <main role="main">
+ <h1 class="list-title">{{ .Title }}</h1>
+{{ range .Data.Pages }}
+ <article itemscope itemtype="http://schema.org/Blog">
+ <h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} #Draft{{ end }}</a></h2>
+ <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
+ </article>
+{{ end }}
+ </main>
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..6aadea7
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,13 @@
+{{ partial "header.html" . }}
+
+ <main role="main">
+ <article itemscope itemtype="http://schema.org/BlogPosting">
+ <h1 class="entry-title" itemprop="headline">{{ .Title }}</h1>
+ <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
+ <section itemprop="entry-text">
+ {{ .Content }}
+ </section>
+ </article>
+ </main>
+
+{{ partial "footer.html" . }} \ No newline at end of file