if I try to show this post thru “hugo server” - i get 404. And i cant see whats wrong because hugo does not record requests.
if I push public directory after “hugo” to common web server - i’ve got the what i need
Hey, @kiltum I’m happy to tackle this (I’m the theme creator), though I’m not so sure it’s a Ananke issue. Can you point me to a repo and I’ll check it out. You can also file an issue directly on the Ananke repo https://github.com/budparr/gohugo-theme-ananke/issues
Hello @budparr ! I just check it again. no separate repo need
[kiltum@mbook test]$ hugo version
Hugo Static Site Generator v0.27.1 darwin/amd64 BuildDate: 2017-09-13T15:32:10+03:00
[kiltum@mbook test]$ hugo new site quickstart
Congratulations! Your new Hugo site is created in /Users/kiltum/test/quickstart.
....
[kiltum@mbook test]$ cd quickstart
[kiltum@mbook quickstart]$ git init
Initialized empty Git repository in /Users/kiltum/test/quickstart/.git/
[kiltum@mbook quickstart|master [?]]$ git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
Cloning into '/Users/kiltum/test/quickstart/themes/ananke'...
remote: Counting objects: 791, done.
remote: Total 791 (delta 0), reused 0 (delta 0), pack-reused 791
Receiving objects: 100% (791/791), 2.37 MiB | 1.32 MiB/s, done.
Resolving deltas: 100% (401/401), done.
[kiltum@mbook quickstart|master [+?]]$ echo 'theme = "ananke"' >> config.toml
[kiltum@mbook quickstart|master [+?]]$ hugo new posts/my-first-post.md
/Users/kiltum/test/quickstart/content/posts/my-first-post.md created
[kiltum@mbook quickstart|master [+?]]$ cat > content/posts/my-first-post.md
---
title: "Test Irl"
date: 2017-09-14T10:19:19+03:00
draft: false
url: “/badÅŠ”
---
(^d here)
[kiltum@mbook quickstart|master [+?]]$ hugo server
...
Now open browser to localhost:1313 and click to “Test Irl” - you got 404 error. But if you change theme to another (i try minimo & cocoa-eh) - all was ok.
Actually i found problem - by some reasons in summary-with-image.html:3 you use .URL, so result html is bad
May be i use term incorrectly, but IRL in my world is International Resource Locator.
in other words - non ACSII symbols in URL. Somebody know it as “encoded url”. example - in posts above
next step - IDN (international domain name), but they are declare whole URL contains non-acsii chars and actually not in this case, because translated to acsii
Thanks for clarifying, I did not know that. Now I have some words to search for. I do see that there’s an open issue about IDN support and non-ASCII characters. But it hasn’t gained traction yet (so also not confirmed yet).
I learned from this topic that there’s a removePathAccents setting for your config.toml file that might help. Although the use case discussed in that topic isn’t exactly the same as the one you have.
I couldn’t find documentation for that variable, but a Google search did turn up this article. Based on the description there I’m not sure if it helps in this case (but always worth a try I think).
Other than that I don’t know how to use non-ASCII characters in Hugo URLs.