From 4a8e34f8e0f7ab4e627fe06713666cbdde656de9 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 5 Aug 2023 18:07:45 -0700 Subject: [PATCH] Convert hugo.yaml to hugo.toml --- exampleSite/hugo.toml | 99 +++++++++++++++++++++++++++++++++++++++++++ exampleSite/hugo.yaml | 82 ----------------------------------- 2 files changed, 99 insertions(+), 82 deletions(-) create mode 100644 exampleSite/hugo.toml delete mode 100644 exampleSite/hugo.yaml diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml new file mode 100644 index 00000000..b1104dc6 --- /dev/null +++ b/exampleSite/hugo.toml @@ -0,0 +1,99 @@ +baseurl = "https://example.com" +copyright = "© Will Faught" +enablerobotstxt = true +languagecode = "en-us" +paginate = 50 +timezone = "America/Los_Angeles" +titlecasestyle = "Go" + +[languages.en] +weight = 10 + +[[languages.en.menu.main]] +identifier = "home" +name = "Home" +url = "/" +weight = 10 + +[[languages.en.menu.main]] +identifier = "content" +name = "Content" +url = "/content/" +weight = 20 + +[[languages.en.menu.main]] +identifier = "layouts" +name = "Layouts" +url = "/layouts/" +weight = 30 + +[[languages.en.menu.main]] +identifier = "shortcodes" +name = "Shortcodes" +url = "/shortcodes/" +weight = 40 + +[[languages.en.menu.main]] +identifier = "customization" +name = "Customization" +url = "/customization/" +weight = 50 + +[[languages.en.menu.main]] +identifier = "authors" +name = "Authors" +url = "/authors/" +weight = 60 + +[[languages.en.menu.main]] +identifier = "series" +name = "Series" +url = "/series/" +weight = 70 + +[[languages.en.menu.main]] +identifier = "categories" +name = "Categories" +url = "/categories/" +weight = 80 + +[[languages.en.menu.main]] +identifier = "tags" +name = "Tags" +url = "/tags/" +weight = 90 + +[[languages.en.menu.main]] +identifier = "search" +name = "Search" +url = "/search/" +weight = 100 + +[markup.goldmark.renderer] +unsafe = true + +[markup.highlight] +noClasses = false + +[markup.tableofcontents] +endlevel = 6 +ordered = true +startlevel = 2 + +[[module.imports]] +path = "github.com/willfaught/paige" + +[outputs] +home = ["html", "json", "rss"] + +[params.authors.will-faught] +name = "Will Faught" + +[params.paige.git] +commit_url = "https://github.com/willfaught/paige/commit/%s" + +[taxonomies] +author = "authors" +category = "categories" +series = "series" +tag = "tags" diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml deleted file mode 100644 index ef1e620e..00000000 --- a/exampleSite/hugo.yaml +++ /dev/null @@ -1,82 +0,0 @@ -baseurl: "https://example.com" -copyright: "© Will Faught" -enablerobotstxt: true -languagecode: "en-us" -languages: - en: - menu: - main: - - identifier: "home" - name: "Home" - url: "/" - weight: 10 - - identifier: "content" - name: "Content" - url: "/content/" - weight: 20 - - identifier: "layouts" - name: "Layouts" - url: "/layouts/" - weight: 30 - - identifier: "shortcodes" - name: "Shortcodes" - url: "/shortcodes/" - weight: 40 - - identifier: "customization" - name: "Customization" - url: "/customization/" - weight: 50 - - identifier: "authors" - name: "Authors" - url: "/authors/" - weight: 60 - - identifier: "series" - name: "Series" - url: "/series/" - weight: 70 - - identifier: "categories" - name: "Categories" - url: "/categories/" - weight: 80 - - identifier: "tags" - name: "Tags" - url: "/tags/" - weight: 90 - - identifier: "search" - name: "Search" - url: "/search/" - weight: 100 - weight: 10 -markup: - goldmark: - renderer: - unsafe: true - highlight: - noclasses: false - tableofcontents: - endlevel: 6 - ordered: true - startlevel: 2 -module: - imports: - - path: "github.com/willfaught/paige" -outputs: - home: - - "html" - - "json" - - "rss" -paginate: 50 -params: - authors: - will-faught: - name: "Will Faught" - paige: - git: - commit_url: "https://github.com/willfaught/paige/commit/%s" -taxonomies: - author: "authors" - category: "categories" - series: "series" - tag: "tags" -timezone: "America/Los_Angeles" -titlecasestyle: "Go"