From b9805c3fbe54d94cc8a7b17d712caf875f21248f Mon Sep 17 00:00:00 2001 From: loikein Date: Wed, 19 Apr 2023 00:14:09 +0100 Subject: [PATCH] update example config --- exampleSite/config.toml | 107 ---------------------------------------- exampleSite/config.yaml | 101 +++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 107 deletions(-) delete mode 100644 exampleSite/config.toml create mode 100644 exampleSite/config.yaml diff --git a/exampleSite/config.toml b/exampleSite/config.toml deleted file mode 100644 index ffb5c11..0000000 --- a/exampleSite/config.toml +++ /dev/null @@ -1,107 +0,0 @@ -# Remove this if your site folder is not inside the theme folder -themesDir = "../../" - -# Set your theme here -theme = "hugo-tufte" -# The language of your website (see https://www.andiamo.co.uk/resources/iso-language-codes/ for reference) -languageCode = "en-us" -# The url of your website -baseurl = "https://slashformotion.github.io/hugo-tufte/" -# The title of your website (shown on all the pages) -title = "Hugo-tufte Theme Example Site" -# Site wide kill switch for Latex support -math = true -# (If math is enabled) -## if "katex" is set to true katex will be used to render LaTex, if not MathJax will be used instead -katex = true - -[params] - # Subtitle of the website - subtitle = "Subtitle goes here." - # Your name or the name of you company - copyrightHolder = "Copyright Holder" - # Show the "Powered by Hugo-Tufte and Hugo." - showPoweredBy = true - # Site wide kill switch - hidedate = false - # Uncomment for dark code blocks - # codeBlocksDark = true - - # Common social website links, please comment the unused ones. - ## (if your favorite one is not in the list, please head to the footer menu below and add an entry) - ### Please note that some of the value below are only provided as an exemple, perhaps the computed isn't valid - github = "slashformotion" - gitlab = "slashformotion" - twitter = "slashformotion" - patreon = "" - youtube = "user/ChromeDevelopers" # check the end of your youtube url https://www.youtube.com/ - medium = "slashformotion" - reddit = "Slashformotion" - stackoverflow = "16609732/slashformotion" - instagram = "google" - mastodon = "instance.url/@username" - orcid = "0000-0003-0634-3275" - google_scholar = "jm5QaHkAAAAJ" - -[taxonomies] - category = "categories" - series = "series" - tag = "tags" -# ----------------------------------------------------------------------- -# Navigation menu -# ----------------------------------------------------------------------- -[[menu.nav]] - name = "Home" - pre = "" - weight = -110 - identifier = "home" - url = "/" -[[menu.nav]] - name = "Posts" - pre = " " - weight = -100 - identifier = "posts" - url = "/post" -[[menu.nav]] - name = "Categories" - pre = " " - weight = -90 - identifier = "categories" - url = "/categories" -[[menu.nav]] - name = "About" - pre = " " - weight = -80 - identifier = "about" - url = "/about" -[[menu.nav]] - name = "Source Code" - pre = " " - weight = -70 - identifier = "github" - url = "https://github.com/slashformotion/hugo-tufte" - -# ----------------------------------------------------------------------- -# FOOTER MENU -# If you need to add custom links to you footer: put them here. Be aware that this theme is using fontawesome. -# Please head to https://fontawesome.com/v4.7/icons/ to pick icons -# ----------------------------------------------------------------------- - -[[menu.footer]] - name = "Custom footer link" - pre = " " - weight = -90 - identifier = "custom_link" - url = "https://google.com" - - -# Don't change the settings below -[markup] - [markup.goldmark] - [markup.goldmark.renderer] - unsafe = true # make the shortcodes work - [markup.highlight] - noClasses = false - -pygmentsUseClasses = true -canonifyurls = true \ No newline at end of file diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml new file mode 100644 index 0000000..9a4440b --- /dev/null +++ b/exampleSite/config.yaml @@ -0,0 +1,101 @@ +# Remove this if your site folder is not inside the theme folder +themesDir: "../../" + +# Set your theme here +theme: hugo-tufte +# The language of your website (see https://www.andiamo.co.uk/resources/iso-language-codes/ for reference) +languageCode: en-US +# If you write Chinese, Japanese or Korean, this helps with word counting +hasCJKLanguage: true +# The url of your website +baseurl: "https://example.com/" +# The title of your website (shown on all the pages) +title: "Hugo-tufte Theme Example Site" +canonifyurls: true + +# Only modify the following if you know what you are doing +markup: + goldmark: + renderer: + unsafe: true + highlight: + noClasses: false + pygmentsUseClasses: true + guessSyntax: true + +params: + # Subtitle of the website + subtitle: "Fancy subtitle." + favicon: "./favicon.ico" + touchicon: "./touch-icon.png" + # Dark code highlighting + codeblocksdark: false + # Customize the indicator for margin notes + # Some suggestions: 💬, 💭, 📑, 🏷, ✍, 💡, 🧐, 📎, 📌 + marginNoteInd: "⊕" + # Your name or the name of you company + # copyright: Copyright 2023 + # copyrightHolder: Copyright Holder + # Show the "Powered by Hugo-Tufte and Hugo." + showPoweredBy: false + # Site wide kill switch + hidedate: false + # Site wide kill switch for Latex support + math: true + KaTeXVersion: 0.16.4 + KaTeXCDN: "//cdn.jsdelivr.net/npm" + # Common social website links, please comment the unused ones. + # (if your favorite one is not in the list, please head to the footer menu below and add an entry) + # Please note that some of the value below are only provided as an exemple, perhaps the computed isn't valid + # github: slashformotion + # gitlab: slashformotion + # twitter: slashformotion + # patreon: '' + # youtube: user/ChromeDevelopers # check the end of your youtube url https://www.youtube.com/ + # medium: slashformotion + # reddit: Slashformotion + # stackoverflow: 16609732/slashformotion + # instagram: google + # mastodon: instance.url/@username + # orcid: 0000-0003-0634-3275 + # google_scholar: jm5QaHkAAAAJ + +taxonomies: + category: categories + series: series + tag: tags + +# ----------------------------------------------------------------------- +# Navigation menu +# ----------------------------------------------------------------------- +menu: + nav: + - name: Home + weight: -110 + identifier: home + url: / + - name: Posts + weight: -100 + identifier: posts + url: /posts + - name: Categories + weight: -90 + identifier: categories + url: /categories + - name: About + weight: -80 + identifier: about + url: /about + - name: Source Code + weight: -70 + identifier: github + url: "https://github.com/slashformotion/hugo-tufte" +# ----------------------------------------------------------------------- +# FOOTER MENU +# If you need to add custom links to you footer: put them here. +# ----------------------------------------------------------------------- + # footer: + # - name: Custom footer link + # weight: -90 + # identifier: custom_link + # url: 'https://example.com'