New section: _index.md creates .xml list but not incorporated in .html

I am using Terassa theme (lovely) and have added a post using blogdown https://github.com/rstudio/blogdown. I am writing in two languages.

Recently, I tried to add another list section, called tech.

content/
en /
posts/
_index.md
ablog.md
tech/
_index.md
another.md

The tech/_index.md page isn’t rendering correctly. another.md gets formed, and can be viewed if I type in the URL. However, the tech/_index.md generates the xml for the index, but this does not get incorporated in the index.html. I’ve tried purging caches, rm -rf public and everything else I can think of. I can’t see any settings that would cause this. Does anyone have any suggestions?

Full blog source is here: https://github.com/phewson/blog_source

Hi there,

The link to your repo returns a 404.

Sorry, had it set to private.

It’s the theme you are using.

This line only grabs the pages under posts, excluding those under other sections, such as tech in your case.

You may want to override it in a layouts/_default/list.html file yourself:

{{ $paginator := .Paginate .Pages }}

or 
{{ $paginator := .Paginate .Pages.ByDate.Reverse }}

Bingo, got it, thanks very much. I’d only checked that there was a layouts/_default/list.html, I hadn’t checked within it.

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