mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-05 19:02:44 +02:00
update some layouts
This commit is contained in:
parent
37e9cb786c
commit
9ef1d4b721
5 changed files with 38 additions and 30 deletions
layouts/book
|
@ -19,10 +19,10 @@
|
|||
{{ end }}
|
||||
|
||||
{{- range ($indexScratch.Get "sections").ByTitle -}}
|
||||
<p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
|
||||
<p><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></p>
|
||||
<ul>
|
||||
{{- range .Pages.ByTitle -}}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{- end -}}
|
||||
|
|
|
@ -7,11 +7,17 @@
|
|||
|
||||
{{ partial "content.header.html" . }}
|
||||
|
||||
{{ with .Content }}
|
||||
<section>
|
||||
{{ . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section class="list-page">
|
||||
<ul>
|
||||
{{ range .Pages.ByTitle }}
|
||||
{{ if .IsPage }}
|
||||
<li><a href="{{ .RelPermalink }}">{{.Title}}</a></li>
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -7,11 +7,17 @@
|
|||
|
||||
{{ partial "content.header.html" . }}
|
||||
|
||||
{{ with .Content }}
|
||||
<section>
|
||||
{{ . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section class="list-page">
|
||||
<ul>
|
||||
{{ range .Pages.ByTitle }}
|
||||
{{ if .IsSection }}
|
||||
<li><a href="{{ .RelPermalink }}">{{.Title}}</a></li>
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue