# How to group and link content

**URL:** <https://discourse.gohugo.io/t/how-to-group-and-link-content/38429>\
**Category:** support\
**Created:** [May 1, 2022, 4:03pm UTC](https://discourse.gohugo.io/t/how-to-group-and-link-content/38429 "2022-05-01T16:03:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ray66](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ray66/32/16797_2.png) [@ray66](https://discourse.gohugo.io/u/ray66)\
**Post date:** [May 1, 2022, 4:03pm UTC](https://discourse.gohugo.io/t/how-to-group-and-link-content/38429/1 "2022-05-01T16:03:35Z")

</div>

Hi everybody,

I started migrating my Drupal website to Hugo. I successfully converted the pages but am struggling with the structure. Most of my content is bike trip reports, each report consisting of an overview page and one page per trip day. Requirements are:

- The overview page should contain a list of links to the day pages and each day page should link to the page of the following day (optionally a link to the previous day).
- Only the overview page should appear in lists, such as home or site/categories.
- The pages for one trip should be stored together in a dedicated subdirectory
- It should be possible to generate a list of the day pages in the subdirectory.

I am not asking for a full featured solution but for some hints in which direction to look. I currently use the [MemE theme](https://github.com/reuixiy/hugo-theme-meme/blob/master/README.md) but would switch to another theme if it would make the task easier.

Thanks  
Ray66

---

<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:** [May 5, 2022, 6:48pm UTC](https://discourse.gohugo.io/t/how-to-group-and-link-content/38429/2 "2022-05-05T18:48:23Z")

</div>

> **Structure**
>
> ```nohighlight
> content/
> ├── trips/
> │ ├── trip-1/
> │ │ ├── day-1/
> │ │ │ ├── image-1.jpg
> │ │ │ └── index.md
> │ │ ├── day-2/
> │ │ │ ├── image-2.jpg
> │ │ │ └── index.md
> │ │ ├── day-3/
> │ │ │ ├── image-3.jpg
> │ │ │ └── index.md
> │ │ ├── image-a.jpg
> │ │ └── _index.md
> │ └── trip-2/
> │ ├── day-1/
> │ │ ├── image-4.jpg
> │ │ └── index.md
> │ ├── day-2/
> │ │ ├── image-5.jpg
> │ │ └── index.md
> │ ├── day-3/
> │ │ ├── image-6.jpg
> │ │ └── index.md
> │ ├── image-b.jpg
> │ └── _index.md
> └── _index.md
> 
> ```

Example

```bash
git clone --single-branch -b hugo-forum-topic-38429 https://github.com/jmooring/hugo-testing hugo-forum-topic-38429
cd hugo-forum-topic-38429
hugo server

```

---

<div class="post-metadata">

**Author:** ![ray66](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ray66/32/16797_2.png) [@ray66](https://discourse.gohugo.io/u/ray66)\
**Post date:** [May 6, 2022, 11:15am UTC](https://discourse.gohugo.io/t/how-to-group-and-link-content/38429/3 "2022-05-06T11:15:38Z")

</div>

Hi Joe,

many thanks, this is exactly what I am looking for! Now I will adapt my migration script to this content structure and integrate the layouts to the theme of my site. I will give feedback when I am finished.

Ray66

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [May 8, 2022, 11:15am UTC](https://discourse.gohugo.io/t/how-to-group-and-link-content/38429/4 "2022-05-08T11:15:39Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
