Next issue is that the last post doesn’t appear at the top. Aka the posts are not ordered by date.
Perhaps I should just give up on using enableGitInfo and resort to front matter instead?
Furthermore I need to exclude several sections and I’m struggling to figure out how to do that.
[hendry@t480s foobar]$ rm -rf public/
[hendry@t480s foobar]$ grep exclude layouts/_default/rss.xml
{{ if and (ne .Section "private-ish") (ne .Section "2020") (ne .Section "exclude-me-too") }}
[hendry@t480s foobar]$ tree content/
content/
├── 2019
│ └── old.md
├── 2020
│ └── fresh.md
├── exclude-me-too
│ └── index.md
└── private-ish
└── internal-but-public.md
4 directories, 4 files
[hendry@t480s foobar]$ hugo
Building sites … WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/07/14 10:33:09 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
| EN
-------------------+-----
Pages | 4
Paginator pages | 0
Non-page files | 0
Static files | 0
Processed images | 0
Aliases | 0
Sitemaps | 0
Cleaned | 0
Total in 9 ms
[hendry@t480s foobar]$ grep exclude public/index.xml
<link>https://example.com/exclude-me-too/</link>
<guid>https://example.com/exclude-me-too/</guid>
[hendry@t480s foobar]$