summaryrefslogtreecommitdiff
path: root/themes/hugo-book/layouts/partials/docs
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-09-20 22:27:35 +0000
committeraethrvmn <me@aethrvmn.gr>2025-09-20 22:27:35 +0000
commit9b5f3fad7068298265dbbc8a65077f7917a090a5 (patch)
tree0905b29eb7c03d6bc6e16dd1ebcd1ec9b6b83320 /themes/hugo-book/layouts/partials/docs
parentsuper simple setup guide (diff)
updated hugo-book theme
Diffstat (limited to '')
-rw-r--r--themes/hugo-book/layouts/_partials/docs/brand.html (renamed from themes/hugo-book/layouts/partials/docs/brand.html)2
-rw-r--r--themes/hugo-book/layouts/_partials/docs/comments.html (renamed from themes/hugo-book/layouts/partials/docs/comments.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/date.html (renamed from themes/hugo-book/layouts/partials/docs/date.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/header.html (renamed from themes/hugo-book/layouts/partials/docs/header.html)2
-rw-r--r--themes/hugo-book/layouts/_partials/docs/html-head-favicon.html (renamed from themes/hugo-book/layouts/partials/docs/html-head-favicon.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/html-head-title.html (renamed from themes/hugo-book/layouts/partials/docs/html-head-title.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/html-head.html (renamed from themes/hugo-book/layouts/partials/docs/html-head.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/body.html (renamed from themes/hugo-book/layouts/partials/docs/inject/body.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/content-after.html (renamed from themes/hugo-book/layouts/partials/docs/inject/content-after.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/content-before.html (renamed from themes/hugo-book/layouts/partials/docs/inject/content-before.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/footer.html (renamed from themes/hugo-book/layouts/partials/docs/inject/footer.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/head.html (renamed from themes/hugo-book/layouts/partials/docs/inject/head.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/menu-after.html (renamed from themes/hugo-book/layouts/partials/docs/inject/menu-after.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/menu-before.html (renamed from themes/hugo-book/layouts/partials/docs/inject/menu-before.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/toc-after.html (renamed from themes/hugo-book/layouts/partials/docs/inject/toc-after.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/inject/toc-before.html (renamed from themes/hugo-book/layouts/partials/docs/inject/toc-before.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/languages.html (renamed from themes/hugo-book/layouts/partials/docs/languages.html)8
-rw-r--r--themes/hugo-book/layouts/_partials/docs/menu-filetree.html (renamed from themes/hugo-book/layouts/partials/docs/menu-filetree.html)4
-rw-r--r--themes/hugo-book/layouts/_partials/docs/menu-hugo.html (renamed from themes/hugo-book/layouts/partials/docs/menu-hugo.html)3
-rw-r--r--themes/hugo-book/layouts/_partials/docs/menu.html (renamed from themes/hugo-book/layouts/partials/docs/menu.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/post-meta.html (renamed from themes/hugo-book/layouts/partials/docs/post-meta.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/search.html (renamed from themes/hugo-book/layouts/partials/docs/search.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/taxonomy.html (renamed from themes/hugo-book/layouts/partials/docs/taxonomy.html)2
-rw-r--r--themes/hugo-book/layouts/_partials/docs/title.html (renamed from themes/hugo-book/layouts/partials/docs/title.html)0
-rw-r--r--themes/hugo-book/layouts/_partials/docs/toc.html (renamed from themes/hugo-book/layouts/partials/docs/toc.html)0
-rw-r--r--themes/hugo-book/layouts/partials/docs/footer.html27
-rw-r--r--themes/hugo-book/layouts/partials/docs/links/commit.html2
-rw-r--r--themes/hugo-book/layouts/partials/docs/links/edit.html2
28 files changed, 11 insertions, 41 deletions
diff --git a/themes/hugo-book/layouts/partials/docs/brand.html b/themes/hugo-book/layouts/_partials/docs/brand.html
index fa7f415..7824ef1 100644
--- a/themes/hugo-book/layouts/partials/docs/brand.html
+++ b/themes/hugo-book/layouts/_partials/docs/brand.html
@@ -1,7 +1,7 @@
<h2 class="book-brand">
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
{{- with .Site.Params.BookLogo -}}
- <img src="{{ . | relURL }}" alt="Logo" class="book-icon" />
+ <img src="{{ . | relURL }}" alt="Logo" />
{{- end -}}
<span>{{ .Site.Title }}</span>
</a>
diff --git a/themes/hugo-book/layouts/partials/docs/comments.html b/themes/hugo-book/layouts/_partials/docs/comments.html
index 59c5f22..59c5f22 100644
--- a/themes/hugo-book/layouts/partials/docs/comments.html
+++ b/themes/hugo-book/layouts/_partials/docs/comments.html
diff --git a/themes/hugo-book/layouts/partials/docs/date.html b/themes/hugo-book/layouts/_partials/docs/date.html
index 8c75361..8c75361 100644
--- a/themes/hugo-book/layouts/partials/docs/date.html
+++ b/themes/hugo-book/layouts/_partials/docs/date.html
diff --git a/themes/hugo-book/layouts/partials/docs/header.html b/themes/hugo-book/layouts/_partials/docs/header.html
index 646b8ff..ad5582e 100644
--- a/themes/hugo-book/layouts/partials/docs/header.html
+++ b/themes/hugo-book/layouts/_partials/docs/header.html
@@ -6,7 +6,7 @@
<h3>{{ partial "docs/title" . }}</h3>
<label for="toc-control">
- {{ if default true (default .Site.Params.BookToC .Params.BookToC) }}
+ {{ if partial "docs/toc-show" . }}
<img src="{{ "svg/toc.svg" | relURL }}" class="book-icon" alt="Table of Contents" />
{{ end }}
</label>
diff --git a/themes/hugo-book/layouts/partials/docs/html-head-favicon.html b/themes/hugo-book/layouts/_partials/docs/html-head-favicon.html
index 8278050..8278050 100644
--- a/themes/hugo-book/layouts/partials/docs/html-head-favicon.html
+++ b/themes/hugo-book/layouts/_partials/docs/html-head-favicon.html
diff --git a/themes/hugo-book/layouts/partials/docs/html-head-title.html b/themes/hugo-book/layouts/_partials/docs/html-head-title.html
index 49a109d..49a109d 100644
--- a/themes/hugo-book/layouts/partials/docs/html-head-title.html
+++ b/themes/hugo-book/layouts/_partials/docs/html-head-title.html
diff --git a/themes/hugo-book/layouts/partials/docs/html-head.html b/themes/hugo-book/layouts/_partials/docs/html-head.html
index 6a6d0ec..6a6d0ec 100644
--- a/themes/hugo-book/layouts/partials/docs/html-head.html
+++ b/themes/hugo-book/layouts/_partials/docs/html-head.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/body.html b/themes/hugo-book/layouts/_partials/docs/inject/body.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/body.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/body.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/content-after.html b/themes/hugo-book/layouts/_partials/docs/inject/content-after.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/content-after.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/content-after.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/content-before.html b/themes/hugo-book/layouts/_partials/docs/inject/content-before.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/content-before.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/content-before.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/footer.html b/themes/hugo-book/layouts/_partials/docs/inject/footer.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/footer.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/footer.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/head.html b/themes/hugo-book/layouts/_partials/docs/inject/head.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/head.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/head.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/menu-after.html b/themes/hugo-book/layouts/_partials/docs/inject/menu-after.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/menu-after.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/menu-after.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/menu-before.html b/themes/hugo-book/layouts/_partials/docs/inject/menu-before.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/menu-before.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/menu-before.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/toc-after.html b/themes/hugo-book/layouts/_partials/docs/inject/toc-after.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/toc-after.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/toc-after.html
diff --git a/themes/hugo-book/layouts/partials/docs/inject/toc-before.html b/themes/hugo-book/layouts/_partials/docs/inject/toc-before.html
index e69de29..e69de29 100644
--- a/themes/hugo-book/layouts/partials/docs/inject/toc-before.html
+++ b/themes/hugo-book/layouts/_partials/docs/inject/toc-before.html
diff --git a/themes/hugo-book/layouts/partials/docs/languages.html b/themes/hugo-book/layouts/_partials/docs/languages.html
index 51aabdd..70ddc0a 100644
--- a/themes/hugo-book/layouts/partials/docs/languages.html
+++ b/themes/hugo-book/layouts/_partials/docs/languages.html
@@ -13,10 +13,10 @@
<ul class="book-languages">
<li>
<input type="checkbox" id="languages" class="toggle" />
- <label for="languages" class="flex justify-between">
- <a role="button" class="flex align-center">
+ <label for="languages" class="flex">
+ <a role="button" class="flex flex-auto">
<img src="{{ "svg/translate.svg" | relURL }}" class="book-icon" alt="Languages" />
- {{ $.Site.Language.LanguageName }}
+ <span>{{ $.Site.Language.LanguageName }}</span>
</a>
</label>
@@ -24,7 +24,7 @@
{{ range .Site.Languages }}{{ with index $translations .Lang }}
<li>
<a href="{{ cond hugo.IsMultihost .Permalink .RelPermalink }}">
- {{ .Language.LanguageName }}
+ <span>{{ .Language.LanguageName }}</span>
</a>
</li>
{{ end }}{{ end }}
diff --git a/themes/hugo-book/layouts/partials/docs/menu-filetree.html b/themes/hugo-book/layouts/_partials/docs/menu-filetree.html
index 1494588..5105aa8 100644
--- a/themes/hugo-book/layouts/partials/docs/menu-filetree.html
+++ b/themes/hugo-book/layouts/_partials/docs/menu-filetree.html
@@ -30,8 +30,8 @@
{{ if .Page.Params.BookCollapseSection }}
<input type="checkbox" id="section-{{ md5 .Page }}" class="toggle" {{ if or $current $ancestor }}checked{{ end }} />
- <label for="section-{{ md5 .Page }}" class="flex justify-between">
- <a {{ if .Page.Content }}href="{{ .Page.RelPermalink }}"{{ else }}role="button"{{ end }} class="{{ if $current }}active{{ end }}">
+ <label for="section-{{ md5 .Page }}" class="flex">
+ <a {{ if .Page.Content }}href="{{ .Page.RelPermalink }}"{{ else }}role="button"{{ end }} class="flex-auto {{ if $current }}active{{ end }}">
{{- partial "docs/title" .Page -}}
</a>
</label>
diff --git a/themes/hugo-book/layouts/partials/docs/menu-hugo.html b/themes/hugo-book/layouts/_partials/docs/menu-hugo.html
index 5f01be0..871eea7 100644
--- a/themes/hugo-book/layouts/partials/docs/menu-hugo.html
+++ b/themes/hugo-book/layouts/_partials/docs/menu-hugo.html
@@ -10,7 +10,8 @@
<ul>
{{ range . }}
<li>
- <a href="{{ .URL }}" {{ with .Params.class }}class="{{ . }}"{{ end }} {{ if not .Page }}target="_blank" rel="noopener"{{ end }}>
+ {{ $isRemote := not (or (.Page) (strings.HasPrefix .URL "/")) }}
+ <a href="{{ .URL }}" {{ with .Params.class }}class="{{ . }}"{{ end }} {{ if $isRemote }}target="_blank" rel="noopener"{{ end }}>
{{- .Pre -}}
{{ with .Page }}
{{ partial "docs/title" .Page }}
diff --git a/themes/hugo-book/layouts/partials/docs/menu.html b/themes/hugo-book/layouts/_partials/docs/menu.html
index dbb2e49..dbb2e49 100644
--- a/themes/hugo-book/layouts/partials/docs/menu.html
+++ b/themes/hugo-book/layouts/_partials/docs/menu.html
diff --git a/themes/hugo-book/layouts/partials/docs/post-meta.html b/themes/hugo-book/layouts/_partials/docs/post-meta.html
index 457e2c0..457e2c0 100644
--- a/themes/hugo-book/layouts/partials/docs/post-meta.html
+++ b/themes/hugo-book/layouts/_partials/docs/post-meta.html
diff --git a/themes/hugo-book/layouts/partials/docs/search.html b/themes/hugo-book/layouts/_partials/docs/search.html
index 937f595..937f595 100644
--- a/themes/hugo-book/layouts/partials/docs/search.html
+++ b/themes/hugo-book/layouts/_partials/docs/search.html
diff --git a/themes/hugo-book/layouts/partials/docs/taxonomy.html b/themes/hugo-book/layouts/_partials/docs/taxonomy.html
index 63ef315..90366ae 100644
--- a/themes/hugo-book/layouts/partials/docs/taxonomy.html
+++ b/themes/hugo-book/layouts/_partials/docs/taxonomy.html
@@ -3,7 +3,7 @@
{{ range $term, $_ := .Site.Taxonomies }}
{{ with $.Site.GetPage (printf "/%s" $term | urlize) }}
<li class="book-section-flat">
- <strong>{{ .Title | title }}</strong>
+ <span>{{ .Title | title }}</span>
<ul>
{{ range .Pages }}
<li class="flex justify-between">
diff --git a/themes/hugo-book/layouts/partials/docs/title.html b/themes/hugo-book/layouts/_partials/docs/title.html
index 83df5b6..83df5b6 100644
--- a/themes/hugo-book/layouts/partials/docs/title.html
+++ b/themes/hugo-book/layouts/_partials/docs/title.html
diff --git a/themes/hugo-book/layouts/partials/docs/toc.html b/themes/hugo-book/layouts/_partials/docs/toc.html
index 64697a4..64697a4 100644
--- a/themes/hugo-book/layouts/partials/docs/toc.html
+++ b/themes/hugo-book/layouts/_partials/docs/toc.html
diff --git a/themes/hugo-book/layouts/partials/docs/footer.html b/themes/hugo-book/layouts/partials/docs/footer.html
deleted file mode 100644
index 77e96d8..0000000
--- a/themes/hugo-book/layouts/partials/docs/footer.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="flex flex-wrap justify-between">
-
-{{ if and .GitInfo .Site.Params.BookRepo }}
- <div>
- {{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}}
- <a class="flex align-center" href="{{ partial "docs/links/commit" . }}" title='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}' target="_blank" rel="noopener">
- <img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon" alt="" />
- <span>{{ $date }}</span>
- </a>
- </div>
-{{ end }}
-
-{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
- <div>
- <a class="flex align-center" href="{{ partial "docs/links/edit" . }}" target="_blank" rel="noopener">
- <img src="{{ "svg/edit.svg" | relURL }}" class="book-icon" alt="" />
- <span>{{ i18n "Edit this page" }}</span>
- </a>
- </div>
-{{ end }}
-
-</div>
-
-{{ $script := resources.Get "clipboard.js" | resources.Minify }}
-{{ with $script.Content }}
- <script>{{ . | safeJS }}</script>
-{{ end }}
diff --git a/themes/hugo-book/layouts/partials/docs/links/commit.html b/themes/hugo-book/layouts/partials/docs/links/commit.html
deleted file mode 100644
index 8ab9334..0000000
--- a/themes/hugo-book/layouts/partials/docs/links/commit.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{{- $commitPath := default "commit" .Site.Params.BookCommitPath -}}
-{{- .Site.Params.BookRepo }}/{{ $commitPath }}/{{ .GitInfo.Hash -}} \ No newline at end of file
diff --git a/themes/hugo-book/layouts/partials/docs/links/edit.html b/themes/hugo-book/layouts/partials/docs/links/edit.html
deleted file mode 100644
index 920affa..0000000
--- a/themes/hugo-book/layouts/partials/docs/links/edit.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{{- $bookFilePath := (strings.TrimPrefix hugo.WorkingDir .Page.File.Filename | path.Join) -}}
-{{- .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}{{ ($bookFilePath) -}} \ No newline at end of file
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.