Hi,
I’m trying to use slugify function in tags.
The solution I took from this post - Cyrillic-aware slugify function
But I can’t make it work.
Can anyone explain how to use this function?
Thanks in advance.
What are you trying to accomplish?
I have russian tags in my front matter, e.g.
tags: “остров”
I want a url of this tag to be looked like this"www.domain.com/blog/tag/ostrov"
instead of this
“www.domain.com/blog/tag/остров”
You cannot currently do that.
Actually, that’s not strictly true, but it is a manual process.
hugo new tags/остров/_index.md
Then set the url in front matter:
+++
title = 'Остров'
date = 2023-09-29T12:26:59-07:00
draft = false
url = '/tags/ostrov'
+++
But you will need to do this for every tag.
So as I understand this ‘Cyrillic-aware slugify function’ solution is useless?
For what you’re trying to do, yes.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.