From 1264cfd404d6c665062fb7d29a48429030e3c4fd Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 6 Apr 2025 14:45:00 +0200 Subject: [PATCH] poison theme, add socials including cutom forgejo --- .gitignore | 2 +- content/about/about.md | 7 ++ content/about/other.md | 7 ++ content/index.md | 1 - content/projects/servicepoint/servicepoint.md | 8 ++ flake.nix | 23 ++++- hugo.toml | 44 ++++++++- layouts/partials/sidebar/socials.html | 96 +++++++++++++++++++ 8 files changed, 180 insertions(+), 8 deletions(-) create mode 100644 content/about/about.md create mode 100644 content/about/other.md delete mode 100644 content/index.md create mode 100644 content/projects/servicepoint/servicepoint.md create mode 100644 layouts/partials/sidebar/socials.html diff --git a/.gitignore b/.gitignore index ad23815..d4ba081 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ _gen # downloaded by nix -themes/hugo-theme-m10c +themes diff --git a/content/about/about.md b/content/about/about.md new file mode 100644 index 0000000..c6656fc --- /dev/null +++ b/content/about/about.md @@ -0,0 +1,7 @@ ++++ +date = '2025-04-06T12:24:08+02:00' +draft = true +title = 'About' ++++ + +this is about diff --git a/content/about/other.md b/content/about/other.md new file mode 100644 index 0000000..bd024e8 --- /dev/null +++ b/content/about/other.md @@ -0,0 +1,7 @@ ++++ +date = '2025-04-06T12:24:08+02:00' +draft = true +title = 'Other' ++++ + +this is about/other diff --git a/content/index.md b/content/index.md deleted file mode 100644 index 943e03f..0000000 --- a/content/index.md +++ /dev/null @@ -1 +0,0 @@ -this is index.md diff --git a/content/projects/servicepoint/servicepoint.md b/content/projects/servicepoint/servicepoint.md new file mode 100644 index 0000000..1b58710 --- /dev/null +++ b/content/projects/servicepoint/servicepoint.md @@ -0,0 +1,8 @@ ++++ +date = '2025-04-06T12:24:08+02:00' +draft = true +title = 'servicepoint' ++++ + + +this is servicepoint diff --git a/flake.nix b/flake.nix index 2557ba1..fb25e81 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,23 @@ cp -r * $out ''; }; + hugo-theme-poison = pkgs.stdenv.mkDerivation { + pname = "hugo-theme-poison"; + homepage = "https://poison.lukeorth.com/"; + version = ""; + + src = pkgs.fetchFromGitHub { + owner = "lukeorth"; + repo = "poison"; + rev = "07485e85f0247518bc64ed0cc6fd6b39abe3d90d"; + hash = "sha256-NQN4u6rBjw+zC7NuDUFg9LUuuvIR7Ed22UIs2jcZtkQ="; + }; + + installPhase = '' + mkdir -p $out + cp -r * $out + ''; + }; zerforschen-plus-content = pkgs.stdenv.mkDerivation { name = "zerforschen-plus-content"; @@ -61,8 +78,8 @@ # Build phase - run Hugo to generate the site buildPhase = '' # Copy in theme before building website - mkdir -p themes/hugo-theme-m10c - cp -r ${hugo-theme-m10c}/* themes/hugo-theme-m10c/ + mkdir -p themes/poison + cp -r ${hugo-theme-poison}/* themes/poison/ hugo ''; @@ -86,7 +103,7 @@ shellHook = '' mkdir -p themes - ln -snf "${self.packages.${system}.hugo-theme-m10c}" themes/hugo-theme-m10c + ln -snf "${self.packages.${system}.hugo-theme-poison}" themes/poison ''; }; } diff --git a/hugo.toml b/hugo.toml index 56e3283..87533cf 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,4 +1,42 @@ -baseURL = 'https://zerforschen.plus' -languageCode = 'en-us' +#baseURL = 'https://zerforschen.plus' +baseURL = '/' +#languageCode = 'en-us' title = 'zerforschen+' -theme = 'hugo-theme-m10c' +theme = 'poison' +pluralizelisttitles = false + +[params] + brand = "zerforschen+" + description = "" + dark_mode = true + front_page_content = ["posts", "projects"] + menu = [ + # Dict keys: + # Name: The name to display on the menu. + # URL: The directory relative to the content directory. + # HasChildren: If the directory's files should be listed. Default is true. + # Limit: If the files should be listed, how many should be shown. + + {Name = "About", URL = "/about/", HasChildren = false}, + + {Name = "Posts", URL = "/posts/", HasChildren = true, Limit = 99}, + + # {Name = "Projects", URL = "/projects/"}, + ] + + #email_url = "mailto://user@domain" + github_url = "https://github.com/kaesaecracker" + mastodon_url = "https://chaos.social/@vinzenz" + matrix_url = "https://matrix.org" + forgejo_url = "https://git.berlin.ccc.de/vinzenz" + rss_icon = true + +[taxonomies] + series = 'series' + tags = 'tags' + +[params.meta] + favicon = true + +[pagination] + pagerSize = 10 diff --git a/layouts/partials/sidebar/socials.html b/layouts/partials/sidebar/socials.html new file mode 100644 index 0000000..74bcb32 --- /dev/null +++ b/layouts/partials/sidebar/socials.html @@ -0,0 +1,96 @@ +{{ if .Site.Params.forgejo_url }} + + + + + + + + + + + + +{{ end }} +{{ if .Site.Params.gitlab_url }} + + + + + + +{{ end }} +{{ if .Site.Params.linkedin_url }} + + + + + +{{ end }} +{{ if .Site.Params.mastodon_url }} + + + + + +{{ end }} +{{ if .Site.Params.matrix_url }} + + + + + + + +{{ end }} +{{ if .Site.Params.rss_icon }} + + + + + + + + + +{{ end }} +{{ if .Site.Params.email_url }} + + + + + +{{ end }} +{{ if .Site.Params.orcid }} + + + + + +{{ end }} +{{ if .Site.Params.signal_url }} + + + + + +{{ end }} +{{ if .Site.Params.github_url }} + + + + + +{{ end }}