diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 34 | ||||
-rw-r--r-- | layouts/_default/list.html | 18 | ||||
-rw-r--r-- | layouts/_default/single.html | 18 |
3 files changed, 70 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..5c627ac --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html> + {{- partial "head.html" . -}} + <body> + + {{- partial "header.html" . -}} + + <div class="container-fluid"> + <div class="row"> + + <div class="docs-sidenav order-0 col-12 col-md-3 col-lg-2 col-xl-2 position-sticky border-right"> + {{- partial "menu.html" . -}} + </div> + + <div class="docs-toc large order-lg-2 order-md-0 order-xs-1 col-12 col-lg-2 col-xl-2 position-sticky border-left"> + {{- partial "tableofcontents.html" . -}} + </div> + + <div class="main col-12 order-1 col-md-9 col-lg-10 col-xl-8 py-3"> + {{- block "main" . }}{{- end }} + + <div class="position-relative w-75 m-auto"> + {{ partial "next-prev-page.html" . }} + </div> + + </div> + + </div> + </div> + + {{- partial "footer.html" . -}} + + </body> +</html> diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..d9364ba --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,18 @@ +{{ define "main" }} + +<h1>{{ .Title }}</h1> + +{{ .Content }} + + {{ if .IsTranslated }} + <h4>{{ i18n "translations" }}</h4> + <ul> + {{ range .Translations }} + <li> + <a href="{{ .RelPermalink }}">{{ .Lang }}: {{ .Title }}</a> + </li> + {{ end }} + </ul> + {{ end }} + +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..d9364ba --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,18 @@ +{{ define "main" }} + +<h1>{{ .Title }}</h1> + +{{ .Content }} + + {{ if .IsTranslated }} + <h4>{{ i18n "translations" }}</h4> + <ul> + {{ range .Translations }} + <li> + <a href="{{ .RelPermalink }}">{{ .Lang }}: {{ .Title }}</a> + </li> + {{ end }} + </ul> + {{ end }} + +{{ end }} |