Skip to content

Commit

Permalink
🔧 (hugo.local.yaml): remove disableAliases configuration
Browse files Browse the repository at this point in the history
♻️ (publish-redirects2.html): rename routesFor404 to routes for clarity

The `disableAliases` configuration is removed from `hugo.local.yaml`
to allow Hugo to generate aliases, which can be useful for redirecting
old URLs to new ones. In `publish-redirects2.html`, the variable
`routesFor404` is renamed to `routes` to better reflect its purpose
and improve code readability.
  • Loading branch information
MrHinsh committed Mar 5, 2025
1 parent 2be9ef5 commit 661fb3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions site/hugo.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ Environment: "development"
buildDrafts: true
buildFuture: true
buildExpired: true

disableAliases: true
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
{{- end }}
{{- end }}
{{- end }}
{{- $routes := dict "routesFor404" ($.Scratch.Get "routesFor404") }}
{{- $routes := dict "routes" ($.Scratch.Get "routesFor404") }}
{{- $jsonOutput := $routes | jsonify }}
{{- (resources.FromString "static.routes.json" $jsonOutput).Publish }}

0 comments on commit 661fb3a

Please sign in to comment.