Iβm trying to generate taxonomy and taxonomy term pages for blog authors. I have this feature working for tags and categories, but when I generate the site, only index.html
gets generated in the authors
folder.
In config.toml
, I have declared my taxonomies:
[taxonomies]
author = "authors"
tag = "tags"
category = "categories"
In the front matter, I am declaring the relevant taxonomies:
categories: ['Tutorials', 'Websites']
tags: ['Hugo', 'Codeship', 'DigitalOcean', 'CI-CD']
author: "Ashley Bye"
And I have the following structure in ./content
:
tree ./content/
./content/
βββ authors
β βββ ashley-bye
β βββ _index.md
βββ blog
β βββ 2017
β βββ 10
β β βββ test-3.md
β βββ 11
β β βββ test-1.md
β β βββ test-2.md
β βββ 12
β β βββ automating-hugo-deployment-to-digitalocean-with-codeship.md
β βββ 6
β β βββ test-10.md
β βββ 7
β β βββ test-9.md
β βββ 8
β β βββ test-7.md
β β βββ test-8.md
β βββ 9
β βββ test-4.md
β βββ test-5.md
β βββ test-6.md
βββ page
βββ about-me.md
Yet, when I run hugo
, my public
folder does not have any author pages:
tree ./public/ 110ms ξ³ Tue 2 Jan 08:03:45 2018
./public/
βββ authors
β βββ ashley-bye
β β βββ index.html
β βββ index.html
βββ blog
β βββ 2017
β β βββ 10
β β β βββ test-3
β β β βββ index.html
β β βββ 11
β β β βββ test-1
β β β β βββ index.html
β β β βββ test-2
β β β βββ index.html
β β βββ 12
β β β βββ automating-hugo-deployment-to-digitalocean-with-codeship
β β β βββ index.html
β β βββ 6
β β β βββ test-10
β β β βββ index.html
β β βββ 7
β β β βββ test-9
β β β βββ index.html
β β βββ 8
β β β βββ test-7
β β β β βββ index.html
β β β βββ test-8
β β β βββ index.html
β β βββ 9
β β βββ test-4
β β β βββ index.html
β β βββ test-5
β β β βββ index.html
β β βββ test-6
β β βββ index.html
β βββ index.html
β βββ page
β βββ 1
β β βββ index.html
β βββ 2
β βββ index.html
βββ categories
β βββ index.html
β βββ tutorials
β β βββ index.html
β βββ websites
β βββ index.html
βββ css
β βββ custom.css
βββ favicon-16x16.png
βββ favicon-32x32.png
βββ images
β βββ 20171228
β β βββ connect-github.png
β β βββ delete-test-pipeline.png
β β βββ master-branch.png
β β βββ new-project.png
β βββ avatars
β βββ ashley-bye.png
βββ index.html
βββ index.xml
βββ page
β βββ 1
β β βββ index.html
β βββ 2
β β βββ index.html
β βββ about-me
β β βββ index.html
β βββ index.html
β βββ page
β βββ 1
β β βββ index.html
β βββ 2
β βββ index.html
βββ robots.txt
βββ sitemap.xml
βββ tags
βββ ci-cd
β βββ index.html
βββ codeship
β βββ index.html
βββ digitalocean
β βββ index.html
βββ hugo
β βββ index.html
βββ index.html
In the tags
and categories
taxonomy pages, I am using {{ range .Data.Pages }}
to iterate through associated posts. However, this again does not produce any content for the author
.
My theme layout directory includes a taxonomy folder:
./themes/ashleybyeuk/layouts/taxonomy/
βββ author.html
βββ author.terms.html
βββ category.html
βββ category.terms.html
βββ tag.html
βββ tag.terms.html
What is causing this and how should I fix it?