-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Page menu URLs vs permalinkable output formats #5849
Comments
What do you mean by ALL? Note that we added a |
Any links that have been generated by Hugo that links to other pages in the same domain, not to the external domain. Does adding |
No. I will double check the logic to make sure that we only link from AMP => AMP, but when you now do If this is not what you want, you can turn it off. See above. |
But it's happening to me for some reason. I am not using |
They are conceptually the same, yes. |
@akshaybabloo I have added some more tests for this -- and it behaves exactly as expected. |
OK, I am not sure what the problem is then: The code is here -> https://github.com/akshaybabloo/gollahalli.com The output options I have in my [outputs]
home = ["HTML", "RSS", "AMP", "searchindex"]
page = ["HTML", "RSS", "AMP"]
section = ["HTML", "RSS"] Now, I have removed <ul class="uk-subnav uk-subnav-divider uk-flex-center uk-visible@m gol-subnav">
{{ range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul> The |
OK, the page menus. I understand now. I will fix this, eventually, but you can get back the old behaviour by adding a |
you mean by adding |
Something llike this:
|
In Hugo `0.55` we introduced the `permalinkable` config attribute on Output Format, default enabled for `AMP` and `HTML`. This meant that a Page could have different `RelPermalink` and `Permalink` depending on the rendering format. The menu `URL` did not reflect that fact. Fixes gohugoio#5849
In Hugo `0.55` we introduced the `permalinkable` config attribute on Output Format, default enabled for `AMP` and `HTML`. This meant that a Page could have different `RelPermalink` and `Permalink` depending on the rendering format. The menu `URL` did not reflect that fact. Fixes #5849
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After setting
section = ["HTML", "RSS", "AMP"]
inconfig.tomal
all the hyperlinks in the page links tohttp://domain.com/amp/...
. This was working fine in 0.54.The text was updated successfully, but these errors were encountered: