mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-13 14:12:43 +02:00
add css for dl; minor adjustments to book layouts
This commit is contained in:
parent
fa6bda5448
commit
7595e2e6b9
5 changed files with 120 additions and 61 deletions
layouts/book
|
@ -13,6 +13,18 @@
|
|||
{{ end }}
|
||||
|
||||
<section class="list-page">
|
||||
<!-- preambles -->
|
||||
|
||||
<ul>
|
||||
{{ range .Pages.ByTitle }}
|
||||
{{ if .IsPage }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<!-- sub categories & pages -->
|
||||
|
||||
{{ $indexScratch := .Scratch }}
|
||||
{{ range .Sections }}
|
||||
{{ $indexScratch.Add "sections" (slice . ) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue