aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html10
-rw-r--r--layouts/_default/list.html12
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/_default/summary.html13
4 files changed, 36 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5f8e2ec..6ed81b9 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,10 +1,14 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html lang="en" data-theme="dark">
3 {{- partial "head.html" . -}} 3 {{- partial "head.html" . -}}
4 <body> 4 <body>
5 {{- partial "header.html" . -}} 5 {{- partial "header.html" . -}}
6 <div id="content"> 6 <div
7 {{- block "main" . }}{{- end }} 7 class='container'
8 id="content"
9 >
10 {{- block "main" . }}
11 {{- end }}
8 </div> 12 </div>
9 {{- partial "footer.html" . -}} 13 {{- partial "footer.html" . -}}
10 </body> 14 </body>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..5d1370f 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,12 @@
1{{ define "main" }}
2 <article>
3 <section>{{- .Content -}}</section>
4 <section>
5 {{ range .Paginator.Pages }}
6 <div>
7 {{ .Render "summary" }}
8 </div>
9 {{ end }}
10 </section>
11 </article>
12{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..3e48693 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,4 @@
1{{ define "main" }}
2 <h1>{{ .Title }}</h1>
3 {{- .Content -}}
4{{ end }} \ No newline at end of file
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
new file mode 100644
index 0000000..afd5f2b
--- /dev/null
+++ b/layouts/_default/summary.html
@@ -0,0 +1,13 @@
1<div>
2 <div>
3 {{with .CurrentSection.Title }}<span class="f6 db">{{ . }}</span>{{end}}
4 <h1 class="f3 near-black">
5 <a href="{{ .RelPermalink }}" class="link black dim">
6 {{ .Title }}
7 </a>
8 </h1>
9 <div>
10 {{ .Summary }}
11 </div>
12 </div>
13</div>