Changeset View
Changeset View
Standalone View
Standalone View
documentation/themes/beastie/layouts/books/single.html
Context not available. | |||||
<div class="navheader"> | <div class="navheader"> | ||||
<div class="prev"> | <div class="prev"> | ||||
{{ if .Params.prev }} | {{ if .Params.prev }} | ||||
<a href={{ .Params.Prev | absLangURL }}>{{ i18n "prev" }}</a> | {{ if $.Site.Params.isOnline }} | ||||
<a href={{ .Params.Prev | absLangURL }}>{{ i18n "prev" }}</a> | |||||
{{ else }} | |||||
{{ $pathSectionsPrev := split .Params.Prev "/" }} | |||||
{{if eq (len $pathSectionsPrev) 3}} | |||||
{{ $path := index $pathSectionsPrev 2 }} | |||||
<a href=../{{ $path }}/index.html>{{ i18n "prev" }}</a> | |||||
{{ end }} | |||||
{{if eq (len $pathSectionsPrev) 2}} | |||||
<a href=../index.html>{{ i18n "prev" }}</a> | |||||
{{ end }} | |||||
{{ end }} | |||||
{{ end }} | {{ end }} | ||||
</div> | </div> | ||||
<div class="chapter"> | <div class="chapter"> | ||||
Context not available. | |||||
</div> | </div> | ||||
<div class="next"> | <div class="next"> | ||||
{{ if .Params.next }} | {{ if .Params.next }} | ||||
{{ if $.Site.Params.isOnline }} | |||||
<a href={{ .Params.Next | absLangURL }}>{{ i18n "next" }}</a> | <a href={{ .Params.Next | absLangURL }}>{{ i18n "next" }}</a> | ||||
{{ else }} | |||||
{{ $pathSectionsNext := split .Params.Next "/" }} | |||||
{{if eq (len $pathSectionsNext) 3}} | |||||
{{ if .Params.isIndex }} | |||||
{{ $book := index $pathSectionsNext 1 }} | |||||
{{ $path := index $pathSectionsNext 2 }} | |||||
<a href=../{{ $book }}/{{ $path }}/index.html>{{ i18n "next" }}</a> | |||||
{{ else }} | |||||
{{ $path := index $pathSectionsNext 2 }} | |||||
<a href=../{{ $path }}/index.html>{{ i18n "next" }}</a> | |||||
{{ end }} | |||||
{{ end }} | |||||
{{if eq (len $pathSectionsNext) 2}} | |||||
<a href=../index.html>{{ i18n "next" }}</a> | |||||
{{ end }} | |||||
{{ end }} | |||||
{{ end }} | {{ end }} | ||||
</div> | </div> | ||||
</div> | </div> | ||||
Context not available. | |||||
{{ i18n "last-modified" }} {{ index $releaseInfo 3 }} {{ $hour }} {{ i18n "by" }} {{ index $releaseInfo 5 }}. | {{ i18n "last-modified" }} {{ index $releaseInfo 3 }} {{ $hour }} {{ i18n "by" }} {{ index $releaseInfo 5 }}. | ||||
{{ end }} | {{ end }} | ||||
</div> | </div> | ||||
{{ if .Params.add_split_page_link }} | {{ if and (.Params.add_split_page_link) ($.Site.Params.isOnline) }} | ||||
<div> | <div> | ||||
[ <a href="../">Split HTML</a> / Single HTML ] | [ <a href="../">Split HTML</a> / Single HTML ] | ||||
</div> | </div> | ||||
{{ end }} | {{ end }} | ||||
{{ if .Params.add_single_page_link }} | {{ if and (.Params.add_single_page_link) ($.Site.Params.isOnline) }} | ||||
<div> | <div> | ||||
[ Split HTML / <a href="book/">Single HTML</a> ] | [ Split HTML / <a href="book/">Single HTML</a> ] | ||||
</div> | </div> | ||||
Context not available. | |||||
<div class="navfooter"> | <div class="navfooter"> | ||||
<div class="prev"> | <div class="prev"> | ||||
{{ if .Params.prev }} | {{ if .Params.prev }} | ||||
<a href={{ .Params.Prev | absLangURL }}>{{ i18n "prev" }}</a> | {{ if $.Site.Params.isOnline }} | ||||
<a href={{ .Params.Prev | absLangURL }}>{{ i18n "prev" }}</a> | |||||
{{ else }} | |||||
{{ $pathSectionsPrev := split .Params.Prev "/" }} | |||||
{{if eq (len $pathSectionsPrev) 3}} | |||||
{{ $path := index $pathSectionsPrev 2 }} | |||||
<a href=../{{ $path }}/index.html>{{ i18n "prev" }}</a> | |||||
{{ end }} | |||||
{{if eq (len $pathSectionsPrev) 2}} | |||||
<a href=../index.html>{{ i18n "prev" }}</a> | |||||
{{ end }} | |||||
{{ end }} | |||||
{{ end }} | {{ end }} | ||||
</div> | </div> | ||||
<div class="home"> | <div class="home"> | ||||
Context not available. | |||||
</div> | </div> | ||||
<div class="next"> | <div class="next"> | ||||
{{ if .Params.next }} | {{ if .Params.next }} | ||||
{{ if $.Site.Params.isOnline }} | |||||
<a href={{ .Params.Next | absLangURL }}>{{ i18n "next" }}</a> | <a href={{ .Params.Next | absLangURL }}>{{ i18n "next" }}</a> | ||||
{{ else }} | |||||
{{ $pathSectionsNext := split .Params.Next "/" }} | |||||
{{if eq (len $pathSectionsNext) 3}} | |||||
{{ if .Params.isIndex }} | |||||
{{ $book := index $pathSectionsNext 1 }} | |||||
{{ $path := index $pathSectionsNext 2 }} | |||||
<a href=../{{ $book }}/{{ $path }}/index.html>{{ i18n "next" }}</a> | |||||
{{ else }} | |||||
{{ $path := index $pathSectionsNext 2 }} | |||||
<a href=../{{ $path }}/index.html>{{ i18n "next" }}</a> | |||||
{{ end }} | |||||
{{ end }} | |||||
{{if eq (len $pathSectionsNext) 2}} | |||||
<a href=../index.html>{{ i18n "next" }}</a> | |||||
{{ end }} | |||||
{{ end }} | |||||
{{ end }} | {{ end }} | ||||
</div> | </div> | ||||
</div> | </div> | ||||
Context not available. |