updated hugo site
This commit is contained in:
BIN
layouts/book/.frontcover.html.swp
Normal file
BIN
layouts/book/.frontcover.html.swp
Normal file
Binary file not shown.
5
layouts/book/chapter.html
Normal file
5
layouts/book/chapter.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{.Title}}</h1>
|
||||
{{ .TableOfContents }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
15
layouts/book/frontcover.html
Normal file
15
layouts/book/frontcover.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ $chapters := where .Site.AllPages "Params.tags" .Params.tags }}
|
||||
|
||||
{{ range sort $chapters "Params.chapterno" "asc" }}
|
||||
{{ if ne .Params.chapterno "00" }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user