From 7ed442dfa3b26483ff6cd1eeb871b40b6be97f52 Mon Sep 17 00:00:00 2001
From: User Mms
Date: Tue, 29 Oct 2024 15:30:06 +0100
Subject: feat: UF archive
---
archive/layouts/24-blog/baseof.html | 371 +
archive/layouts/24-blog/list.html | 38 +
archive/layouts/24-blog/single.html | 4 +
assets/mirror/userfriendly/data.yaml | 22576 +++++++++----------
bin/uf_gen.rb | 22 +
config/_default/hugo.toml | 3 +
config/_default/menus.en.toml | 28 +
content-org/blog.org | 32 +-
content-org/bsd.org | 176 +
content/blog/2024/bezos-washington-post.md | 4 +-
content/mirror/_index.md | 0
content/mirror/userfriendly/_content.gotmpl | 32 +
content/mirror/userfriendly/index.md | 8 +
layouts/24-retired-bsd/baseof.html | 13 -
layouts/24-retired-bsd/list.html | 2 -
layouts/24-retired-bsd/redirect.html | 9 -
layouts/24-retired-bsd/single.html | 2 -
layouts/partials/24-unification/nav.html | 40 +
layouts/retired-2024-blog/baseof.html | 371 -
layouts/retired-2024-blog/list.html | 38 -
layouts/retired-2024-blog/single.html | 4 -
retired-2024-emacs/baseof.html | 13 -
retired-2024-emacs/list.html | 2 -
retired-2024-emacs/redirect.html | 9 -
retired-2024-emacs/single.html | 2 -
themes/24-unification/layouts/_default/baseof.html | 539 +-
themes/24-unification/layouts/_default/comic.html | 68 +
.../layouts/_default/comic_index.html | 43 +
themes/24-unification/layouts/_default/list.html | 2 +-
themes/24-unification/layouts/_default/rss.xml | 2 +-
themes/24-unification/layouts/_default/single.html | 1 -
31 files changed, 12424 insertions(+), 12030 deletions(-)
create mode 100644 archive/layouts/24-blog/baseof.html
create mode 100644 archive/layouts/24-blog/list.html
create mode 100644 archive/layouts/24-blog/single.html
create mode 100755 bin/uf_gen.rb
create mode 100644 content/mirror/_index.md
create mode 100644 content/mirror/userfriendly/_content.gotmpl
create mode 100644 content/mirror/userfriendly/index.md
delete mode 100644 layouts/24-retired-bsd/baseof.html
delete mode 100644 layouts/24-retired-bsd/list.html
delete mode 100644 layouts/24-retired-bsd/redirect.html
delete mode 100644 layouts/24-retired-bsd/single.html
create mode 100644 layouts/partials/24-unification/nav.html
delete mode 100644 layouts/retired-2024-blog/baseof.html
delete mode 100644 layouts/retired-2024-blog/list.html
delete mode 100644 layouts/retired-2024-blog/single.html
delete mode 100644 retired-2024-emacs/baseof.html
delete mode 100644 retired-2024-emacs/list.html
delete mode 100644 retired-2024-emacs/redirect.html
delete mode 100644 retired-2024-emacs/single.html
create mode 100644 themes/24-unification/layouts/_default/comic.html
create mode 100644 themes/24-unification/layouts/_default/comic_index.html
diff --git a/archive/layouts/24-blog/baseof.html b/archive/layouts/24-blog/baseof.html
new file mode 100644
index 0000000..7f504c4
--- /dev/null
+++ b/archive/layouts/24-blog/baseof.html
@@ -0,0 +1,371 @@
+
+
+
+
+
+ {{ .Page.Title }}
+
+
+
+
+
+
+ {{- $header_rect := resources.Get "blog/logo/right.png" }}
+ {{- $header_rect_180 := $header_rect.Resize "180x webp q90"}}
+
+
+ {{- $header_rect_32 := $header_rect.Resize "32x webp q90"}}
+
+
+ {{- $header_rect_16 := $header_rect.Resize "16x webp q90"}}
+
+
+
+
+
+
+
+
+ {{- $imageUrl := default "blog/logo/right.png" .Params.image }}
+ {{- $image := resources.Get $imageUrl }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ block "main" . }}
+ {{ end }}
+
+
+ {{ end }}
+ {{ $lastMonth = (.PublishDate.Format "January")}}
+
+
+
+
+ {{(.PublishDate.Format "02") }}
+
+
+
+{{ end }}
+
+{{ end }}
diff --git a/themes/24-unification/layouts/_default/list.html b/themes/24-unification/layouts/_default/list.html
index 58cb880..3b91e9f 100644
--- a/themes/24-unification/layouts/_default/list.html
+++ b/themes/24-unification/layouts/_default/list.html
@@ -5,7 +5,7 @@
{{ .Page.Content }}
{{ else }}
-{{ $paginator := .Paginate .Site.RegularPages.ByDate.Reverse 10 }}
+{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse ".Params.nolist" "<>" true ) 10 }}
{{ range $paginator.Pages }}
{{ if eq .Section "blog" }}
diff --git a/themes/24-unification/layouts/_default/rss.xml b/themes/24-unification/layouts/_default/rss.xml
index fa34bd5..8df6fa9 100644
--- a/themes/24-unification/layouts/_default/rss.xml
+++ b/themes/24-unification/layouts/_default/rss.xml
@@ -34,7 +34,7 @@
{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
{{- $pages := slice }}
{{- if $.IsHome }}
-{{- $pages = $pctx.RegularPages}}
+{{- $pages = where $pctx.RegularPages ".Params.nolist" "<>" true }}
{{- else if $.IsSection }}
{{- $pages = $pctx.RegularPagesRecursive}}
{{- else }}
diff --git a/themes/24-unification/layouts/_default/single.html b/themes/24-unification/layouts/_default/single.html
index fdfcdd4..838debd 100644
--- a/themes/24-unification/layouts/_default/single.html
+++ b/themes/24-unification/layouts/_default/single.html
@@ -1,4 +1,3 @@
{{ define "main" }}
{{ partial "partials/blog/full-post.html" . }}
-
{{- end }}
--
cgit v1.2.3