Initial commit
This commit is contained in:
commit
4e10967600
40 changed files with 1650 additions and 0 deletions
33
layouts/page.html
Normal file
33
layouts/page.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
{{ define "main" }}
|
||||
{{- $next_page := .CurrentSection.Pages.Prev . }}
|
||||
{{- $current := . }}
|
||||
{{- range .Ancestors }}
|
||||
{{ with .Pages.Prev $current }}
|
||||
{{ $next_page = . }}
|
||||
{{ break }}
|
||||
{{ end }}
|
||||
{{ $current = . }}
|
||||
{{- end }}
|
||||
{{- $prev_page := .CurrentSection.Pages.Next . }}
|
||||
{{- $prev_section := .Parent }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="subtitle">Reading time: about {{ .ReadingTime }} min</p>
|
||||
<hr>
|
||||
<nav class="page-nav">
|
||||
{{ with or $prev_page $prev_section }}<a class="prev" title="Previous page" href="{{.RelPermalink}}">< {{ .Title }}</a>{{ end }}
|
||||
{{ with $next_page }}<a class="next" title="Next page" href="{{.RelPermalink}}">{{ .Title }} ></a>{{ end }}
|
||||
</nav>
|
||||
<hr>
|
||||
{{ .Summary }}
|
||||
{{- if .Params.show_toc -}}
|
||||
<hr>
|
||||
{{ .TableOfContents }}
|
||||
<hr>
|
||||
{{- end }}
|
||||
{{ .ContentWithoutSummary }}
|
||||
<hr>
|
||||
<nav class="page-nav">
|
||||
{{ with or $prev_page $prev_section }}<a class="prev" title="Previous page" href="{{.RelPermalink}}">< {{ .Title }}</a>{{ end }}
|
||||
{{ with $next_page }}<a class="next" title="Next page" href="{{.RelPermalink}}">{{ .Title }} ></a>{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue