Skip to content

Commit

Permalink
fix(site): add default and production config files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vheissu committed Dec 13, 2024
1 parent 80d5b5b commit b262dc3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
10 changes: 10 additions & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
baseURL = "/"
languageCode = "en-us"
title = "Aurelia"
theme = "aurelia-theme"

[params]
pathPrefix = ""

[outputs]
home = ["HTML", "RSS", "JSON"]
4 changes: 4 additions & 0 deletions config/production/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
baseURL = "https://aurelia.io/website/"

[params]
pathPrefix = "/website"
1 change: 1 addition & 0 deletions content/learn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Learn"
description: "Resources for developing your Aurelia expertise"
url: "/learn/"
type: "learn"
---
Expand Down
7 changes: 0 additions & 7 deletions hugo.toml

This file was deleted.

4 changes: 0 additions & 4 deletions themes/aurelia-theme/data/sidebar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion themes/aurelia-theme/layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav>
<ul>
{{ $currentPage := . }}
{{ $prefix := "/website" }}
{{ $prefix := .Site.Params.pathPrefix }}
{{ range .Site.Data.sidebar.menu }}
{{ $menuItem := . }}
{{ $isActive := false }}
Expand Down

0 comments on commit b262dc3

Please sign in to comment.