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

Hugo docs: Fix {{site.baseurl}} links to use relative internal links instead #6255

Conversation

bernhardkaindl
Copy link
Collaborator

For links to internal pages, {{site.baseurl}} (without the leading .) does not
work in current Hugo, and it is better to replace it by using relative links:

{{.Site.BaseURL}} is replaced in the rendered output, but it doesn't work when
viewing and editing the files using Markdown editors and viewers like on GitHub/Lab
as well as IDEs with improved support for Markdown editing(in editor and preview).

As the relative links work in all cases like in the editors and previews,
fix those (currently broken) links to use the relative links instead.

While at those, also replace the link name "here" with a more specific link name.

PS: The only place were {{.Site.BaseURL}} or similar is needed is the link in
the logo.html template for img="{{.Site.BaseURL}}/images/xapi-project.png"

@psafont psafont added this pull request to the merge queue Jan 28, 2025
Merged via the queue into xapi-project:master with commit d6e1139 Jan 28, 2025
15 checks passed
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