[TIDY] fix some html formatting
This commit is contained in:
parent
1bbd0e4edd
commit
b0123f91e9
9 changed files with 17 additions and 18 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<h1>{{ .Parent.Title }}: {{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ range .Paginator.Pages }}
|
||||
{{- range .Paginator.Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{- end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
</header>
|
||||
|
||||
{{ range .Paginator.Pages }}
|
||||
{{- range .Paginator.Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{- end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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 )</span>
|
||||
</li>
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue