# Content folder organization

**URL:** <https://discourse.gohugo.io/t/content-folder-organization/36644>\
**Category:** support\
**Created:** [January 19, 2022, 2:40am UTC](https://discourse.gohugo.io/t/content-folder-organization/36644 "2022-01-19T02:40:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![willduncanphoto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/willduncanphoto/32/11840_2.png) [@willduncanphoto](https://discourse.gohugo.io/u/willduncanphoto)\
**Post date:** [January 19, 2022, 2:40am UTC](https://discourse.gohugo.io/t/content-folder-organization/36644/1 "2022-01-19T02:40:26Z")

</div>

I am mainly just curious if anyone has tips or links to blog posts on content folder structures in hugo. Specifically pertaining to post/blog archive structures for medium to high volume content (say up to a post a day) and methods of automating that workflow within Hugo.

Google just isn’t the tool it used to be. And I think I just need to stretch my mind a little and get some feedback from others more experience than me with hugo and static site file structures. So I apologize in advance if I get long winded. A lot of stuff is bouncing around in my head and I’m thinking as much philosophy as what I need to learn to do with hugo.

I am looking to go with a tumblr post type structure embedded in a portfolio website. Over time, I’ll port my instagram and other social media content back over the the site as “posts”. So content types would be articles, photo, quotes/excerpts and links.

So I’m thinking the overall flow for blog content needs to be something like:

```auto
.
├── about
├── posts
│ └── 2022
│ └── 01-Jan
│ ├── 220107_copy_my-first-post
│ ├── 220108_quote_steinbeck
│ ├── 220109_photo_nyt-a1
│ ├── 220110_link_vii-ashley-gilbertson
│ └── YYMMDD_type_post-title-here
├── prints
└── projects

11 directories, 0 files

```

Since articles and photo sound like they’ll have to have access to page resources, they’ll need to be folders. Others could just be md files.

Or is there a way better way to keep a large volume of post content organized? or even better way to do this?

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [January 19, 2022, 6:42am UTC](https://discourse.gohugo.io/t/content-folder-organization/36644/2 "2022-01-19T06:42:48Z")

</div>

> [@willduncanphoto](#):
>
> Or is there a way better way to keep a large volume of post content organized? or even better way to do this?

Typically I like to have content for daily updates under

```auto
.
├── about
├── posts
│ └── 2022
│ └── 01
│ └── 01
│ └── index.md

```

Basically `:year/:month/:day` but you can also skip this organization and simply [configure](https://gohugo.io/content-management/urls/#permalink-configuration-values) a Section’s permalinks to be outputted using the above structure, without actually organizing the content like so.

This is my preference because I have found that using this directory structure makes it is much easier to find anything I may need -like for example a blog post from May the 2nd 2011- without having to use file search.

> [@willduncanphoto](#):
>
> Or is there a way better way to keep a large volume of post content organized? or even better way to do this?

Perhaps others can share their content organization methods.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 19, 2022, 3:19pm UTC](https://discourse.gohugo.io/t/content-folder-organization/36644/3 "2022-01-19T15:19:05Z")

</div>

Comments…

1) For the month directory, just use the 01 instead of 01-Jan. If for some reason you need the month directory to include a string abbreviation, use lowercase. Uppercase letters in directory and filenames can come back to bite you later.

2) If you want to include a date in your filename, use the yyyy-mm-dd format. In this example I have two content pages: a regular page and a leaf bundle.

```nohighlight
content/
└── post/
    ├── 2022-01-19-my-second-post/
    │ └── index.md
    └── 2022-01-19-my-first-post.md

```

Then, in your site configuration:

```auto
[frontmatter]
date = [':filename', ':default']

```

With this configuration:

- The `.Date` value is extracted from the filename. If the filename doesn’t include a date stamp, the `.Date` value will be extracted from front matter using the default preference.
- The `.Slug` value will be extracted from the filename (e.g., `my-first-post`).

Reference:  
[https://gohugo.io/getting-started/configuration/#configure-dates](https://gohugo.io/getting-started/configuration/#configure-dates)

---

<div class="post-metadata">

**Author:** ![willduncanphoto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/willduncanphoto/32/11840_2.png) [@willduncanphoto](https://discourse.gohugo.io/u/willduncanphoto)\
**Post date:** [January 20, 2022, 2:12am UTC](https://discourse.gohugo.io/t/content-folder-organization/36644/4 "2022-01-20T02:12:06Z")

</div>

That makes a lot of sense! I will take that into consideration.
