From 10b372e85f5ef84ed75ba559a783bdcc11be3c36 Mon Sep 17 00:00:00 2001 From: James McDonald Date: Sat, 25 Feb 2023 17:24:50 +0100 Subject: [PATCH] Move from toml to yaml and switch theme --- config.toml | 69 ---------------------------------------- config.yaml | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 69 deletions(-) delete mode 100644 config.toml create mode 100644 config.yaml diff --git a/config.toml b/config.toml deleted file mode 100644 index 23dc280..0000000 --- a/config.toml +++ /dev/null @@ -1,69 +0,0 @@ -baseURL = "https://jamesmcdonald.com/" -defaultContentLanguage = "en" -languageCode = "en-gb" -title = "James McDonald" -theme = "ananke" -disqusShortname = "jamesmcdonald" -disableHugoGeneratorInject = true -enableRobotsTXT = true - -# Required to get well formatted code blocks -pygmentsUseClasses = true -pygmentsCodeFences = true -disablePathToLower = true -enableGitInfo = true - -[markup] - [markup.goldmark.renderer] - unsafe = true - [markup.tableOfContents] - startLevel = 1 - endLevel = 9 - -[taxonomies] - author = "authors" - tag = "tags" - -#[[menu.sidebar]] -# name = "GitLab" -# url = "https://gitlab.com/jamesmcdonald/" - -#[[menu.sidebar]] -# name = "GitHub" -# url = "https://github.com/jamesmcdonald/" - -#[[menu.sidebar]] -# name = "Twitter" -# url = "https://twitter.com/0xfce2/" - -#[[menu.sidebar]] -# name = "LinkedIn" -# url = "https://www.linkedin.com/in/james-mcdonald-4300202/" - -[params] - author = "James McDonald" - description = "Stuff I wrote about things" - sharingicons = false - version = "2.0.X" - - [params.sidebar] - about = "I like to do things to do with computers and occasionally write about those things. And other things, besides.

[Read more →](/about)" - -# [params.social] -# twitter = "0xfce2" - - -[menu] - [[menu.main]] - name = "About" - url = "/about/" - weight = 2 - [[menu.main]] - name = "Presentations" - url = "/presentations/" - weight = 2 - [[menu.main]] - name = "Posts" - url = "/posts/" - weight = 3 - diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..c1cd187 --- /dev/null +++ b/config.yaml @@ -0,0 +1,90 @@ +title: James McDonald +baseURL: "https://jamesmcdonald.com/" +paginate: 5 +theme: +- papermod + +disqusShortname: jamesmcdonald +enableRobotsTXT: true +googleAnalytics: '' + +sectionPagesMenu: main + + +params: + mainSections: + - posts + dateFormat: "2006-01-02" + showShareButtons: true + useHugoToc: true + + profileMode: + enabled: true + title: Hello there. + subtitle: I'm James. This is where you can find my stuff. + buttons: + - name: Posts + url: posts + - name: Categories + url: categories + + cover: + hidden: true # hide everywhere but not in structured data + hiddenInList: true # hide on list pages and home + hiddenInSingle: true # hide on single page + + homeInfoParams: + title: "Hello there" + content: | + I'm James, a person of the sysadmin persuasion and otherwise a nerd. I'm currently called an SRE after the fashion of the day. I occasionally stand accused of architecture or even devops. + + This is a place where I occasionally write about things if I have the time or inclination. Mostly posts about whatever tech is interesting at the time. + + socialIcons: + - name: twitter + url: https://twitter.com/xanthspod_ + - name: github + url: https://github.com/jamesmcdonald + - name: linkedin + url: https://www.linkedin.com/in/james-mcdonald-4300202 + + fuseOpts: + isCaseSensitive: false + shouldSort: true + location: 0 + distance: 1000 + threshold: 0.4 + minMatchCharLength: 0 + keys: ["title", "permalink", "summary", "content"] + +menu: + main: + - identifier: posts + name: posts + url: /posts/ + weight: 5 + - identifier: categories + name: categories + url: /categories/ + weight: 10 + # - identifier: tags + # name: tags + # url: /tags/ + # weight: 20 + # - identifier: example + # name: example.org + # url: https://example.org + # weight: 30 + +pygmentsUseClasses: true +markup: + highlight: + noClasses: false + # anchorLineNos: true + # codeFences: true + # guessSyntax: true + lineNos: true + style: monokai + goldmark: + renderer: + unsafe: true