diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-08-30 13:17:32 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-08-30 13:17:32 +0000 |
| commit | 1147a663e70aadb2578cbe601bc723d7cd939c5a (patch) | |
| tree | b5100d2031328be3cfd3e9ae62730436bd573e0f /layouts/partials | |
| parent | added .gitignore (diff) | |
added non-content
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/docs/footer.html | 31 | ||||
| -rw-r--r-- | layouts/partials/docs/header.html | 17 | ||||
| -rw-r--r-- | layouts/partials/docs/html-head-title.html | 5 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/body.html | 1 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/content-after.html | 1 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/content-before.html | 21 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/footer.html | 0 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/head.html | 0 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/menu-after.html | 4 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/menu-before.html | 0 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/toc-after.html | 0 | ||||
| -rw-r--r-- | layouts/partials/docs/inject/toc-before.html | 0 | ||||
| -rw-r--r-- | layouts/partials/docs/menu.html | 40 |
13 files changed, 120 insertions, 0 deletions
diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html new file mode 100644 index 0000000..1edbcfa --- /dev/null +++ b/layouts/partials/docs/footer.html @@ -0,0 +1,31 @@ +<!-- Previous / Next navigation --> +<!-- <div class='prev-next'> --> + <!-- <div class='prev'> --> + <!-- {{ with .NextInSection }} --> + <!-- <h3><a href="{{ .RelPermalink }}"> --> + <!-- <span>previous page: {{ .Title }}</span> --> + <!-- </a></h3> --> + <!-- {{ else }} --> + <!-- <span></span> --> + <!-- {{ end }} --> + <!-- </div> --> + <!-- <div class="next"> --> + <!-- {{ if and (eq .Kind "section") .Params.next }} --> + <!-- {{/* Use the raw URL from front matter */}} --> + <!-- <h3><a href="{{ .Params.next }}"> --> + <!-- <span>next: installation</span> --> + <!-- </a></h3> --> + <!-- {{ else }} --> + <!-- {{ with .PrevInSection }} --> + <!-- <h3><a href="{{ .RelPermalink }}"> --> + <!-- <span>next: {{ .Title }}</span> --> + <!-- </a></h3> --> + <!-- {{ end }} --> + <!-- {{ end }} --> + <!-- </div> --> +<!-- </div> --> + +<!-- {{ $script := resources.Get "clipboard.js" | resources.Minify }} --> +<!-- {{ with $script.Content }} --> + <!-- <script>{{ . | safeJS }}</script> --> +<!-- {{ end }} --> diff --git a/layouts/partials/docs/header.html b/layouts/partials/docs/header.html new file mode 100644 index 0000000..9e4488c --- /dev/null +++ b/layouts/partials/docs/header.html @@ -0,0 +1,17 @@ +<div class="flex align-center justify-between"> + <label for="menu-control"> + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> + <path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" fill="currentColor"/> + </svg> + </label> + + <label for="toc-control"> + {{ if default true (default .Site.Params.BookToC .Params.BookToC) }} + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> + <title>Table of Contents</title> + <path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z" fill="currentColor"/> + <path d="M0 0h24v24H0z" fill="none"/> + </svg> + {{ end }} + </label> +</div> diff --git a/layouts/partials/docs/html-head-title.html b/layouts/partials/docs/html-head-title.html new file mode 100644 index 0000000..bb7ef46 --- /dev/null +++ b/layouts/partials/docs/html-head-title.html @@ -0,0 +1,5 @@ +{{ if .IsHome }} + {{ .Site.Title -}} +{{ else }} + {{ partial "docs/title" . }} | {{ .Site.Title -}} +{{ end }} diff --git a/layouts/partials/docs/inject/body.html b/layouts/partials/docs/inject/body.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layouts/partials/docs/inject/body.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/docs/inject/content-after.html b/layouts/partials/docs/inject/content-after.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layouts/partials/docs/inject/content-after.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/docs/inject/content-before.html b/layouts/partials/docs/inject/content-before.html new file mode 100644 index 0000000..d33168e --- /dev/null +++ b/layouts/partials/docs/inject/content-before.html @@ -0,0 +1,21 @@ +<div class="flex justify-between align-center"> +{{ if not .IsHome}} + {{ if .Title }} + <h1>{{ .Title }}</h1> + {{ else }} + <h1>{{ .Site.Title }}</h1> + {{ end }} + {{ 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='last modified | {{ $date | lower }}' target="_blank" rel="noopener"> + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="book-icon"> + <path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z" fill="currentColor"/> + <path fill="none" d="M0 0h24v24H0z"/> + </svg> + <span>{{ $date | lower }}</span> + </a> + </div> + {{ end }} +{{ end }} +</div> diff --git a/layouts/partials/docs/inject/footer.html b/layouts/partials/docs/inject/footer.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/docs/inject/footer.html diff --git a/layouts/partials/docs/inject/head.html b/layouts/partials/docs/inject/head.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/docs/inject/head.html diff --git a/layouts/partials/docs/inject/menu-after.html b/layouts/partials/docs/inject/menu-after.html new file mode 100644 index 0000000..d1e7152 --- /dev/null +++ b/layouts/partials/docs/inject/menu-after.html @@ -0,0 +1,4 @@ +<br> +<hr/> +<p><a href="https://aethrvmn.gr/license" target="_blank">all content is licensed under the EU Public License v1.2</a></p> +<p><a href="https://aethrvmn.gr/policy" target="_blank">EU TDM Act Article 4 - Rights Reserved</a></p> diff --git a/layouts/partials/docs/inject/menu-before.html b/layouts/partials/docs/inject/menu-before.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/docs/inject/menu-before.html diff --git a/layouts/partials/docs/inject/toc-after.html b/layouts/partials/docs/inject/toc-after.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/docs/inject/toc-after.html diff --git a/layouts/partials/docs/inject/toc-before.html b/layouts/partials/docs/inject/toc-before.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/docs/inject/toc-before.html diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html new file mode 100644 index 0000000..4d6f6b8 --- /dev/null +++ b/layouts/partials/docs/menu.html @@ -0,0 +1,40 @@ +<nav> +{{ partial "docs/brand" . }} +{{ partial "docs/search" . }} +{{ if hugo.IsMultilingual }} + {{ partial "docs/languages" . }} +{{ end }} + +<div class="menu-before"> +{{ partial "docs/inject/menu-before" . }} +{{ partial "docs/menu-hugo" .Site.Menus.before }} +</div> + +<div class="menu-center"> +{{ partial "docs/menu-filetree" . }} +</div> + +<div class="menu-after"> + <div class="left"> + {{ partial "docs/menu-hugo" .Site.Menus.after_left }} + </div> + + <div class="center"> + {{ partial "docs/menu-hugo" .Site.Menus.after_center }} + </div> + + <div class="right"> + {{ partial "docs/menu-hugo" .Site.Menus.after_right }} + </div> +</div> + +<div> +{{ partial "docs/inject/menu-after" . }} +</div> +</nav> + +<!-- Restore menu position as soon as possible to avoid flickering --> +{{ $script := resources.Get "menu-reset.js" | resources.Minify }} +{{ with $script.Content }} + <script>{{ . | safeJS }}</script> +{{ end }} |
