From 87992468e1dedcc8a5d765f87738f18dce671845 Mon Sep 17 00:00:00 2001 From: User Mms Date: Sun, 13 Oct 2024 21:57:58 +0200 Subject: feat: more of new site --- config/_default/hugo.toml | 2 +- config/_default/menus.en.toml | 151 +++-- content-org/blog-extra.org | 4 +- layouts/blog/baseof.html | 371 ----------- layouts/blog/list.html | 38 -- layouts/blog/single.html | 4 - layouts/retired-2024-blog/baseof.html | 371 +++++++++++ layouts/retired-2024-blog/list.html | 38 ++ layouts/retired-2024-blog/single.html | 4 + themes/24-unification/layouts/_default/baseof.html | 297 +++++++++ themes/24-unification/layouts/_default/list.html | 38 ++ themes/24-unification/layouts/_default/rss.xml | 81 +++ themes/24-unification/layouts/_default/single.html | 4 + themes/24-unification/static/style.css | 709 +++++++++++++++++++++ 14 files changed, 1641 insertions(+), 471 deletions(-) delete mode 100644 layouts/blog/baseof.html delete mode 100644 layouts/blog/list.html delete mode 100644 layouts/blog/single.html create mode 100644 layouts/retired-2024-blog/baseof.html create mode 100644 layouts/retired-2024-blog/list.html create mode 100644 layouts/retired-2024-blog/single.html create mode 100644 themes/24-unification/layouts/_default/baseof.html create mode 100644 themes/24-unification/layouts/_default/list.html create mode 100644 themes/24-unification/layouts/_default/rss.xml create mode 100644 themes/24-unification/layouts/_default/single.html create mode 100644 themes/24-unification/static/style.css diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index ee3d778..d60b41f 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -3,7 +3,7 @@ languageCode = 'en-us' title = "Michał Sapka's website" tagline = "Hello do Michał's weblog!" -theme = "sapka-2024" +theme = "24-unification" [params] diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml index 79fe8a5..41d1457 100644 --- a/config/_default/menus.en.toml +++ b/config/_default/menus.en.toml @@ -1,64 +1,102 @@ -[[main-nav]] - name = "blog" - pageRef = "/blog" - pre = "Read my" - weight = 10 - -[[main-nav]] - name = "Links" - pageRef = "/links" - post = "to other sites" - weight = 20 +[[sections]] + name = "Blog" + section = "blog" + pageRef = "/1" + weight = 100 + [[sections.params]] + submenu = "sections-blog" -[[main-nav]] - name = "funny pictures" - url = "/funnies/c/" - pre = "Browse my collection of" - post = "(over 5000)" - weight = 30 - -[[main-nav]] - name = "code repository" - url = "/git/" - pre = "Source" - weight = 50 - -[[main-nav]] - name = "Articles" - pageRef = "/articles" - weight = 40 - -[[main-nav]] - name = "Me" - pageRef = "/" - weight = 60 - [[main-nav.params]] - nonpage = "yes" - inlineChildren = "yes" - -[[main-nav]] - pre = "Buy me a" - name = "Ko-fi" - url = "https://ko-fi.com/mmspl" - weight = 70 - [[main-nav.params]] - forcedId = "ko-fi" - -[[main-nav]] +# [[sections-blog]] +# name = "2024" +# pageRef = "/blog" + +# [[sections-blog]] +# name = "2023" +# pageRef = "/blog" + +# [[sections-blog]] +# name = "2022" +# pageRef = "/blog" + + + +# [[sections]] +# name = "Unix History" +# pageRef = "/unix-history" +# weight = 500 +# [[sections.params]] +# submenu = "section-null" + + +# [[sections]] +# name = "BSD" +# pageRef = "/emacs" +# weight = 600 +# [[sections.params]] +# submenu = "section-null" + +# [[sections]] +# name = "Emacs" +# pageRef = "/emacs" +# weight = 700 +# [[sections.params]] +# submenu = "section-null" + + +# [[sections]] +# name = "Reviews" +# pageRef = "/brain-rot" +# weight = 800 +# [[sections.params]] +# submenu = "section-null" + + +# [[sections]] +# name = "Star Trek" +# pageRef = "/star-trek" +# weight = 900 +# [[sections.params]] +# submenu = "section-null" + + +[[sections]] + name = "More" + section="more" + pageRef = "/more" + weight = 2000 + [[sections.params]] + submenu = "sections-extra" + +[[sections-extra]] name = "Uses" - pageRef = "/me/uses" - parent = "Me" + pageRef = "/more/uses" -[[main-nav]] + +[[sections-extra]] name = "Now" - pageRef = "/me/now" - parent = "Me" + pageRef = "/unix-history" + +[[sections-extra]] + name = "Contact" + pageRef = "/unix-history" -[[main-nav]] - name = "Contact me" - pageRef = "/me/contact" - parent = "Me" +# [[sections]] +# name = "Links" +# pageRef = "/index.xml" +# weight = 9000 +# [[sections.params]] +# submenu = "sections-null" + + +[[sections]] + name = "Subscribe" + pageRef = "/index.xml" + weight = 10000 + [[sections.params]] + submenu = "sections-null" + + @@ -295,3 +333,6 @@ identifier = "mtimeline" [[brain-rot-patlabor.params]] nonpage = "yes" + + + diff --git a/content-org/blog-extra.org b/content-org/blog-extra.org index 7189bcb..bae232c 100644 --- a/content-org/blog-extra.org +++ b/content-org/blog-extra.org @@ -5,7 +5,7 @@ #+HUGO_BASE_DIR: ~/ghq/vcs.sapka.me/michal-sapka-me/ #+HUGO_WEIGHT: auto -#+HUGO_SECTION: blog +#+HUGO_SECTION: more * Michał's Blog :PROPERTIES: @@ -18,7 +18,7 @@ * More pages :PROPERTIES: -:EXPORT_HUGO_SECTION: blog/more +:EXPORT_HUGO_SECTION: more :EXPORT_FILE_NAME: _index :EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :abstract Other things on this blog :END: diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html deleted file mode 100644 index a2e1caf..0000000 --- a/layouts/blog/baseof.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - - {{ .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 }} - - - - - - - - - - - - - - - - - - -
- -
- -
-
My other sites:
- Brain Rots - Cool Emacs - History of Unix -
- - {{ block "main" . }} - {{ end }} - -