1
Fork 0

Restyle list page headers

turns out `display-5` isn't actually a thing!
This commit is contained in:
Jake Howard 2019-01-24 21:47:31 +00:00
parent 60816c9b65
commit 53606571f6
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 19 additions and 12 deletions

View file

@ -7,15 +7,19 @@
<div class="mb-3 image header-image" data-image='{{ .Scratch.Get "image" }}'></div> <div class="mb-3 image header-image" data-image='{{ .Scratch.Get "image" }}'></div>
{{ end }}{{ end }} {{ end }}{{ end }}
{{ partial "breadcrumbs/index.html" . }} {{ partial "breadcrumbs/index.html" . }}
<h1 class="display-5">{{ .Title }}</h1> <h1 class="display-4">{{ .Title }}</h1>
<h5 class="my-3">{{ partial "subtitle.html" . }}</h5> <h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
<p>{{ partial "content-details.html" . }}</p> {{ if ne .Kind "section" }}
<hr /> <p>{{ partial "content-details.html" . }}</p>
<div class="content mt-3"> {{ end }}
{{ if .TableOfContents }} {{ if .Content }}
<div class="float-lg-right ml-lg-3 mb-2 bg-light p-3"> <hr />
{{ .TableOfContents }} <div class="content mt-3">
</div> {{ if .TableOfContents }}
{{ end }} <div class="float-lg-right ml-lg-3 mb-2 bg-light p-3">
{{ .Content }} {{ .TableOfContents }}
</div> </div>
{{ end }}
{{ .Content }}
</div>
{{ end }}

View file

@ -1,7 +1,10 @@
{{ define "main" }} {{ define "main" }}
<div id="main"> <div id="main">
<div class="container"> <div class="container">
<h1 class="display-4">{{ .Title }}</h1> {{ partial "content.html" . }}
{{ if .Content }}
<hr />
{{ end }}
{{ range .Data.Pages.GroupByDate "2006-01" }} {{ range .Data.Pages.GroupByDate "2006-01" }}
{{ $month := print .Key "-01" }} {{ $month := print .Key "-01" }}
{{ if (index .Pages 0).Date.IsZero }} {{ if (index .Pages 0).Date.IsZero }}