aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/home.html2
-rw-r--r--layouts/partials/docs/html-head.html2
-rw-r--r--layouts/partials/docs/shared.html8
4 files changed, 8 insertions, 6 deletions
diff --git a/layouts/404.html b/layouts/404.html
index f0b35fb..468ba6f 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -9,7 +9,7 @@
<body>
<main class="flex justify-center">
- <h1>404 Not Found</h1>
+ <h1>404 Not Found</h1>
</main>
{{ partial "docs/inject/body" . }}
diff --git a/layouts/home.html b/layouts/home.html
index bf76fc7..07057b4 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -17,7 +17,7 @@ You can override this page in:
` }}
<body>
<main class="flex justify-center">
- <div class="book-page markdown">
+ <div class="book-home markdown">
{{ replace $content "&#96;" "`" | markdownify }}
</div>
</main>
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html
index 7f7c0cc..ab05a59 100644
--- a/layouts/partials/docs/html-head.html
+++ b/layouts/partials/docs/html-head.html
@@ -15,7 +15,7 @@
<!-- RSS -->
{{ with .OutputFormats.Get "rss" -}}
- {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ "<!--" | safeHTML }}
diff --git a/layouts/partials/docs/shared.html b/layouts/partials/docs/shared.html
index 2678840..a5075c8 100644
--- a/layouts/partials/docs/shared.html
+++ b/layouts/partials/docs/shared.html
@@ -1,12 +1,14 @@
{{/*These templates contains some more complex logic and shared between partials*/}}
{{ define "title" }}
- {{ if and .File .Pages }}
+ {{ if and .IsSection .File }}
{{ $sections := split (trim .File.Dir "/") "/" }}
{{ $title := index ($sections | last 1) 0 | humanize | title }}
{{ default $title .Title }}
- {{ else if .File }}
- {{ $title := .File.BaseFileName | humanize | title }}
+ {{ else if and .IsPage .File }}
+ {{ $title := .File.BaseFileName | humanize | title }}
{{ default $title .Title }}
+ {{ else }}
+ {{ .Title }}
{{ end }}
{{ end }}