Might be doing this wrong, but I’ve made a page bundle that looks like this:
[agd@clavain content]$ tree
.
├── about
│ └── _index.md
└── posts
├── from-ghost-to-hugo.md
├── planning-iceland-scotland-england
│ ├── google-calendar.png
│ ├── google-my-maps.jpg
│ └── index.md
the post for “planning iceland scotland england” makes it into my list, however the URL for this page is a doubled up version of the slug, for example: /posts/planning-iceland-scotland-england/planning-iceland-scotland-england/
, however if I rename index.md
to _index.md
the post won’t show up in my list.
I suspect I might be doing something wrong in my list enumeration of posts? If so, here is that from my template:
{{ define "main" }}
<main class="content" role="main">
<div class="container">
{{ range .Paginator.Pages }}
<article class="li {{ .Type }}">
<header class="post-header">
<h3 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<p class="post-time"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">{{ .Date.Format "January 2, 2006" }}</time></p>
</header>
<section class="post-excerpt">
<p>{{ .Description }}</p>
</section>
<footer class="post-footer">
<span>
<i class="fa fa-tag"></i>
{{ range .Params.tags }}
<a href="/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
</footer>
</article>
{{ end }}
</div>
</main>
{{ end }}