From b262dc3b88c1dfb7bc1d6d6cb2e986e97b25690e Mon Sep 17 00:00:00 2001 From: Dwayne Charrington Date: Fri, 13 Dec 2024 14:42:05 +1000 Subject: [PATCH] fix(site): add default and production config files Created new configuration files for default and production environments, setting up base URLs, language codes, titles, themes, and output formats. Updated the learn page with a description to enhance clarity. Removed outdated hugo.toml file and cleaned up sidebar menu by removing the support link. Adjusted sidebar HTML to use dynamic path prefix from parameters. --- config/_default/config.toml | 10 ++++++++++ config/production/config.toml | 4 ++++ content/learn.md | 1 + hugo.toml | 7 ------- themes/aurelia-theme/data/sidebar.yaml | 4 ---- themes/aurelia-theme/layouts/partials/sidebar.html | 2 +- 6 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 config/_default/config.toml create mode 100644 config/production/config.toml delete mode 100644 hugo.toml diff --git a/config/_default/config.toml b/config/_default/config.toml new file mode 100644 index 0000000..353cbaa --- /dev/null +++ b/config/_default/config.toml @@ -0,0 +1,10 @@ +baseURL = "/" +languageCode = "en-us" +title = "Aurelia" +theme = "aurelia-theme" + +[params] + pathPrefix = "" + +[outputs] + home = ["HTML", "RSS", "JSON"] \ No newline at end of file diff --git a/config/production/config.toml b/config/production/config.toml new file mode 100644 index 0000000..2539cb5 --- /dev/null +++ b/config/production/config.toml @@ -0,0 +1,4 @@ +baseURL = "https://aurelia.io/website/" + +[params] + pathPrefix = "/website" \ No newline at end of file diff --git a/content/learn.md b/content/learn.md index 71e186a..1577df3 100644 --- a/content/learn.md +++ b/content/learn.md @@ -1,5 +1,6 @@ --- title: "Learn" +description: "Resources for developing your Aurelia expertise" url: "/learn/" type: "learn" --- diff --git a/hugo.toml b/hugo.toml deleted file mode 100644 index 9a4d3d9..0000000 --- a/hugo.toml +++ /dev/null @@ -1,7 +0,0 @@ -baseURL = '/' -languageCode = 'en-us' -title = 'Aurelia' -theme='aurelia-theme' - -[outputs] - home = ["HTML", "RSS", "JSON"] diff --git a/themes/aurelia-theme/data/sidebar.yaml b/themes/aurelia-theme/data/sidebar.yaml index ac0d169..37972f5 100644 --- a/themes/aurelia-theme/data/sidebar.yaml +++ b/themes/aurelia-theme/data/sidebar.yaml @@ -16,10 +16,6 @@ menu: link: "/blog" icon: "blog" active: "eq .Section 'blog'" - - name: "Support" - link: "/support" - icon: "help" - active: "eq .RelPermalink '/support/'" - name: "Learn" link: "/learn" icon: "learn" diff --git a/themes/aurelia-theme/layouts/partials/sidebar.html b/themes/aurelia-theme/layouts/partials/sidebar.html index fc71801..63aaf6e 100644 --- a/themes/aurelia-theme/layouts/partials/sidebar.html +++ b/themes/aurelia-theme/layouts/partials/sidebar.html @@ -1,7 +1,7 @@