From 5e4950228340b15dc44e5d7661cfb862d7b51cb8 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 29 Dec 2024 14:16:46 +0100 Subject: [PATCH] Init hugo blowfish --- flake.nix | 3 +- hugo/.gitignore | 13 ++ hugo/config/_default/hugo.toml | 68 ++++++++++ hugo/config/_default/languages.en.toml | 29 +++++ hugo/config/_default/markup.toml | 13 ++ hugo/config/_default/menus.en.toml | 69 ++++++++++ hugo/config/_default/module.toml | 2 + hugo/config/_default/params.toml | 167 +++++++++++++++++++++++++ hugo/content/posts/my-first-post.md | 13 ++ hugo/go.mod | 5 + hugo/go.sum | 2 + hugo/hugo.toml | 3 - 12 files changed, 383 insertions(+), 4 deletions(-) create mode 100644 hugo/.gitignore create mode 100644 hugo/config/_default/hugo.toml create mode 100644 hugo/config/_default/languages.en.toml create mode 100644 hugo/config/_default/markup.toml create mode 100644 hugo/config/_default/menus.en.toml create mode 100644 hugo/config/_default/module.toml create mode 100644 hugo/config/_default/params.toml create mode 100644 hugo/content/posts/my-first-post.md create mode 100644 hugo/go.mod create mode 100644 hugo/go.sum delete mode 100644 hugo/hugo.toml diff --git a/flake.nix b/flake.nix index 3b3fe1b..3b3a72f 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,8 @@ devShells = forEachSupportedSystem ({ pkgs }: { default = pkgs.mkShell { packages = with pkgs; [ - hugo + hugo + go opentofu ]; }; diff --git a/hugo/.gitignore b/hugo/.gitignore new file mode 100644 index 0000000..86c95ef --- /dev/null +++ b/hugo/.gitignore @@ -0,0 +1,13 @@ +# Generated files by hugo +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock diff --git a/hugo/config/_default/hugo.toml b/hugo/config/_default/hugo.toml new file mode 100644 index 0000000..2b86d41 --- /dev/null +++ b/hugo/config/_default/hugo.toml @@ -0,0 +1,68 @@ +# -- Site Configuration -- +# Refer to the theme docs for more details about each of these parameters. +# https://blowfish.page/docs/getting-started/ + +baseURL = "https://ghoscht.com" +defaultContentLanguage = "en" + +# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles + +enableRobotsTXT = true +summaryLength = 0 + +buildDrafts = false +buildFuture = false + +enableEmoji = true + +# googleAnalytics = "G-XXXXXXXXX" + +[pagination] + pagerSize = 100 + +[imaging] + anchor = 'Center' + +[taxonomies] + tag = "tags" + category = "categories" + author = "authors" + series = "series" + +[sitemap] + changefreq = 'daily' + filename = 'sitemap.xml' + priority = 0.5 + +[outputs] + home = ["HTML", "RSS", "JSON"] + +[related] + threshold = 0 + toLower = false + + [[related.indices]] + name = "tags" + weight = 100 + + [[related.indices]] + name = "categories" + weight = 100 + + [[related.indices]] + name = "series" + weight = 50 + + [[related.indices]] + name = "authors" + weight = 20 + + [[related.indices]] + name = "date" + weight = 10 + + [[related.indices]] + applyFilter = false + name = 'fragmentrefs' + type = 'fragments' + weight = 10 diff --git a/hugo/config/_default/languages.en.toml b/hugo/config/_default/languages.en.toml new file mode 100644 index 0000000..255c9ef --- /dev/null +++ b/hugo/config/_default/languages.en.toml @@ -0,0 +1,29 @@ +disabled = false +languageCode = "en" +languageName = "English" +weight = 1 +title = "GHOSCHT" + +[params] + displayName = "EN" + isoCode = "en" + rtl = false + dateFormat = "2 January 2006" + # logo = "img/logo.png" + # secondaryLogo = "img/secondary-logo.png" + description = "An account of ramblings and experiences" + # copyright = "Copy, _right?_ :thinking_face:" + +[params.author] + name = "GHOSCHT" +# email = "youremail@example.com" +# image = "img/blowfish_logo.png" +# imageQuality = 96 + headline = "Computer Science Student & Avid Photographer" + bio = "Computer Science @TUM | Working Student @ IDS (Allianz Group)" + links = [ + { fork = "https://git.ghoscht.com/ghoscht"}, + { instagram = "https://instagram.com/gh0scht" }, + { linkedin = "https://linkedin.com/in/pgroegel" }, + { mastodon = "https://tum.social/@ghoscht" }, + ] diff --git a/hugo/config/_default/markup.toml b/hugo/config/_default/markup.toml new file mode 100644 index 0000000..c5449fc --- /dev/null +++ b/hugo/config/_default/markup.toml @@ -0,0 +1,13 @@ +# -- Markup -- +# These settings are required for the theme to function. + +[goldmark] +[goldmark.renderer] + unsafe = true + +[highlight] + noClasses = false + +[tableOfContents] + startLevel = 2 + endLevel = 4 diff --git a/hugo/config/_default/menus.en.toml b/hugo/config/_default/menus.en.toml new file mode 100644 index 0000000..b369759 --- /dev/null +++ b/hugo/config/_default/menus.en.toml @@ -0,0 +1,69 @@ +# -- Main Menu -- +# The main menu is displayed in the header at the top of the page. +# Acceptable parameters are name, pageRef, page, url, title, weight. +# +# The simplest menu configuration is to provide: +# name = The name to be displayed for this menu link +# pageRef = The identifier of the page or section to link to +# +# By default the menu is ordered alphabetically. This can be +# overridden by providing a weight value. The menu will then be +# ordered by weight from lowest to highest. + +[[main]] + name = "Blog" + pageRef = "posts" + weight = 10 + +#[[main]] +# name = "Parent" +# weight = 20 + +#[[main]] +# name = "example sub-menu 1" +# parent = "Parent" +# pageRef = "posts" +# weight = 20 + +#[[main]] +# name = "example sub-menu 2" +# parent = "Parent" +# pageRef = "posts" +# weight = 20 + +#[[subnavigation]] +# name = "An interesting topic" +# pageRef = "tags/interesting-topic" +# weight = 10 + +#[[subnavigation]] +# name = "My Awesome Category" +# pre = "github" +# pageRef = "categories/awesome" +# weight = 20 + +[[main]] + name = "Categories" + pageRef = "categories" + weight = 20 + +#[[main]] +# name = "Tags" +# pageRef = "tags" +# weight = 30 + + +# -- Footer Menu -- +# The footer menu is displayed at the bottom of the page, just before +# the copyright notice. Configure as per the main menu above. + + +# [[footer]] +# name = "Tags" +# pageRef = "tags" +# weight = 10 + +# [[footer]] +# name = "Categories" +# pageRef = "categories" +# weight = 20 diff --git a/hugo/config/_default/module.toml b/hugo/config/_default/module.toml new file mode 100644 index 0000000..db4530d --- /dev/null +++ b/hugo/config/_default/module.toml @@ -0,0 +1,2 @@ +[[imports]] +path = "github.com/nunocoracao/blowfish/v2" diff --git a/hugo/config/_default/params.toml b/hugo/config/_default/params.toml new file mode 100644 index 0000000..c5f750f --- /dev/null +++ b/hugo/config/_default/params.toml @@ -0,0 +1,167 @@ +# -- Theme Options -- +# These options control how the theme functions and allow you to +# customise the display of your website. +# +# Refer to the theme docs for more details about each of these parameters. +# https://blowfish.page/docs/configuration/#theme-parameters + +colorScheme = "blowfish" +defaultAppearance = "dark" # valid options: light or dark +autoSwitchAppearance = true + +enableSearch = true +enableCodeCopy = false + +replyByEmail = false + +# mainSections = ["section1", "section2"] +# robots = "" + +disableImageOptimization = false +disableTextInHeader = false +# backgroundImageWidth = 1200 + +# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images +# defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles + +# highlightCurrentMenuArea = true +# smartTOC = true +# smartTOCHideUnfocusedChildren = true + +giteaDefaultServer = "https://git.fsfe.org" +forgejoDefaultServer = "https://git.ghoscht.com" + +[header] + layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur + +[footer] + showMenu = true + showCopyright = true + showThemeAttribution = true + showAppearanceSwitcher = true + showScrollToTop = true + +[homepage] + layout = "profile" # valid options: page, profile, hero, card, background, custom + #homepageImage = "IMAGE.jpg" # used in: hero, and card + showRecent = false + showRecentItems = 5 + showMoreLink = false + showMoreLinkDest = "/posts/" + cardView = false + cardViewScreenWidth = false + layoutBackgroundBlur = false # only used when layout equals background + +[article] + showDate = true + showViews = false + showLikes = false + showDateOnlyInArticle = false + showDateUpdated = false + showAuthor = true + # showAuthorBottom = false + showHero = false + # heroStyle = "basic" # valid options: basic, big, background, thumbAndBackground + layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + layoutBackgroundHeaderSpace = true # only used when heroStyle equals background + showBreadcrumbs = false + showDraftLabel = true + showEdit = false + # editURL = "https://github.com/username/repo/" + editAppendPath = true + seriesOpened = false + showHeadingAnchors = true + showPagination = true + invertPagination = false + showReadingTime = true + showTableOfContents = false + # showRelatedContent = false + # relatedContentLimit = 3 + showTaxonomies = false + showAuthorsBadges = false + showWordCount = true + # sharingLinks = [ "linkedin", "bluesky", "mastodon", "reddit"] + showZenMode = false + +[list] + showHero = false + # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + layoutBackgroundHeaderSpace = true # only used when heroStyle equals background + showBreadcrumbs = false + showSummary = false + showViews = false + showLikes = false + showTableOfContents = false + showCards = false + orderByWeight = false + groupByYear = true + cardView = false + cardViewScreenWidth = false + constrainItemsWidth = false + +[sitemap] + excludedKinds = ["taxonomy", "term"] + +[taxonomy] + showTermCount = true + showHero = false + # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = false + showViews = false + showLikes = false + showTableOfContents = false + cardView = false + +[term] + showHero = false + # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = false + showViews = false + showLikes = false + showTableOfContents = true + groupByYear = false + cardView = false + cardViewScreenWidth = false + +[firebase] + # apiKey = "XXXXXX" + # authDomain = "XXXXXX" + # projectId = "XXXXXX" + # storageBucket = "XXXXXX" + # messagingSenderId = "XXXXXX" + # appId = "XXXXXX" + # measurementId = "XXXXXX" + +[fathomAnalytics] + # site = "ABC12345" + # domain = "llama.yoursite.com" + +[umamiAnalytics] + # websiteid = "ABC12345" + # domain = "llama.yoursite.com" + # dataDomains = "yoursite.com,yoursite2.com" + # scriptName = "" + # enableTrackEvent = true + +[selineAnalytics] + # token = "XXXXXX" + # enableTrackEvent = true + +[buymeacoffee] + # identifier = "" + # globalWidget = true + # globalWidgetMessage = "Hello" + # globalWidgetColor = "#FFDD00" + # globalWidgetPosition = "Right" + +[verification] + # google = "" + # bing = "" + # pinterest = "" + # yandex = "" + # fediverse = "" + +[rssnext] + # feedId = "" + # userId = "" diff --git a/hugo/content/posts/my-first-post.md b/hugo/content/posts/my-first-post.md new file mode 100644 index 0000000..bc3b788 --- /dev/null +++ b/hugo/content/posts/my-first-post.md @@ -0,0 +1,13 @@ ++++ +date = '2024-12-29T13:42:30+01:00' +draft = true +title = 'My First Post' ++++ + +## Introduction + +This is **bold** text, and this is *emphasized* text. + +Visit the [Hugo](https://gohugo.io) website! + +{{< forgejo repo="ghoscht/picoKontroller" >}} diff --git a/hugo/go.mod b/hugo/go.mod new file mode 100644 index 0000000..5e298b0 --- /dev/null +++ b/hugo/go.mod @@ -0,0 +1,5 @@ +module git.ghoscht.com/ghoscht/homepage + +go 1.23.3 + +require github.com/nunocoracao/blowfish/v2 v2.80.0 // indirect diff --git a/hugo/go.sum b/hugo/go.sum new file mode 100644 index 0000000..efb5afd --- /dev/null +++ b/hugo/go.sum @@ -0,0 +1,2 @@ +github.com/nunocoracao/blowfish/v2 v2.80.0 h1:b4Zyr8cgZiiHpISxGYSVn8CwEzRpfYhvxjLwNqOTzEM= +github.com/nunocoracao/blowfish/v2 v2.80.0/go.mod h1:4SkMc+Ht8gpQCwArqiHMBDP3soxi2OWuAhVney+cuyk= diff --git a/hugo/hugo.toml b/hugo/hugo.toml deleted file mode 100644 index 7e568b8..0000000 --- a/hugo/hugo.toml +++ /dev/null @@ -1,3 +0,0 @@ -baseURL = 'https://example.org/' -languageCode = 'en-us' -title = 'My New Hugo Site'