forked from CCCHH/ccchh-website
[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" . }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue