# Creating an about page

**URL:** <https://discourse.gohugo.io/t/creating-an-about-page/15750>\
**Category:** support\
**Created:** [December 10, 2018, 4:46am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750 "2018-12-10T04:46:23Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 10, 2018, 4:46am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/1 "2018-12-10T04:46:23Z")

</div>

So what I want to do is create an about page that does not show up in the index like all the other pages do when you use{{ range.pages}} for your index page. I want the about to be in a separate place on the index page. like in a nav bar. I’ve tried to create one but it still shows up like any other post.md file, but my link did show up more like expected but when I clicked on that link it says 404  
[github](https://github.com/prophoss/my_new_site) repo is here if you would like to look. Any help would be appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [December 10, 2018, 6:01am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/2 "2018-12-10T06:01:02Z")

</div>

Normally folks don’t range through all their pages, and they keep content in [sections](https://gohugo.io/content-management/sections/). So, if you want your blog posts to show, you put them all in `posts` or `blog`, and then range over that section.

I would avoid keeping files directly in `content`, and a popular practice is to have a section for so-called evergreen pages, such as your about page (you rarely update it, unlike the blog which is always changing). My suggestion: creates `content/pages`, and in the `about.md` front matter [set the URL](https://gohugo.io/content-management/organization/#url-1) to what you want.

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 10, 2018, 2:57pm UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/3 "2018-12-10T14:57:33Z")

</div>

After reading over the docs info I get the idea of what the structure should be, but how do you range over just the posts folder. It’s no problem to create separate directories for separate content but how do get at it afterwards.

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [December 10, 2018, 3:05pm UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/4 "2018-12-10T15:05:09Z")

</div>

> [@Prophoss](#):
>
> how do you range over just the posts folder.

```plaintext
{{ range where .Pages "Section" "posts" }}

```

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 10, 2018, 3:28pm UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/5 "2018-12-10T15:28:48Z")

</div>

Figured it was something like that but couldn’t find it exactly while reading. So .pages calls the .md files in the"section (like posts)" so that it calls just the pages in that folder?

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [December 10, 2018, 4:34pm UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/6 "2018-12-10T16:34:25Z")

</div>

> [@Prophoss](#):
>
> So .pages calls the .md files in the"section (like posts)" so that it calls just the pages in that folder?

Yes. You should run it for yourself and see what happens.

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 11, 2018, 3:08am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/7 "2018-12-11T03:08:32Z")

</div>

OK not working quite like expected. When I put in – {{range where .Pages “content” “posts”}} it gives a big long error code that basically says -\> error calling where: content isn’t a field of struct type \*hugolib.Page I’ve tried several variations of this and still haven’t figured out what is going on. Found a doc that set up one like this  
{{range .Pages}}  
{{.Render “posts”}}  
{{end}}  
now this called all the posts as before but it also called the about folder too which is what I was trying to avoid.

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [December 11, 2018, 3:27am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/8 "2018-12-11T03:27:50Z")

</div>

> [@Prophoss](#):
>
> {{range where .Pages “content” “posts”}}

This is different than my reply

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 11, 2018, 3:31am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/9 "2018-12-11T03:31:53Z")

</div>

OK learning here. So in this case range where .Pages “section” “posts”  
range=\> calls it to look through all pages  
where=\> is like your telling it to look for something  
.Pages =\>is telling you to look through content folder pages  
“section” =\> is telling it where to look ie. “title” look at meta data title(?)  
“posts” =\> is telling what it’s looking for in title meta data(?)

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 11, 2018, 3:33am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/10 "2018-12-11T03:33:57Z")

</div>

that is what I saw on my end. did find the doc that showed exactly what your talking about also. which is what i’m trying to figure out

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 11, 2018, 3:37am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/11 "2018-12-11T03:37:40Z")

</div>

got it! Did not add the “About” in title instead had “about” Need to watch my typing!

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [December 11, 2018, 3:43am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/12 "2018-12-11T03:43:04Z")

</div>

So `posts` is a `Section`

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 11, 2018, 3:45am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/13 "2018-12-11T03:45:34Z")

</div>

getting my github account updated to reflect my changes and you can see.

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 11, 2018, 3:54am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/14 "2018-12-11T03:54:34Z")

</div>

[Updated](https://github.com/prophoss/my_new_site) For changes  
Adding the separate folders has caused a problem in github that is not showing up when using local host. When I used it in github all my links to my posts went away, but in local host t hey are still there.

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [December 11, 2018, 4:15am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/15 "2018-12-11T04:15:57Z")

</div>

The `range` statement on your index template is incorrect [https://github.com/prophoss/my\_new\_site/blob/master/layouts/\_default/index.html](https://github.com/prophoss/my_new_site/blob/master/layouts/_default/index.html)

---

<div class="post-metadata">

**Author:** ![Prophoss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/prophoss/32/7334_2.png) [@Prophoss](https://discourse.gohugo.io/u/Prophoss)\
**Post date:** [December 11, 2018, 4:39am UTC](https://discourse.gohugo.io/t/creating-an-about-page/15750/16 "2018-12-11T04:39:39Z")

</div>

yeah sorry was changing things to try and get it to work with no luck. Put it back in order. Will come back to this tomorrow.
