I’ve been developing my first Hugo site for a while but I just can’t figure this one out.
I have a pretty basic source organization:
├── content/ └── _index.md └── blog/ ├── firstpost.md
When I have the
firstpost.md defined in Front Matter the result is as expected (it equals the content organization). But when I don’t, the post takes it’s path on my local machine and translates it into its position in the rendered site.
Let’s say, this is it’s place on my disk:
This is rendered into:
The wanted path is this:
As I said, it does work if I set the URL in Front Matter to
There is nothing significantly interesting about
ThisFolder folder. I just don’t understand why this keeps happening. Any ideas? I can still move around this with specifying the url but I would really like to know what I am doing wrong.
This is my Front Matter:
+++ date = "2017-05-23T21:46:39+02:00" description = "TEST" draft = false h1 = "TEST" title = "TEST" type = "page" +++
And this is my config:
baseurl = "https://mysite.sk/" languageCode = "sk-sk" defaultContentLanguage = "sk" title = "Title" publishDir = "../dist" contentDir = "content" layoutDir = "layouts" canonifyurls = true enableRobotsTXT = true disableHugoGeneratorInject = true
I would be very thankful for any idea!