Skip to content

Commit

Permalink
chore(config): update production settings and paths
Browse files Browse the repository at this point in the history
Added a publish directory to the config for better organisation. Updated stylesheet link in the head template to include path prefix when in production mode, ensuring correct loading of styles.
  • Loading branch information
Vheissu committed Dec 15, 2024
1 parent 81458b2 commit b02074f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/production/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
baseURL = "https://aurelia.io/website/"
publishDir = "public"

[params]
pathPrefix = "/website"
2 changes: 1 addition & 1 deletion themes/aurelia-theme/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

{{ if hugo.IsProduction }}
{{ $styles = $styles | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous">
<link rel="stylesheet" href="{{ path.Join .Site.Params.pathPrefix $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous">
{{ else }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">
{{ end }}
Expand Down

0 comments on commit b02074f

Please sign in to comment.