[TIDY] fix some html formatting

This commit is contained in:
jtbx 2023-11-03 20:36:12 +01:00
commit b0123f91e9
9 changed files with 17 additions and 18 deletions

View file

@ -5,9 +5,9 @@
{{- $page := .Page }}
{{- if not $isBundle }}
{{ $page_dir := path.Dir .Page.File }}
{{ $pagebundle_path := path.Join "/" $page_dir }}
{{ $page = .Page.Site.GetPage $pagebundle_path }}
{{- $page_dir := path.Dir .Page.File }}
{{- $pagebundle_path := path.Join "/" $page_dir }}
{{- $page = .Page.Site.GetPage $pagebundle_path }}
{{- end -}}
{{- with $page.Resources.Get $imagename }}

View file

@ -5,11 +5,11 @@
</header>
<ul>
{{ range .Pages }}
{{- range .Pages }}
<li>
<a href="{{ .Permalink }}"><span style="font-variant-numeric: tabular-nums;">{{ .Date.Format "2006-01-02" }}</span> | {{ .Title }}</a>
</li>
{{ end }}
{{- end }}
</ul>
</main>
{{ end }}

View file

@ -2,9 +2,9 @@
<main class="container" aria-role="main">
<header class="header">
<h1>{{ .Title }}</h1>
{{ with .Params.subtitle }}
{{- with .Params.subtitle }}
<span class="subtitle">{{ . }}</span>
{{ end }}
{{- end }}
</header>
<section class="content">

View file

@ -4,7 +4,7 @@
<h1>{{ .Parent.Title }}: {{ .Title }}</h1>
</header>
{{ range .Paginator.Pages }}
{{- range .Paginator.Pages }}
{{ .Render "summary" }}
{{- end }}
{{ partial "pagination.html" . }}