From 1147a663e70aadb2578cbe601bc723d7cd939c5a Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sat, 30 Aug 2025 15:17:32 +0200 Subject: added non-content --- layouts/_default/rss.xml | 57 ++++++++++++++++++++++++ layouts/blog/list.html | 22 +++++++++ layouts/blog/single.html | 15 +++++++ layouts/home.html | 4 ++ layouts/partials/docs/footer.html | 31 +++++++++++++ layouts/partials/docs/header.html | 17 +++++++ layouts/partials/docs/html-head-title.html | 5 +++ layouts/partials/docs/inject/body.html | 1 + layouts/partials/docs/inject/content-after.html | 1 + layouts/partials/docs/inject/content-before.html | 21 +++++++++ layouts/partials/docs/inject/footer.html | 0 layouts/partials/docs/inject/head.html | 0 layouts/partials/docs/inject/menu-after.html | 4 ++ layouts/partials/docs/inject/menu-before.html | 0 layouts/partials/docs/inject/toc-after.html | 0 layouts/partials/docs/inject/toc-before.html | 0 layouts/partials/docs/menu.html | 40 +++++++++++++++++ 17 files changed, 218 insertions(+) create mode 100644 layouts/_default/rss.xml create mode 100644 layouts/blog/list.html create mode 100644 layouts/blog/single.html create mode 100644 layouts/home.html create mode 100644 layouts/partials/docs/footer.html create mode 100644 layouts/partials/docs/header.html create mode 100644 layouts/partials/docs/html-head-title.html create mode 100644 layouts/partials/docs/inject/body.html create mode 100644 layouts/partials/docs/inject/content-after.html create mode 100644 layouts/partials/docs/inject/content-before.html create mode 100644 layouts/partials/docs/inject/footer.html create mode 100644 layouts/partials/docs/inject/head.html create mode 100644 layouts/partials/docs/inject/menu-after.html create mode 100644 layouts/partials/docs/inject/menu-before.html create mode 100644 layouts/partials/docs/inject/toc-after.html create mode 100644 layouts/partials/docs/inject/toc-before.html create mode 100644 layouts/partials/docs/menu.html (limited to 'layouts') 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 "" | safeHTML }} + + + κeímena | aethrvmn + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo + {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{ . }}{{ end }}{{ if not .Date.IsZero }} + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $pages }} + + {{ .Title }} + {{ .Permalink }} + aethrvmn + {{ .Permalink }} + {{ .Content | transform.XMLEscape | safeHTML }} + + {{- end }} + + 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 }} +
+

+ {{ partial "docs/title.html" . }} +

+ {{ partial "docs/post-meta" . }} +
+ {{- .Summary -}} + {{ if .Truncated }} + ... + {{ end }} +
+
+ {{ 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" }} +
+ + + + {{ partial "docs/post-meta" . }} +
+ {{- .Content -}} +
+
+{{ 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ +
+ + + +
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 @@ +
+{{ if not .IsHome}} + {{ if .Title }} +

{{ .Title }}

+ {{ else }} +

{{ .Site.Title }}

+ {{ end }} + {{ if and .GitInfo .Site.Params.BookRepo }} +
+ {{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}} + + + + + + {{ $date | lower }} + +
+ {{ end }} +{{ end }} +
diff --git a/layouts/partials/docs/inject/footer.html b/layouts/partials/docs/inject/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/docs/inject/head.html b/layouts/partials/docs/inject/head.html new file mode 100644 index 0000000..e69de29 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 @@ +
+
+

all content is licensed under the EU Public License v1.2

+

EU TDM Act Article 4 - Rights Reserved

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 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 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 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 @@ + + + +{{ $script := resources.Get "menu-reset.js" | resources.Minify }} +{{ with $script.Content }} + +{{ end }} -- cgit v1.2.3