From 11715019225552b163b234387996696ebfcc9201 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 20 May 2023 16:29:34 +0200 Subject: [PATCH] Setup configuration --- assets/icons/git-alt.svg | 1 + config/_default/config.toml | 6 +++++- config/_default/languages.en.toml | 13 ++++++++----- config/_default/markup.toml | 2 +- config/_default/menus.en.toml | 12 ++++++++---- config/_default/params.toml | 6 +++--- config/_default/taxonomies.toml | 1 + 7 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 assets/icons/git-alt.svg create mode 100644 config/_default/taxonomies.toml diff --git a/assets/icons/git-alt.svg b/assets/icons/git-alt.svg new file mode 100644 index 0000000..577fb1d --- /dev/null +++ b/assets/icons/git-alt.svg @@ -0,0 +1 @@ + diff --git a/config/_default/config.toml b/config/_default/config.toml index 812d611..96a0458 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -2,7 +2,8 @@ # Refer to the theme docs for more details about each of these parameters. # https://jpanther.github.io/congo/docs/getting-started/ -# baseURL = "https://your_domain.com/" +baseURL = "https://devdocs.cacert.org/" +languageCode = "en" defaultContentLanguage = "en" enableRobotsTXT = true @@ -11,3 +12,6 @@ summaryLength = 0 [outputs] home = ["HTML", "RSS", "JSON"] + +[permalinks] + posts = '/posts/:year/:month/:title/' diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index 5c1e8a8..019de1a 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -5,9 +5,9 @@ isoCode = "en" weight = 1 rtl = false -title = "Congo" -# description = "My awesome website" -# copyright = "Copy, _right?_ :thinking_face:" +title = "CAcert Development Documentation" +description = "This site is a collection of development documentation for CAcert" +copyright = "© CAcert" dateFormat = "2 January 2006" @@ -15,10 +15,13 @@ dateFormat = "2 January 2006" # mainSections = ["section1", "section2"] [author] - # name = "Your name here" + name = "CAcert" # image = "img/author.jpg" - # headline = "I'm only human" + headline = "The community driven Certificate Authority" # bio = "A little bit about you" + links = [ + { link = "https://www.cacert.org/" } + ] # links = [ # { email = "mailto:hello@your_domain.com" }, # { link = "https://link-to-some-website.com/" }, diff --git a/config/_default/markup.toml b/config/_default/markup.toml index c5449fc..9d548cf 100644 --- a/config/_default/markup.toml +++ b/config/_default/markup.toml @@ -3,7 +3,7 @@ [goldmark] [goldmark.renderer] - unsafe = true + unsafe = false [highlight] noClasses = false diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml index 300074b..f44ba40 100644 --- a/config/_default/menus.en.toml +++ b/config/_default/menus.en.toml @@ -16,14 +16,18 @@ weight = 10 [[main]] - name = "Categories" - pageRef = "categories" + name = "Topics" + pageRef = "topics" weight = 20 [[main]] - name = "Tags" - pageRef = "tags" + name = "Code" + title = "CAcert code repositories" + url = "https://code.cacert.org/cacert/" weight = 30 + [main.params] + icon = "git-alt" + target = "_blank" [[main]] identifier = "search" diff --git a/config/_default/params.toml b/config/_default/params.toml index bb8bdd5..496e8b2 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -5,12 +5,12 @@ # Refer to the theme docs for more details about each of these parameters. # https://jpanther.github.io/congo/docs/configuration/#theme-parameters -colorScheme = "congo" +colorScheme = "ocean" defaultAppearance = "light" # valid options: light or dark autoSwitchAppearance = true -enableSearch = false -enableCodeCopy = false +enableSearch = true +enableCodeCopy = true # robots = "" diff --git a/config/_default/taxonomies.toml b/config/_default/taxonomies.toml new file mode 100644 index 0000000..a407983 --- /dev/null +++ b/config/_default/taxonomies.toml @@ -0,0 +1 @@ +topic = 'topics'