# \[Solved\] Can't link/render posts in 'content/posts' in new theme from scratch

**URL:** <https://discourse.gohugo.io/t/solved-cant-link-render-posts-in-content-posts-in-new-theme-from-scratch/16977>\
**Category:** support\
**Created:** [February 13, 2019, 7:12am UTC](https://discourse.gohugo.io/t/solved-cant-link-render-posts-in-content-posts-in-new-theme-from-scratch/16977 "2019-02-13T07:12:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![temporus](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@temporus](https://discourse.gohugo.io/u/temporus)\
**Post date:** [February 13, 2019, 7:12am UTC](https://discourse.gohugo.io/t/solved-cant-link-render-posts-in-content-posts-in-new-theme-from-scratch/16977/1 "2019-02-13T07:12:43Z")

</div>

Hi there, I seem to have trouble linking posts in my template.

I placed test posts (copied from a theme) into ‘content/posts’ directory.  
 ![dir](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/5/555b5d66ac601e444105f5b0ca9b88a5e665bc9e.jpeg)

Then added to my config.toml as per in the **URL Management** docs.

```auto
[permalinks]
  posts = "/:year/:month/:title/"

```

This is how the template looks like.

```auto
<ul>
    {{ range after 1 .Pages.ByDate.Reverse }}
        <li>
            <a href="{{ .Permalink }}" class="with-hover-effect">
                <span>{{ .Title }}</span>
                <span class="hover-bar"></span>
            </a>
        </li>
    {{ end }}
</ul>

```

And I’m getting URLs like these which seems right but gives me 404s.

```auto
http://localhost:1313/2014/09/creating-a-new-theme/
http://localhost:1313/2014/04/getting-started-with-hugo/
http://localhost:1313/2014/04/hugo-template-primer/
http://localhost:1313/2014/03/migrate-from-jekyll/

```

Edit: So, I quickly downloaded a random theme (minimal) and built the site, compared and noticed the issue. My theme doesn’t seem to be outputting any posts while the other theme had a ‘ **public \> 2014** ’ folder.

![build](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/f/f2db33b2a66d702679bf1548934ddbe369296c1f.jpeg)

Hugo version

```auto
Hugo Static Site Generator v0.55.0-DEV/extended windows/amd64 BuildDate: unknown

```

# Solution

There was no error in the console even with --verbose, after an hour of looking and fiddling, turned out I needed at least some code in **single.html** for it to even render anything. I just threw in **{{ .Content }}** and worked from thereon.
