From a9007d70e5045cd87de32aaabcf3b9ee8d15d40d Mon Sep 17 00:00:00 2001 From: Rin Date: Mon, 14 Aug 2023 10:30:46 +1000 Subject: [PATCH] initial blowfish config --- .gitmodules | 4 ++ config.toml | 3 -- config/_default/config.yaml | 21 +++++++++++ config/_default/languages.en.yaml | 62 +++++++++++++++++++++++++++++++ config/_default/markup.yaml | 11 ++++++ config/_default/menus.en.yaml | 35 +++++++++++++++++ config/_default/module.yaml | 3 ++ config/_default/params.yaml | 56 ++++++++++++++++++++++++++++ layouts/_default/baseof.html | 25 ------------- layouts/index.html | 3 -- layouts/partials/sidebar.html | 0 public/categories/index.xml | 10 ----- public/index.xml | 10 ----- public/sitemap.xml | 11 ------ public/tags/index.xml | 10 ----- themes/blowfish | 1 + 16 files changed, 193 insertions(+), 72 deletions(-) create mode 100644 .gitmodules delete mode 100644 config.toml create mode 100644 config/_default/config.yaml create mode 100644 config/_default/languages.en.yaml create mode 100644 config/_default/markup.yaml create mode 100644 config/_default/menus.en.yaml create mode 100644 config/_default/module.yaml create mode 100644 config/_default/params.yaml delete mode 100644 layouts/_default/baseof.html delete mode 100644 layouts/index.html delete mode 100644 layouts/partials/sidebar.html delete mode 100644 public/categories/index.xml delete mode 100644 public/index.xml delete mode 100644 public/sitemap.xml delete mode 100644 public/tags/index.xml create mode 160000 themes/blowfish diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..426d936 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "themes/blowfish"] + path = themes/blowfish + url = https://github.com/nunocoracao/blowfish.git + branch = main diff --git a/config.toml b/config.toml deleted file mode 100644 index 1d7c819..0000000 --- a/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -baseURL = 'http://example.org/' -languageCode = 'en-us' -title = 'My New Hugo Site' diff --git a/config/_default/config.yaml b/config/_default/config.yaml new file mode 100644 index 0000000..f177b01 --- /dev/null +++ b/config/_default/config.yaml @@ -0,0 +1,21 @@ +# -- Site Configuration -- +# Refer to the theme docs for more details about each of these parameters. +# https://nunocoracao.github.io/blowfish/docs/getting-started/ + +theme: blowfish +baseURL: "https://treehouse.systems/" +defaultContentLanguage: en +enableRobotsTXT: true +paginate: 10 +summaryLength: 100 +buildDrafts: false +buildFuture: false +sitemap: + changefreq: daily + filename: sitemap.xml + priority: 0.5 +outputs: + home: + - HTML + - RSS + - JSON diff --git a/config/_default/languages.en.yaml b/config/_default/languages.en.yaml new file mode 100644 index 0000000..73ab956 --- /dev/null +++ b/config/_default/languages.en.yaml @@ -0,0 +1,62 @@ +languages: + en: + languageCode: en + languageName: English + displayName: EN + isoCode: en + weight: 1 + rtl: false +params: + title: "Treehouse Systems" + logo: "img/logo.png" + copyright: "Copyright 2023 Treehouse Systems" + + dateFormat: "Mon Jan 2 2006" + + # author: + # name: "Rin" + # image: "img/logo.svg" + # headline: "As in 凛冽时雨" + # bio: "System that mostly works on TCP/IP networks and automation,
but loves FP and Category Theory" + # links: + # - email: 'mailto:rin@rin.systems' + # # - link: 'https://link-to-some-website.com/' + # # - amazon: 'https://www.amazon.com/hz/wishlist/ls/wishlist-id' + # # - apple: 'https://www.apple.com' + # # - blogger: 'https://username.blogspot.com/' + # # - codepen: 'https://codepen.io/username' + # # - dev: 'https://dev.to/username' + # # - discord: 'https://discord.gg/invitecode' + # # - dribbble: 'https://dribbble.com/username' + # # - facebook: 'https://facebook.com/username' + # # - flickr: 'https://www.flickr.com/photos/username/' + # # - foursquare: 'https://foursquare.com/username' + # # - github: 'https://github.com/username' + # # - gitlab: 'https://gitlab.com/username' + # # - google: 'https://www.google.com/' + # # - hashnode: 'https://username.hashnode.dev' + # # - instagram: 'https://instagram.com/username' + # # - keybase: 'https://keybase.io/username' + # # - kickstarter: 'https://www.kickstarter.com/profile/username' + # # - lastfm: 'https://lastfm.com/user/username' + # # - linkedin: 'https://linkedin.com/in/username' + # - mastodon: 'https://social.treehouse.systems/@tammy' + # # - medium: 'https://medium.com/username' + # # - microsoft: 'https://www.microsoft.com/' + # # - orcid: 'https://orcid.org/userid' + # # - patreon: 'https://www.patreon.com/username' + # # - pinterest: 'https://pinterest.com/username' + # # - reddit: 'https://reddit.com/user/username' + # # - researchgate: 'https://www.researchgate.net/profile/username' + # # - slack: 'https://workspace.url/team/userid' + # # - snapchat: 'https://snapchat.com/add/username' + # # - soundcloud: 'https://soundcloud.com/username' + # # - stack-overflow: 'https://stackoverflow.com/users/userid/username' + # # - steam: 'https://steamcommunity.com/profiles/userid' + # # - telegram: 'https://t.me/username' + # # - tiktok: 'https://tiktok.com/@username' + # # - tumblr: 'https://username.tumblr.com' + # # - twitch: 'https://twitch.tv/username' + # # - twitter: 'https://twitter.com/username' + # # - whatsapp: 'https://wa.me/phone-number' + # # - youtube: 'https://youtube.com/username' diff --git a/config/_default/markup.yaml b/config/_default/markup.yaml new file mode 100644 index 0000000..b3c374e --- /dev/null +++ b/config/_default/markup.yaml @@ -0,0 +1,11 @@ +# -- Markup -- +# These settings are required for the theme to function. + +goldmark: + renderer: + unsafe: true +highlight: + noClasses: false +tableOfContents: + startLevel: 2 + endLevel: 5 diff --git a/config/_default/menus.en.yaml b/config/_default/menus.en.yaml new file mode 100644 index 0000000..0113abf --- /dev/null +++ b/config/_default/menus.en.yaml @@ -0,0 +1,35 @@ +# -- 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: Discord + url: "https://discord.treehouse.systems" + weight: 10 + - name: Mastodon + url: "https://mastodon.treehouse.systems" + weight: 20 + - name: Gitea + url: "https://gitea.treehouse.systems" + 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: Source Code +# url: "https://gitea.treehouse.systems/Rin/snek-tech-blog" +# weight: 10 +# - name: Pay Transparency +# pageRef: pay-transparency +# weight: 20 diff --git a/config/_default/module.yaml b/config/_default/module.yaml new file mode 100644 index 0000000..91bd1c3 --- /dev/null +++ b/config/_default/module.yaml @@ -0,0 +1,3 @@ +hugoVersion: + extended: false + min: 0.87.0 diff --git a/config/_default/params.yaml b/config/_default/params.yaml new file mode 100644 index 0000000..2a3999d --- /dev/null +++ b/config/_default/params.yaml @@ -0,0 +1,56 @@ +# -- 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://nunocoracao.github.io/blowfish/docs/configuration/#theme-parameters + +colorScheme: treehouse +defaultAppearance: dark # valid options: light or dark + +robots: '' + +autoSwitchAppearance: true +enableSearch: false +enableCodeCopy: true + + +footer: + showCopyright: true + showThemeAttribution: true + showAppearanceSwitcher: true + showScrollToTop: true +homepage: + layout: page # valid options: page, profile, hero, card, custom + homepageImage: "img/wordmark.png" # used in: hero, and card + showRecent: false + showRecentItems: 5 + showMoreLink: false + showMoreLinkDest: /posts +article: + showDate: true + showDateUpdated: true + showAuthor: true + showBreadcrumbs: true + showDraftLabel: true + showEdit: false + editAppendPath: true + showHeadingAnchors: true + showPagination: true + invertPagination: false + seriesOpened: false + showReadingTime: true + showTableOfContents: true + showTaxonomies: true + showWordCount: true + showSummary: true + sharingLinks: false +list: + showBreadcrumbs: false + showSummary: false + showTableOfContents: false + showCards: false + groupByYear: true +sitemap: + excludedKinds: [] + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 78120c9..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - {{ block "title" . }} - {{ .Site.Title }} - {{ end }} - - - - - - {{ block "opengraph" . }} - {{ end }} - - - -
- {{ block "main" . }} - {{ end }} -
- - diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 9b75fdb..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ define "main" }} -hi -{{ end }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html deleted file mode 100644 index e69de29..0000000 diff --git a/public/categories/index.xml b/public/categories/index.xml deleted file mode 100644 index b92677a..0000000 --- a/public/categories/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Categories on My New Hugo Site - http://example.org/categories/ - Recent content in Categories on My New Hugo Site - Hugo -- gohugo.io - en-us - - diff --git a/public/index.xml b/public/index.xml deleted file mode 100644 index da90485..0000000 --- a/public/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - My New Hugo Site - http://example.org/ - Recent content on My New Hugo Site - Hugo -- gohugo.io - en-us - - diff --git a/public/sitemap.xml b/public/sitemap.xml deleted file mode 100644 index 45379db..0000000 --- a/public/sitemap.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - http://example.org/categories/ - - http://example.org/ - - http://example.org/tags/ - - diff --git a/public/tags/index.xml b/public/tags/index.xml deleted file mode 100644 index 201eda6..0000000 --- a/public/tags/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Tags on My New Hugo Site - http://example.org/tags/ - Recent content in Tags on My New Hugo Site - Hugo -- gohugo.io - en-us - - diff --git a/themes/blowfish b/themes/blowfish new file mode 160000 index 0000000..2c3cbeb --- /dev/null +++ b/themes/blowfish @@ -0,0 +1 @@ +Subproject commit 2c3cbeb0ae937f07e62e9b012c54db2221b7da4c