From c34c96a13a31699fe0041387fa0b6fff2d015356 Mon Sep 17 00:00:00 2001 From: Marco Blessing Date: Thu, 24 Feb 2022 08:34:17 +0100 Subject: [PATCH] Update theme to Congo 2 (#12) * update congo submodule * ignore temp gen files * update congo 2 config * move assets to new default location * add new default values to archetype * use integrate lead in homepage * upate note box to congo 2 stype * icon breaks toc * disable dark switcher --- .gitignore | 1 + archetypes/default.md | 2 + {static => assets}/img/me.jpg | Bin config/_default/config.toml | 53 ++-------------- config/_default/languages.en.toml | 58 ++++++++++++++++++ config/_default/markup.toml | 4 ++ config/_default/{menus.toml => menus.en.toml} | 1 + config/_default/params.toml | 25 +++++--- content/_index.md | 4 -- content/aboutme/index.md | 1 + layouts/shortcodes/note.html | 4 +- themes/congo | 2 +- 12 files changed, 90 insertions(+), 65 deletions(-) rename {static => assets}/img/me.jpg (100%) create mode 100644 config/_default/languages.en.toml rename config/_default/{menus.toml => menus.en.toml} (99%) diff --git a/.gitignore b/.gitignore index f50099b..1f6ef64 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ yarn-error.log* # hugo *.lock public/ +_gen/ diff --git a/archetypes/default.md b/archetypes/default.md index 1ff6f3a..96ce2e4 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -11,6 +11,8 @@ draft: true # showAuthor: false # showWordCount: false # showReadingTime: false +# showTableOfContents: false +# showTaxonomies: true # showEdit: false # sharingLinks: [null] --- diff --git a/static/img/me.jpg b/assets/img/me.jpg similarity index 100% rename from static/img/me.jpg rename to assets/img/me.jpg diff --git a/config/_default/config.toml b/config/_default/config.toml index d09860b..bd6fa67 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -3,59 +3,14 @@ # https://jpanther.github.io/congo/docs/getting-started/ baseURL = "https://ocram85.com/" -languageCode = "en" defaultContentLanguage = "en" -title = "OCram85.com" -# copyright = "Copy, _right?_ :thinking_face:" +theme= "congo" -enableEmoji = true enableRobotsTXT = true - +paginate = 10 summaryLength = 0 -theme = "congo" +[outputs] + home = ["HTML", "RSS", "JSON"] -[author] - name = "OCram85" - image = "img/me.jpg" - bio = "A developer / DevOps guy fighting against corporate proxies." - links = [ - { email = "mailto:marco.blessing@googlemail.com" }, - # { link = "https://stackoverflow.com/users/5222635/ocram85/" }, - # { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" }, - # { apple = "https://www.apple.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/OCram85" }, - # { gitlab = "https://gitlab.com/username" }, - # { google = "https://www.google.com/" }, - # { 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/marco-blessing-884642109" }, - # { mastodon = "https://mastodon.instance/@username" }, - # { medium = "https://medium.com/username" }, - # { microsoft = "https://www.microsoft.com/" }, - # { patreon = "https://www.patreon.com/username" }, - # { pinterest = "https://pinterest.com/username" }, - # { reddit = "https://reddit.com/user/username" }, - # { slack = "https://workspace.url/team/userid" }, - # { snapchat = "https://snapchat.com/add/username" }, - # { soundcloud = "https://soundcloud.com/username" }, - { stackoverflow = "https://stackoverflow.com/users/5222635/ocram85" }, - # { 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/tar_honar" }, - # { whatsapp = "https://wa.me/phone-number" }, - # { youtube = "https://youtube.com/username" }, - ] diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml new file mode 100644 index 0000000..e8fb18c --- /dev/null +++ b/config/_default/languages.en.toml @@ -0,0 +1,58 @@ +languageCode = "en" +languageName = "English" +displayName = "EN" +isoCode = "en" +weight = 1 +rtl = false + +title = "OCram85.com" +logo = "img/logo_square.png" +description = "A personal blog about PowerShell, Automation and more." +# copyright = "Copy, _right?_ :thinking_face:" + +dateFormat = "2 January 2006" + +[author] + name = "OCram85" + image = "img/me.jpg" + headline = "A developer / DevOps guy fighting against corporate proxies." + bio = "A developer / DevOps guy fighting against corporate proxies." + links = [ + { email = "mailto:marco.blessing@googlemail.com" }, + # { 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/OCram85" }, + # { gitlab = "https://gitlab.com/username" }, + # { google = "https://www.google.com/" }, + # { 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/marco-blessing-884642109" }, + # { mastodon = "https://mastodon.instance/@username" }, + # { medium = "https://medium.com/username" }, + # { microsoft = "https://www.microsoft.com/" }, + # { patreon = "https://www.patreon.com/username" }, + # { pinterest = "https://pinterest.com/username" }, + # { reddit = "https://reddit.com/user/username" }, + # { slack = "https://workspace.url/team/userid" }, + # { snapchat = "https://snapchat.com/add/username" }, + # { soundcloud = "https://soundcloud.com/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/tar_honar" }, + # { whatsapp = "https://wa.me/phone-number" }, + # { youtube = "https://youtube.com/username" }, + ] diff --git a/config/_default/markup.toml b/config/_default/markup.toml index 2ca49b3..c5449fc 100644 --- a/config/_default/markup.toml +++ b/config/_default/markup.toml @@ -7,3 +7,7 @@ [highlight] noClasses = false + +[tableOfContents] + startLevel = 2 + endLevel = 4 diff --git a/config/_default/menus.toml b/config/_default/menus.en.toml similarity index 99% rename from config/_default/menus.toml rename to config/_default/menus.en.toml index 3299500..6bcb3a2 100644 --- a/config/_default/menus.toml +++ b/config/_default/menus.en.toml @@ -49,3 +49,4 @@ name = "Stats" url = "https://umami.ocram85.com/share/KAk7LmbU/Blog" weight = 30 + diff --git a/config/_default/params.toml b/config/_default/params.toml index 0a7c78c..2c36f8b 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -6,12 +6,16 @@ # https://jpanther.github.io/congo/docs/configuration/#theme-parameters colorScheme = "avocado" -darkMode = "true" -# darkToggle = false -logo = "img/logo_square.png" -description = "A personal blog about PowerShell, Automation and more." +defaultAppearance = "dark" # valid options: light or dark +autoSwitchAppearance = false +showAppearanceSwitcher = false + +enableSearch = true +enableCodeCopy = true + # mainSections = ["section1", "section2"] # robots = "" +showScrollToTop = true [homepage] layout = "profile" # valid options: page, profile, custom @@ -19,8 +23,7 @@ description = "A personal blog about PowerShell, Automation and more." [article] showDate = true - #showDateUpdated = true - dateFormat = "2 January 2006" + showDateUpdated = false showAuthor = true showBreadcrumbs = false showDraftLabel = true @@ -29,21 +32,25 @@ description = "A personal blog about PowerShell, Automation and more." editAppendPath = true showHeadingAnchors = true showPagination = true + invertPagination = false showReadingTime = true + showTableOfContents = true + showTaxonomies = false showWordCount = true sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"] [list] showBreadcrumbs = false showSummary = false + showTableOfContents = false groupByYear = true -[taxonomy] - showTermCount = true - [sitemap] excludedKinds = ["taxonomy", "term"] +[taxonomy] + showTermCount = true + [fathomAnalytics] # site = "ABC12345" # domain = "llama.yoursite.com" diff --git a/content/_index.md b/content/_index.md index 6ded515..cb11751 100644 --- a/content/_index.md +++ b/content/_index.md @@ -3,7 +3,3 @@ title: 'Welcome' date: 2021-12-22T14:29:49+01:00 draft: false --- - -{{< lead >}} -A developer / DevOps guy fighting against corporate proxies. -{{< /lead >}} diff --git a/content/aboutme/index.md b/content/aboutme/index.md index 7b177c6..83e0dc6 100644 --- a/content/aboutme/index.md +++ b/content/aboutme/index.md @@ -14,6 +14,7 @@ showReadingTime: false showEdit: false #sharingLinks: [null] showPagination: false +showTableOfContents: false --- {{< figure src="me.jpg" width="1200" height="800" >}} diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index 98b261a..dccd589 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,5 +1,5 @@ -
- +
+ {{ partial "icon.html" "comment" }} diff --git a/themes/congo b/themes/congo index c49a1b1..480492a 160000 --- a/themes/congo +++ b/themes/congo @@ -1 +1 @@ -Subproject commit c49a1b18d619fc0a78f1c7d5f59761128dac6a1b +Subproject commit 480492a976a577d5ee563a69b57c7b45b519a23c