summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layouts/_default/rss.xml57
-rw-r--r--layouts/blog/list.html22
-rw-r--r--layouts/blog/single.html15
-rw-r--r--layouts/home.html4
-rw-r--r--layouts/partials/docs/footer.html31
-rw-r--r--layouts/partials/docs/header.html17
-rw-r--r--layouts/partials/docs/html-head-title.html5
-rw-r--r--layouts/partials/docs/inject/body.html1
-rw-r--r--layouts/partials/docs/inject/content-after.html1
-rw-r--r--layouts/partials/docs/inject/content-before.html21
-rw-r--r--layouts/partials/docs/inject/footer.html0
-rw-r--r--layouts/partials/docs/inject/head.html0
-rw-r--r--layouts/partials/docs/inject/menu-after.html4
-rw-r--r--layouts/partials/docs/inject/menu-before.html0
-rw-r--r--layouts/partials/docs/inject/toc-after.html0
-rw-r--r--layouts/partials/docs/inject/toc-before.html0
-rw-r--r--layouts/partials/docs/menu.html40
17 files changed, 218 insertions, 0 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
new file mode 100644
index 0000000..e0986bd
--- /dev/null
+++ b/layouts/_default/rss.xml
@@ -0,0 +1,57 @@
+{{- $authorEmail := "" }}
+{{- with site.Params.author }}
+ {{- if reflect.IsMap . }}
+ {{- with .email }}
+ {{- $authorEmail = . }}
+ {{- end }}
+ {{- end }}
+{{- end }}
+
+{{- $authorName := "" }}
+{{- with site.Params.author }}
+ {{- if reflect.IsMap . }}
+ {{- with .name }}
+ {{- $authorName = . }}
+ {{- end }}
+ {{- else }}
+ {{- $authorName = . }}
+ {{- end }}
+{{- end }}
+
+{{- $pctx := . }}
+{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
+{{- $pages := slice }}
+{{- if or $.IsHome $.IsSection }}
+{{- $pages = $pctx.RegularPages }}
+{{- else }}
+{{- $pages = $pctx.Pages }}
+{{- end }}
+{{- $pages = where $pages "Params.noRSS" "ne" true -}}
+{{- $limit := .Site.Config.Services.RSS.Limit }}
+{{- if ge $limit 1 }}
+{{- $pages = $pages | first $limit }}
+{{- end }}
+{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>κeímena | aethrvmn</title>
+ <link>{{ .Permalink }}</link>
+ <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
+ <generator>Hugo</generator>
+ <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
+ <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
+ <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ {{- with .OutputFormats.Get "RSS" }}
+ {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
+ {{- end }}
+ {{- range $pages }}
+ <item>
+ <title>{{ .Title }}</title>
+ <link>{{ .Permalink }}</link>
+ <author>aethrvmn</author>
+ <guid>{{ .Permalink }}</guid>
+ <description>{{ .Content | transform.XMLEscape | safeHTML }}</description>
+ </item>
+ {{- end }}
+ </channel>
+</rss>
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
new file mode 100644
index 0000000..aff32f5
--- /dev/null
+++ b/layouts/blog/list.html
@@ -0,0 +1,22 @@
+{{ define "main" }}
+ {{ range sort .Paginator.Pages }}
+ <article class="markdown book-post">
+ <h2>
+ <a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a>
+ </h2>
+ {{ partial "docs/post-meta" . }}
+ <div class="book-post-content">
+ {{- .Summary -}}
+ {{ if .Truncated }}
+ <a href="{{ .RelPermalink }}">...</a>
+ {{ end }}
+ </div>
+ </article>
+ {{ end }}
+
+ {{ template "_internal/pagination.html" . }}
+{{ end }}
+
+{{ define "toc" }}
+ {{ partial "docs/taxonomy" . }}
+{{ end }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
new file mode 100644
index 0000000..d702e70
--- /dev/null
+++ b/layouts/blog/single.html
@@ -0,0 +1,15 @@
+{{ define "main" }}
+<article class="markdown book-post">
+ <!-- <h1> -->
+ <!-- {{ partial "docs/title.html" . }} -->
+ <!-- </h1> -->
+ {{ partial "docs/post-meta" . }}
+ <div class="book-post-content">
+ {{- .Content -}}
+ </div>
+</article>
+{{ end }}
+
+{{ define "toc" }}
+ {{ partial "docs/toc" . }}
+{{ end }}
diff --git a/layouts/home.html b/layouts/home.html
new file mode 100644
index 0000000..d70be7e
--- /dev/null
+++ b/layouts/home.html
@@ -0,0 +1,4 @@
+{{ define "main" }}
+ {{ .Content }}
+{{ end }}
+
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 }}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.