# How should I organize my source files/site?

**URL:** <https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803>\
**Category:** support\
**Created:** [July 8, 2020, 6:32pm UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803 "2020-07-08T18:32:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemostrom](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jemostrom/32/3331_2.png) [@jemostrom](https://discourse.gohugo.io/u/jemostrom)\
**Post date:** [July 8, 2020, 6:32pm UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803/1 "2020-07-08T18:32:05Z")

</div>

I tried setting up a Hugo site a couple of years ago but failed. So I’m making a new attempt … but I seem to fail on the most basic stuff.

I better start with a description of the site as I imagine it. The site should have

- navigation in two languages (Swedish/English)

- the blog section will have posts in any of two languages but there will no translation of individual posts. In other words I expect to see a listing of posts in both languages.

- a number of “standard pages” (about, work, etc), these will be in both languages

- a number of sections with different types of content. I hope to be able to fix the layouts for these sometime in the future - when I hopefully have learned how Hugo works. The language of these sections will be mixed (some pages in Swedish, some in English)

I made an attempt to test my idea to see if everything worked as I hoped. I used this content (shortened to keep the listing short)

```auto
content:
	examplesection:
		_index.md
		test.md
	pages:
		en:
			about.md
		sv:
			about.md
	posts:
		_index.md
		test.md

```

Unfortunately, I didn’t get the expected result (from my point of view 😃 ):

```auto
public:
	css:
	en:
		404.html
		about:
			index.html
	images:
		avatar.jpg
	index.html
	sitemap.xml
	sv:
		404.html
		about:
			index.html

```

I had expected to find a `examplesection` folder there somewhere, but I didn’t so I assume I’m doing something stupid. I should perhaps add that I have `contentDir` set to `"content/pages/en"` and `"content/pages/sv"` for respective language.

In short I’m stumbling around trying to figure out how to organize my content. I would be really grateful if someone could point me in the correct direction for how to do this - unfortunately I didn’t understand how to apply the info in the docs to this situation.

---

<div class="post-metadata">

**Author:** ![jemostrom](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jemostrom/32/3331_2.png) [@jemostrom](https://discourse.gohugo.io/u/jemostrom)\
**Post date:** [July 9, 2020, 10:09am UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803/2 "2020-07-09T10:09:51Z")

</div>

Played a bit more and was able to get a little bit further but after reading in the Issue tracker it looks like the functionality suggested in [issue 5612](https://github.com/gohugoio/hugo/issues/5612) is something that would make things easier for me.

---

<div class="post-metadata">

**Author:** ![vendelin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vendelin/32/11243_2.png) [@vendelin](https://discourse.gohugo.io/u/vendelin)\
**Post date:** [July 9, 2020, 11:25am UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803/3 "2020-07-09T11:25:14Z")

</div>

I feel your pain. That is, I was in your shoes a short while ago, and decided to write a step by step tutorial. Would you mind trying it and give me your feedback?

The tutorial is here:  
[https://vendelin.org/geeky/hugo/](https://vendelin.org/geeky/hugo/)

---

<div class="post-metadata">

**Author:** ![vidhyav656](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vidhyav656/32/8786_2.png) [@vidhyav656](https://discourse.gohugo.io/u/vidhyav656)\
**Post date:** [July 9, 2020, 11:56am UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803/4 "2020-07-09T11:56:31Z")

</div>

You can check [Academic Theme Source Code](https://github.com/sourcethemes/academic-kickstart) which has more than 15 multilingual support 🌐

[Docs here](https://sourcethemes.com/academic/docs/language/)  
[Theme Demo](https://sourcethemes.com/academic/)

---

<div class="post-metadata">

**Author:** ![jemostrom](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jemostrom/32/3331_2.png) [@jemostrom](https://discourse.gohugo.io/u/jemostrom)\
**Post date:** [July 10, 2020, 12:03pm UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803/5 "2020-07-10T12:03:02Z")

</div>

Thanks, I’ve now got something that seem to work (except the blog part but I’m running that on another service so it’s not a problem). I’ve got a few comments of the tutorial, I’ll make a longer more detailed reply later and send it to you.

---

<div class="post-metadata">

**Author:** ![jemostrom](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jemostrom/32/3331_2.png) [@jemostrom](https://discourse.gohugo.io/u/jemostrom)\
**Post date:** [July 10, 2020, 12:05pm UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803/6 "2020-07-10T12:05:37Z")

</div>

Yes, this was in fact what I first was looking at but decided to go with another theme instead - mostly because I probably want to extend the functionality later and need to learn how things work. But I really like the bibliography feature and hope that builtin support for this will be available some day.

---

<div class="post-metadata">

**Author:** ![vidhyav656](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vidhyav656/32/8786_2.png) [@vidhyav656](https://discourse.gohugo.io/u/vidhyav656)\
**Post date:** [July 10, 2020, 1:06pm UTC](https://discourse.gohugo.io/t/how-should-i-organize-my-source-files-site/26803/7 "2020-07-10T13:06:37Z")

</div>

Great. Good to know👍
