Browse Source

fix some layouts

simplify
Alexander Avery 3 weeks ago
parent
commit
a8b9873182
  1. 9
      layouts/_default/list.html
  2. 2
      layouts/authors/terms.html

9
layouts/_default/list.html

@ -3,13 +3,20 @@
{{if not .IsHome }} {{ $pages = .Pages }} {{ end }} {{if not .IsHome }} {{ $pages = .Pages }} {{ end }}
<main> <main>
<h1>{{ .Title | markdownify | title }}</h1> {{ if not .IsHome }}
<h1>{{ .Title | markdownify | lower }}</h1>
{{ else }}
<h1>Beet Box</h1>
{{ end }}
{{ if and .IsSection (not .IsHome) }} {{ partial "article-meta.html" . }} {{ end }} {{ if and .IsSection (not .IsHome) }} {{ partial "article-meta.html" . }} {{ end }}
{{ with .Content }} {{ with .Content }}
<section> <section>
{{ . }} {{ . }}
</section> </section>
{{- end }} {{- end }}
</main> </main>
{{ with $pages.Limit 4 }} {{ with $pages.Limit 4 }}

2
layouts/authors/terms.html

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<h1 class="center-text">Authors</h1>
<section> <section>
<h1 class="center-text">Authors</h1>
{{ range .Data.Pages }} {{ range .Data.Pages }}
{{ partial "article-alternate.html" . }} {{ partial "article-alternate.html" . }}
{{ end }} {{ end }}

Loading…
Cancel
Save