[TIDY] fix some html formatting

This commit is contained in:
jtbx 2023-11-03 20:36:12 +01:00
parent 1bbd0e4edd
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" . }}

View file

@ -16,7 +16,7 @@
</div>
</header>
{{ range .Paginator.Pages }}
{{- range .Paginator.Pages }}
{{ .Render "summary" }}
{{- end }}
{{ partial "pagination.html" . }}

View file

@ -2,6 +2,6 @@
<div class="clearfix"></div>
<footer class="container">
<nav class="menu">
{{- partial "menu.html" (dict "menuID" "footer" "page" . ) -}}
{{- partial "menu.html" (dict "menuID" "footer" "page" . ) }}
</nav>
</footer>

View file

@ -16,7 +16,7 @@
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{- end }}
<title>{{ .Title }}</title>
<!-- TODO: Favicon -->

View file

@ -4,7 +4,7 @@
<ul>
{{- if compare.Eq $menuID "main" -}}
{{ $image := resources.Get "images/logo.svg" }}
{{- $image := resources.Get "images/logo.svg" }}
<li><a href="/{{ .Site.Home.URL }}"><img src="{{ $image.RelPermalink }}" class="invert-on-light" width="150px" alt="CCCHH Icon"></a></li>
{{- end }}
{{- range $menuContent }}
@ -21,12 +21,11 @@
{{- end -}}
>{{ or (T .Identifier) .Name | safeHTML }}</a></li>
{{- end }}
</ul>
{{- if compare.Eq $menuID "main" -}}
{{ if compare.Eq $menuID "main" -}}
<ul>
<li class="roomstate" id="roomstate">
<span class="state">unbekannt</span><br><span class="duration">(seit&nbsp;)</span>
</li>
</ul>
{{- end }}
{{- end -}}

View file

@ -6,9 +6,9 @@
{{- $page := .Page }}
{{- if not $isBundle }}
{{ $page_dir := path.Dir .Page.File }}
{{ $pagebundle_path := path.Join "/" $page_dir }}
{{ $page = .Site.GetPage $pagebundle_path }}
{{- $page_dir := path.Dir .Page.File }}
{{- $pagebundle_path := path.Join "/" $page_dir }}
{{- $page = .Site.GetPage $pagebundle_path }}
{{- if not $page.IsPage }}
{{ $pagebundle_path := path.Join "/" .Page.Section }}
{{ $page = .Site.GetPage $pagebundle_path }}