Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: relative paths of resources #295

Merged
merged 2 commits into from
Jul 31, 2024
Merged

fix: relative paths of resources #295

merged 2 commits into from
Jul 31, 2024

Conversation

g1eny0ung
Copy link
Owner

From #294, some resources will fail to be accessed if someone uses a subdomain for site deployment.

Refer to https://gohugo.io/functions/urls/relurl/#input-does-not-begin-with-a-slash, all resources in templates should remove the / prefix.

This PR also applies the relURL pipeline to some unprocessed resources.

Copy link

netlify bot commented Jul 31, 2024

Deploy Preview for hugo-theme-dream-docs-preview canceled.

Name Link
🔨 Latest commit 7345147
🔍 Latest deploy log https://app.netlify.com/sites/hugo-theme-dream-docs-preview/deploys/66a9d3a082852b0008360826

@g1eny0ung g1eny0ung merged commit 08a84a5 into master Jul 31, 2024
4 checks passed
@g1eny0ung g1eny0ung deleted the fix/relative-urls branch July 31, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant