diff options
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/_default/list.html | 9 | ||||
| -rw-r--r-- | layouts/_default/single.html | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6ed81b9..bb27232 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | <html lang="en" data-theme="dark"> | 2 | <html lang="en" data-theme="dark"> |
| 3 | {{- partial "head.html" . -}} | 3 | {{- partial "head.html" . -}} |
| 4 | <body> | 4 | <body> |
| 5 | <button id="fullscreen">Fullscreen</button> | ||
| 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 a86ef3a..38ef025 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | {{ define "main" }} | 1 | {{ define "main" }} |
| 2 | <article> | 2 | <article style="width:70ch;"> |
| 3 | <h1>{{ .Title }}</h1> | 3 | <h1>{{ .Title }}</h1> |
| 4 | {{ if .Content }} | ||
| 5 | <p>{{ .Content }}</p> | ||
| 6 | {{ end }} | ||
| 4 | <section> | 7 | <section> |
| 5 | {{ range sort (.Paginator 3).Pages "Date" "desc" }} | 8 | {{ range sort (.Paginator 3).Pages "Date" "desc" }} |
| 6 | <div>{{ .Render "summary" }}</div> | 9 | <div>{{ .Render "summary" }}</div> |
| @@ -11,7 +14,9 @@ | |||
| 11 | {{ if .HasPrev }} | 14 | {{ if .HasPrev }} |
| 12 | <a href="{{ .Prev.URL }}">prev</a> | 15 | <a href="{{ .Prev.URL }}">prev</a> |
| 13 | {{ end }} | 16 | {{ end }} |
| 14 | <p>{{ .PageNumber }} of {{ .TotalPages }}</p> | 17 | {{ if (or (.HasPrev) (.HasNext)) }} |
| 18 | <p>{{ .PageNumber }} of {{ .TotalPages }}</p> | ||
| 19 | {{ end }} | ||
| 15 | {{ if .HasNext }} | 20 | {{ if .HasNext }} |
| 16 | <a href="{{ .Next.URL }}">next</a> | 21 | <a href="{{ .Next.URL }}">next</a> |
| 17 | {{ end }} | 22 | {{ end }} |
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1564845..996ad9e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | <section> | 3 | <section> |
| 4 | <h1>{{- .Title -}}</h1> | 4 | <h1>{{- .Title -}}</h1> |
| 5 | </section> | 5 | </section> |
| 6 | <section> | 6 | <section class="content"> |
| 7 | {{- .Content -}} | 7 | {{- .Content -}} |
| 8 | </section> | 8 | </section> |
| 9 | </article> | 9 | </article> |
