From 03bcb5c0391e9df3629a6cdb156c466ea1a7e761 Mon Sep 17 00:00:00 2001 From: Flipez Date: Wed, 18 Sep 2024 17:58:54 +0200 Subject: [PATCH] use papermod Signed-off-by: Flipez --- assets/css/custom.css | 3 - assets/css/extended/custom.css | 34 ++++++ config.yml | 165 +++++++++++++++++++++++++++++ config/_default/config.toml | 10 -- config/_default/languages.en.toml | 13 --- config/_default/markup.toml | 13 --- config/_default/menus.en.toml | 54 ---------- config/_default/module.toml | 2 - config/_default/params.toml | 114 -------------------- content/{_index.md => about.md} | 5 + content/enten.md | 1 + content/munich.md | 1 + content/posts/2022/blumentopf-1.md | 4 - content/posts/2022/blumentopf-2.md | 2 - content/search.md | 8 ++ content/spezi.md | 1 + go.mod | 5 +- go.sum | 4 + 18 files changed, 223 insertions(+), 216 deletions(-) delete mode 100644 assets/css/custom.css create mode 100644 assets/css/extended/custom.css create mode 100644 config.yml delete mode 100644 config/_default/config.toml delete mode 100644 config/_default/languages.en.toml delete mode 100644 config/_default/markup.toml delete mode 100644 config/_default/menus.en.toml delete mode 100644 config/_default/module.toml delete mode 100644 config/_default/params.toml rename content/{_index.md => about.md} (95%) create mode 100644 content/search.md diff --git a/assets/css/custom.css b/assets/css/custom.css deleted file mode 100644 index 3300fa1..0000000 --- a/assets/css/custom.css +++ /dev/null @@ -1,3 +0,0 @@ -.max-w-prose { - max-width: 100ch; -} \ No newline at end of file diff --git a/assets/css/extended/custom.css b/assets/css/extended/custom.css new file mode 100644 index 0000000..fd01b9f --- /dev/null +++ b/assets/css/extended/custom.css @@ -0,0 +1,34 @@ +:root { + --theme: rgb(255, 255, 255); + --entry: rgb(255, 255, 255); + --primary: rgb(55, 65, 81); + --secondary: rgba(55, 65, 81); + --code-bg: rgb(255, 255, 255); + --border: rgb(255, 255, 255); + --main-width: 56rem; + --nav-width: 56rem; +} + +.dark { + --primary: rgb(248, 250, 252); + --entry: rgb(29, 30, 32); + --border: rgb(29, 30, 32); +} + + +.entry-header h2, .post-title { + font-size: 3rem; +} + +.entry-content { + margin: 18px 0; + font-size: 18px; +} + +.header { + padding: 2.5rem 0px; +} + +.post-entry { + padding: var(--gap) 0px; +} \ No newline at end of file diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..ab61bdc --- /dev/null +++ b/config.yml @@ -0,0 +1,165 @@ +baseURL: "https://brauser.io" +title: /home/robert +paginate: 5 + +enableRobotsTXT: true +buildDrafts: false +buildFuture: false +buildExpired: false + +minify: + disableXML: true + minifyOutput: true + +params: + custom_css: + - "css/custom.css" + env: production # to enable google analytics, opengraph, twitter-cards and schema. + title: /home/robert + description: "" + keywords: [Blog] + author: Robert + # author: ["Me", "You"] # multiple authors + #images: [""] + DateFormat: "January 2, 2006" + defaultTheme: auto # dark, light + disableThemeToggle: false + + ShowReadingTime: true + ShowShareButtons: false + ShowPostNavLinks: false + ShowBreadCrumbs: false + ShowCodeCopyButtons: false + ShowWordCount: true + ShowRssButtonInSectionTermList: true + UseHugoToc: true + disableSpecial1stPost: true + disableScrollToTop: false + comments: false + hidemeta: false + hideSummary: false + hideFooter: true + showtoc: false + tocopen: false + + assets: + # disableHLJS: true # to disable highlight.js + # disableFingerprinting: true + favicon: "" + favicon16x16: "" + favicon32x32: "" + apple_touch_icon: "" + safari_pinned_tab: "" + + label: + text: "/home/robert" + icon: images/favicon.ico + iconHeight: 20 + + # profile-mode + profileMode: + enabled: false # needs to be explicitly set + title: ExampleSite + subtitle: "This is subtitle" + imageUrl: "" + imageWidth: 120 + imageHeight: 120 + imageTitle: my image + buttons: + - name: Posts + url: posts + - name: Tags + url: tags + + # home-info mode + #homeInfoParams: + # Title: + # Content: + + socialIcons: + - name: github + url: "https://github.com/Flipez" + - name: linkedin + url: https://www.linkedin.com/in/mueller-r/ + - name: letterboxd + url: https://letterboxd.com/Flipez/ + - name: instagram + url: https://www.instagram.com/rueller.mobert + + analytics: + google: + SiteVerificationTag: "XYZabc" + bing: + SiteVerificationTag: "XYZabc" + yandex: + SiteVerificationTag: "XYZabc" + + cover: + hidden: true # hide everywhere but not in structured data + hiddenInList: true # hide on list pages and home + hiddenInSingle: true # hide on single page + + #editPost: + # URL: "https://github.com/Flipez/blog.auch.cool/content" + # Text: "Suggest Changes" # edit text + # appendFilePath: true # to append file path to Edit link + + # for search + # https://fusejs.io/api/options.html + fuseOpts: + isCaseSensitive: false + shouldSort: true + location: 0 + distance: 1000 + threshold: 0.4 + minMatchCharLength: 0 + limit: 10 # refer: https://www.fusejs.io/api/methods.html#search + keys: ["title", "permalink", "summary", "content"] +menu: + main: + - name: About + url: /about/ + weight: 1 + - pre: 📚 + name: Books + url: /books + weight: 3 + - pre: 🥨 + name: Munich + url: /munich/ + weight: 4 + - pre: 🥤 + name: Spezi & Cola + url: /spezi + weight: 5 + - pre: 📷 + name: Photos + url: https://photos.auch.cool + weight: 6 + - name: 🔎 + url: /search/ + weight: 10 + +# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma +pygmentsUseClasses: true +markup: + highlight: + noClasses: false + # anchorLineNos: true + # codeFences: true + # guessSyntax: true + # lineNos: true + # style: monokai + goldmark: + renderer: + unsafe: true + +outputs: + home: + - HTML + - RSS + - JSON + +module: + imports: + - path: github.com/adityatelange/hugo-PaperMod \ No newline at end of file diff --git a/config/_default/config.toml b/config/_default/config.toml deleted file mode 100644 index 48e943c..0000000 --- a/config/_default/config.toml +++ /dev/null @@ -1,10 +0,0 @@ -baseURL = "https://brauser.io" -defaultContentLanguage = "en" - - -enableRobotsTXT = true -paginate = 10 -summaryLength = 0 - -[outputs] - home = ["HTML", "RSS", "JSON"] diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml deleted file mode 100644 index 94175db..0000000 --- a/config/_default/languages.en.toml +++ /dev/null @@ -1,13 +0,0 @@ -languageCode = "en" -languageName = "English" -weight = 1 - -title = "/home/robert" -#logo = "img/robert.jpg" -#copyright = "Copy, _right?_ :thinking_face:" - -[params] -isoCode = "en" -displayName = "EN" -rtl = false -dateFormat = "2 January 2006" diff --git a/config/_default/markup.toml b/config/_default/markup.toml deleted file mode 100644 index c5449fc..0000000 --- a/config/_default/markup.toml +++ /dev/null @@ -1,13 +0,0 @@ -# -- 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/config/_default/menus.en.toml b/config/_default/menus.en.toml deleted file mode 100644 index a4cc615..0000000 --- a/config/_default/menus.en.toml +++ /dev/null @@ -1,54 +0,0 @@ -# -- 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 = "cd ~" - url = "/" - weight = 1 - -[[main]] - name = "📚 Books" - url = "/books" - weight = 3 - -[[main]] - name = "🥨 Munich" - url = "/munich/" - weight = 4 - -[[main]] - name = "🥤 Spezi & Cola" - url = "/spezi" - weight = 5 - -[[main]] - name = "📷 Photos" - url = "https://photos.auch.cool" - weight = 6 - -# -- 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 = "RSS Feed" - url = "/index.xml" - weight = 6 - -[[footer]] - name = "All Tags" - pageRef = "tags" - weight = 10 - -[[footer]] - name = "All Posts" - pageRef = "posts" - weight = 10 diff --git a/config/_default/module.toml b/config/_default/module.toml deleted file mode 100644 index a1686e9..0000000 --- a/config/_default/module.toml +++ /dev/null @@ -1,2 +0,0 @@ -[[imports]] -path = "github.com/jpanther/congo/v2" \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml deleted file mode 100644 index 6701eb5..0000000 --- a/config/_default/params.toml +++ /dev/null @@ -1,114 +0,0 @@ -# -- 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://jpanther.github.io/congo/docs/configuration/#theme-parameters - -enableSearch = true -colorScheme = "congo" -defaultAppearance = "light" # valid options: light or dark -autoSwitchAppearance = true - -[footer] -showAppearanceSwitcher = true -showScrollToTop = true - -enableSearch = true -enableCodeCopy = true - -# mainSections = ["section1", "section2"] -# robots = "" - -[homepage] - layout = "page" # valid options: page, profile, custom - showRecent = true - -[article] - showDate = true - showDateUpdated = false - showAuthor = true - showBreadcrumbs = true - showDraftLabel = true - showEdit = false - # editURL = "https://github.com/username/repo/" - editAppendPath = true - showHeadingAnchors = true - showPagination = true - invertPagination = true - showReadingTime = true - showTableOfContents = true - showTaxonomies = true - showWordCount = false - #sharingLinks = ["twitter", "reddit", "email"] - -[list] - showBreadcrumbs = true - showSummary = false - showTableOfContents = false - groupByYear = true - -[sitemap] - excludedKinds = ["taxonomy", "term"] - -[taxonomy] - showTermCount = true - -[fathomAnalytics] - # site = "ABC12345" - # domain = "llama.yoursite.com" - -[verification] - # google = "" - # bing = "" - # pinterest = "" - # yandex = "" - - -[author] - name = "Robert" - image = "img/robert.jpg" - # headline = "I'm only human" - links = [ - { email = "mailto:code@brauser.io" }, - # { 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/flipez" }, - { gitlab = "https://gitlab.com/Flipez" }, - # { 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://mastodon.instance/@username" }, - # { 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/Was1NicerDude" }, - # { whatsapp = "https://wa.me/phone-number" }, - # { youtube = "https://youtube.com/username" }, - ] diff --git a/content/_index.md b/content/about.md similarity index 95% rename from content/_index.md rename to content/about.md index c22ba6c..e9a7915 100644 --- a/content/_index.md +++ b/content/about.md @@ -1,3 +1,8 @@ +--- +title: "Robert" +date: 2021-10-01T07:24:23+01:00 +hidemeta: true +--- I am tinkering on stuff that runs the internet at [Mozilla](https://mozilla.org). Previously I broke things in parallel on a lot of servers in a diff --git a/content/enten.md b/content/enten.md index 85bf80e..0489695 100644 --- a/content/enten.md +++ b/content/enten.md @@ -1,6 +1,7 @@ --- title: "Enten 🦆" date: 2024-05-01T07:24:23+01:00 +hidemeta: true tags: [] ---
\ No newline at end of file diff --git a/content/munich.md b/content/munich.md index ff80578..891d4c1 100644 --- a/content/munich.md +++ b/content/munich.md @@ -1,5 +1,6 @@ --- title: Munich Bars & Restaurants date: 2021-10-01T07:24:23+01:00 +hidemeta: true ---
diff --git a/content/posts/2022/blumentopf-1.md b/content/posts/2022/blumentopf-1.md index 9006611..c9ba1a3 100644 --- a/content/posts/2022/blumentopf-1.md +++ b/content/posts/2022/blumentopf-1.md @@ -4,9 +4,7 @@ date: 2022-05-01T08:00:23+01:00 tags: ["plants", "automation", "water"] --- -{{< alert >}} This post misses a lot of technical details as I reconstruct the changes and implementations out of my memory and my image archive. The latest Blumentopf iteration will contain all technical details you need. -{{< /alert >}} Four years ago I started working on a never ending side project with which I wanted to automate the watering of some of my plants. @@ -28,7 +26,6 @@ Then, we 3D-printed an adapter for the tubes: In detail this involved a Master Brick, a voltage converter to convert 12V to 5V for operating the modules (pumps need 12V), two Voltage/Current Bricklets to mease the current of the pumps - the idea here was to detect then the water reservoir was empty - a Dual Relais Bricklet and some [TSSS Brushless Water Pumps](https://www.amazon.de/dp/B07RLDPWGZ). -{{< mermaid >}} graph TB; A[Rasbperry Pi Zero + brickd]-->B[Master Brick]; B-->C[Dual Relais] @@ -39,7 +36,6 @@ E-->F[Pump 1] C-->G[Relay 2] G-->H[Current Bricklet] H-->I[Pump 2] -{{< /mermaid >}} Wired together, the system looked like this: diff --git a/content/posts/2022/blumentopf-2.md b/content/posts/2022/blumentopf-2.md index 61cc22d..f782723 100644 --- a/content/posts/2022/blumentopf-2.md +++ b/content/posts/2022/blumentopf-2.md @@ -4,9 +4,7 @@ date: 2022-05-01T09:00:23+01:00 tags: ["plants", "automation", "water"] --- -{{< alert >}} This post misses a lot of technical details as I reconstruct the changes and implementations out of my memory and my image archive. The latest Blumentopf iteration will contain all technical details you need. -{{< /alert >}} In 2020 I remembered a [Self-Watering Planter](https://www.thingiverse.com/thing:903411) I printed a few years ago and thought it would be nice to reuse this one to replace my chunky prototype with a cleaner and more aesthetic version. diff --git a/content/search.md b/content/search.md new file mode 100644 index 0000000..f605c8b --- /dev/null +++ b/content/search.md @@ -0,0 +1,8 @@ +--- +title: "Search" # in any language you want +layout: "search" # necessary for search +# url: "/archive" +# description: "Description for Search" +summary: "search" +placeholder: "placeholder text in search input box" +--- \ No newline at end of file diff --git a/content/spezi.md b/content/spezi.md index 936a739..62265f1 100644 --- a/content/spezi.md +++ b/content/spezi.md @@ -1,6 +1,7 @@ --- title: "🥤 spezi & cola" date: 2021-10-01T07:24:23+01:00 +hidemeta: true tags: [] --- A completely subjective test of different Spezi and Cola brands that I got my hands on. Let me now if one is missing! diff --git a/go.mod b/go.mod index 29b1ed0..61e31f8 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,7 @@ module github.com/flipez/brauser.io go 1.18 -require github.com/jpanther/congo/v2 v2.8.1 // indirect +require ( + github.com/adityatelange/hugo-PaperMod v0.0.0-20240915081152-a2eb47bb4b80 // indirect + github.com/jpanther/congo/v2 v2.9.0 // indirect +) diff --git a/go.sum b/go.sum index 790b4cb..d4815a3 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,10 @@ +github.com/adityatelange/hugo-PaperMod v0.0.0-20240915081152-a2eb47bb4b80 h1:IfLPokx2zpHroEDwNUXsXTxiG93dg/nc86djmWXS4SM= +github.com/adityatelange/hugo-PaperMod v0.0.0-20240915081152-a2eb47bb4b80/go.mod h1:HCHxNMKYdGafUYjVV3ICiAqznZK2yH0iI53jqcDFDdQ= github.com/jpanther/congo/v2 v2.5.2 h1:cSM6cnBfbsSN9uYIKXjnyudZDWK+OWWVPVlFmkQQSGE= github.com/jpanther/congo/v2 v2.5.2/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= github.com/jpanther/congo/v2 v2.7.5 h1:NNXOSLyYqEvXYINPRT/axmFBAW2lGOtrSoq8IZwX+Hc= github.com/jpanther/congo/v2 v2.7.5/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= github.com/jpanther/congo/v2 v2.8.1 h1:S8GuQXM/91DJdmmyjOTfHa4LUg08iNsKASSyX2RgeJU= github.com/jpanther/congo/v2 v2.8.1/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= +github.com/jpanther/congo/v2 v2.9.0 h1:mq1U8Zqw/F+9dk+AgH7W6Wl2M4LLiRP4v/BCTx4c01Y= +github.com/jpanther/congo/v2 v2.9.0/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M=