diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/_default/list.html | 23 | ||||
-rw-r--r-- | layouts/_default/single.html | 13 | ||||
-rw-r--r-- | layouts/_default/summary.html | 24 |
4 files changed, 37 insertions, 27 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6ed81b9..acb6c6a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html | |||
@@ -1,7 +1,8 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html lang="en" data-theme="dark"> | 2 | <html lang="en" data-theme="light"> |
3 | {{- partial "head.html" . -}} | 3 | {{- partial "head.html" . -}} |
4 | <body> | 4 | <body> |
5 | {{- partial "site-actions" . -}} | ||
5 | {{- partial "header.html" . -}} | 6 | {{- partial "header.html" . -}} |
6 | <div | 7 | <div |
7 | class='container' | 8 | class='container' |
@@ -11,5 +12,6 @@ | |||
11 | {{- end }} | 12 | {{- end }} |
12 | </div> | 13 | </div> |
13 | {{- partial "footer.html" . -}} | 14 | {{- partial "footer.html" . -}} |
15 | {{- partial "scripts.html" . -}} | ||
14 | </body> | 16 | </body> |
15 | </html> | 17 | </html> |
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5d1370f..7a26339 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html | |||
@@ -1,12 +1,11 @@ | |||
1 | {{ define "main" }} | 1 | {{ define "main" }} |
2 | <article> | 2 | <h1>{{ .Title | title }}</h1> |
3 | <section>{{- .Content -}}</section> | 3 | {{ if .Content }} |
4 | <section> | 4 | <p>{{ .Content }}</p> |
5 | {{ range .Paginator.Pages }} | 5 | {{ end }} |
6 | <div> | 6 | <section> |
7 | {{ .Render "summary" }} | 7 | {{ range sort .Pages "Date" "desc" }} |
8 | </div> | 8 | <div>{{ .Render "summary" }}</div> |
9 | {{ end }} | 9 | {{ end }} |
10 | </section> | 10 | </section> |
11 | </article> | 11 | {{ end }} |
12 | {{ end }} | ||
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3e48693..49137fb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html | |||
@@ -1,4 +1,9 @@ | |||
1 | {{ define "main" }} | 1 | {{ define "main" }} |
2 | <h1>{{ .Title }}</h1> | 2 | <hgroup> |
3 | {{- .Content -}} | 3 | <h1>{{- .Title -}}</h1> |
4 | {{ end }} \ No newline at end of file | 4 | <p>Some dude on the internet with—like—opinions and stuff</p> |
5 | </hgroup> | ||
6 | <section class="content"> | ||
7 | {{- .Content -}} | ||
8 | </section> | ||
9 | {{ end }} | ||
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index afd5f2b..48c7b97 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html | |||
@@ -1,13 +1,17 @@ | |||
1 | <div> | 1 | <section> |
2 | <div> | 2 | <hgroup> |
3 | {{with .CurrentSection.Title }}<span class="f6 db">{{ . }}</span>{{end}} | 3 | <h3 class="f3 near-black"> |
4 | <h1 class="f3 near-black"> | ||
5 | <a href="{{ .RelPermalink }}" class="link black dim"> | 4 | <a href="{{ .RelPermalink }}" class="link black dim"> |
6 | {{ .Title }} | 5 | {{ .Title }} |
7 | </a> | 6 | </a> |
8 | </h1> | 7 | {{ if isset .Params "rating" }} |
9 | <div> | 8 | {{ .Params.rating }} |
10 | {{ .Summary }} | 9 | {{ end }} |
11 | </div> | 10 | </h3> |
12 | </div> | 11 | <p>{{ .Date | time.Format ":date_full" }}</p> |
13 | </div> | 12 | <p> |
13 | <span>{{ .ReadingTime }} min read</span> | ||
14 | </p> | ||
15 | </hgroup> | ||
16 | <div>{{ .Summary | markdownify }}</div> | ||
17 | </section> | ||