[TIDY] fix some html formatting
This commit is contained in:
parent
1bbd0e4edd
commit
b0123f91e9
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
{{- $page := .Page }}
|
{{- $page := .Page }}
|
||||||
{{- if not $isBundle }}
|
{{- if not $isBundle }}
|
||||||
{{ $page_dir := path.Dir .Page.File }}
|
{{- $page_dir := path.Dir .Page.File }}
|
||||||
{{ $pagebundle_path := path.Join "/" $page_dir }}
|
{{- $pagebundle_path := path.Join "/" $page_dir }}
|
||||||
{{ $page = .Page.Site.GetPage $pagebundle_path }}
|
{{- $page = .Page.Site.GetPage $pagebundle_path }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- with $page.Resources.Get $imagename }}
|
{{- with $page.Resources.Get $imagename }}
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Pages }}
|
{{- range .Pages }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}"><span style="font-variant-numeric: tabular-nums;">{{ .Date.Format "2006-01-02" }}</span> | {{ .Title }}</a>
|
<a href="{{ .Permalink }}"><span style="font-variant-numeric: tabular-nums;">{{ .Date.Format "2006-01-02" }}</span> | {{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<main class="container" aria-role="main">
|
<main class="container" aria-role="main">
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ with .Params.subtitle }}
|
{{- with .Params.subtitle }}
|
||||||
<span class="subtitle">{{ . }}</span>
|
<span class="subtitle">{{ . }}</span>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<h1>{{ .Parent.Title }}: {{ .Title }}</h1>
|
<h1>{{ .Parent.Title }}: {{ .Title }}</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{ range .Paginator.Pages }}
|
{{- range .Paginator.Pages }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{ range .Paginator.Pages }}
|
{{- range .Paginator.Pages }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
<footer class="container">
|
<footer class="container">
|
||||||
<nav class="menu">
|
<nav class="menu">
|
||||||
{{- partial "menu.html" (dict "menuID" "footer" "page" . ) -}}
|
{{- partial "menu.html" (dict "menuID" "footer" "page" . ) }}
|
||||||
</nav>
|
</nav>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
{{ end -}}
|
{{- end }}
|
||||||
|
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<!-- TODO: Favicon -->
|
<!-- TODO: Favicon -->
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{- if compare.Eq $menuID "main" -}}
|
{{- 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>
|
<li><a href="/{{ .Site.Home.URL }}"><img src="{{ $image.RelPermalink }}" class="invert-on-light" width="150px" alt="CCCHH Icon"></a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $menuContent }}
|
{{- range $menuContent }}
|
||||||
|
@ -21,12 +21,11 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
>{{ or (T .Identifier) .Name | safeHTML }}</a></li>
|
>{{ or (T .Identifier) .Name | safeHTML }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
{{- if compare.Eq $menuID "main" -}}
|
{{ if compare.Eq $menuID "main" -}}
|
||||||
<ul>
|
<ul>
|
||||||
<li class="roomstate" id="roomstate">
|
<li class="roomstate" id="roomstate">
|
||||||
<span class="state">unbekannt</span><br><span class="duration">(seit )</span>
|
<span class="state">unbekannt</span><br><span class="duration">(seit )</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end -}}
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
{{- $page := .Page }}
|
{{- $page := .Page }}
|
||||||
{{- if not $isBundle }}
|
{{- if not $isBundle }}
|
||||||
{{ $page_dir := path.Dir .Page.File }}
|
{{- $page_dir := path.Dir .Page.File }}
|
||||||
{{ $pagebundle_path := path.Join "/" $page_dir }}
|
{{- $pagebundle_path := path.Join "/" $page_dir }}
|
||||||
{{ $page = .Site.GetPage $pagebundle_path }}
|
{{- $page = .Site.GetPage $pagebundle_path }}
|
||||||
{{- if not $page.IsPage }}
|
{{- if not $page.IsPage }}
|
||||||
{{ $pagebundle_path := path.Join "/" .Page.Section }}
|
{{ $pagebundle_path := path.Join "/" .Page.Section }}
|
||||||
{{ $page = .Site.GetPage $pagebundle_path }}
|
{{ $page = .Site.GetPage $pagebundle_path }}
|
||||||
|
|
Loading…
Reference in a new issue