-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: Remove canonifyURLs, use absURL
Hugo configuration `canonifyURLs` is a brute force approach to search for relative URLs with a leading slash and then prepend them with the baseURL to create absolute URLs after the page is rendered. This approach is slow and confusing and will be removed in future from Hugo. Use `absURL` template function in theme layouts to replace `canonifyURLs`. To support the base URLs with sub directories remove leading slash in relative URLs. Fixes: #1 | Blog Footer and header URL's don't seem to follow base path
- Loading branch information
Showing
3 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters