I build a one pager with modules which include umlauts ("Über", "Gründe", ...) in the menu-name. The links will then look like: mypage.de/g#r-nde. Don't like it. It should be: mypage.de/#gruende.
I couldn't figure out a way to change that behaviour of converting umlauts into "-" .
So I tried changing the slugs in the frontmatter. Which removed the modules completely from my one pager - the link in the menu as well as the content.
Probably just not the right way to go about it.
So can anyone help and tell me, how to have Grav convert "Über" to a #ueber link?
@pamtbaau Thank you very much for your answer!
I had found this post previously but unfortunately it couldn't solve the problem.
Still the link is wrong. Instead of mypage.de/#ueber it's mypage.de/#ber.
The "ü" from "Über" will just be dropped and I can't figure out how to have Grav replace it by "ue".
@NatLikon, A community is a two-way effort... It is not only about solving ones own problem. It is also about giving back a properly described and reproduceable solution back to the community.
IMHO, your "solution" isn't helpful to others. See my remarks.
@pamtbaau Yes, I definitly want this to be helpful to others.
I had edited my "solution"-post according to your remarks. At least I tried.
Please let me know what further information is needed to make this helpful to others. I am a little lost here.
To be able to scroll/jump to a specific module, for each module, an element with a proper id needs to be created. Quark uses:
HTML
<divid="{{ module.menu|hyphenize }}"></div>
The issues:
In your solution you only talk about the navigation, while also the target elements with the id needs to be updated.
In your replacement statement, you add a #. This is not needed. The menu-items already have a # prepended and the id of the target elements doesn't need one.
@pamtbaau Naaah, I wouldn't call you a nitpicker. I highly appreciate your efforts to keep quality up in this forum!
I'd mark your last post as solution because I think you summarize it very well.
I am sorry I couldn't contribute in a better way. The community thing is very new to me and I am still learning/practising how to express myself in a way that's helpful to others. Thanks again for your patience!