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

Do not use.Site.BaseURL #756

Closed
ytrepidorosonomous opened this issue Jan 2, 2024 · 2 comments · Fixed by #761
Closed

Do not use.Site.BaseURL #756

ytrepidorosonomous opened this issue Jan 2, 2024 · 2 comments · Fixed by #761
Labels
enhancement New feature or request

Comments

@ytrepidorosonomous
Copy link

It was never meant to be exposed to templates, and Hugo maintainers are also discouraging it. Use absURL or absLangURL instead (or .Site.Home.Permalink)

@xoxys
Copy link
Member

xoxys commented Jan 2, 2024

Thanks for your issue.

It was never meant to be exposed to templates, and Hugo maintainers are also discouraging it.

Do you have a ref for this? Even if it was not intended to be exposed it is for a long time now and its also documented in the official docs.

@xoxys xoxys added the question Further information is requested label Jan 2, 2024
@ytrepidorosonomous
Copy link
Author

Do you have a ref for this?

https://discourse.gohugo.io/t/46692/4

@xoxys xoxys added enhancement New feature or request and removed question Further information is requested labels Jan 7, 2024
@xoxys xoxys closed this as completed in #761 Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants