Skip to content

fix: replace .Site.BaseURL with absURL in templates #69

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

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

JTorreG
Copy link
Collaborator

@JTorreG JTorreG commented Aug 15, 2024

Proposed changes

Replaces .Site.BaseURL with absURL as per https://gohugo.io/methods/site/baseurl/

for example:
<p><a href="https://www.f5.com/"><img class="f5-logo-footer" src="{{.Site.BaseURL}}/images/icons/Logo_F5.svg" alt="F5 logo"></a>

becomes

<p><a href="https://www.f5.com/"><img class="f5-logo-footer" src="{{ "/images/icons/Logo_F5.svg" | absURL }}" alt="F5 logo"></a>

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • I have updated any relevant documentation (README.md and CHANGELOG.md)

@JTorreG JTorreG merged commit fe40207 into main Aug 19, 2024
@JTorreG JTorreG deleted the issue-154 branch August 19, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants