-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
url issues #1090
Comments
Ad 1) You can make the URL absolute. Copy <a class="navbar-brand order-0" href="{{ "/" | relLangURL }}" aria-label="{{ .Site.Params.Title }}">
{{ .Site.Params.Title }}
</a> to <a class="navbar-brand order-0" href="{{ "/" | absLangURL }}" aria-label="{{ .Site.Params.Title }}">
{{ .Site.Params.Title }}
</a> Ad 2) You can use Hugo's They're not supported - see [reasoning](../../concepts/reasoning#route_params) use They're not supported - see [reasoning]({{< ref "reasoning#route_params" >}}) Last Friday I released Doks 1.0, I'm working hard now on updating the documentation — including a migration guide. Would you be interested in migrating? I could make a PR on your repo and learn and describe how to do things. Thanks! |
Absolutely, that would be awesome! Thanks a lot
…On Tue, Sep 12, 2023, 08:35 Henk Verlinde ***@***.***> wrote:
Ad 1) You can make the URL absolute. Copy
***@***.***/doks/layouts/partials/header/header.html to
docs/layouts/partials/header/header.html, and update lines 14..16 from
<a class="navbar-brand order-0" href="{{ "/" | relLangURL }}" aria-label="{{ .Site.Params.Title }}">
{{ .Site.Params.Title }}
</a>
to
<a class="navbar-brand order-0" href="{{ "/" | absLangURL }}" aria-label="{{ .Site.Params.Title }}">
{{ .Site.Params.Title }}
</a>
Ad 2) You can use Hugo's ref shortcode — see also Use of ref and relref
<https://gohugo.io/content-management/cross-references/#use-of-ref-and-relref>
So, for instance, instead of:
They're not supported - see [reasoning](../../concepts/reasoning#route_params)
use
They're not supported - see [reasoning]({{< ref "reasoning#route_params" >}})
Last Friday I released Doks 1.0
<https://github.com/h-enk/doks/releases/tag/v1.0.0>, I'm working hard now
on updating the documentation — including a migration guide. Would you be
interested in migrating? I could make a PR on your repo and learn and
describe how to do things. Thanks!
—
Reply to this email directly, view it on GitHub
<#1090 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOHZTRGUT7FPZU5IYPZ2A3XZ77CFANCNFSM6AAAAAA4TUE4VY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Repo in question: https://gitlab.com/hesxenon/andale/-/tree/main/docs
Thank you so far for your work, even though working with hugo is sometimes frustrating for me I now have (semi) working, professional looking docs :)
If you notice anything strange in that repo, please tell me and I'll do my best to change it.
The text was updated successfully, but these errors were encountered: