zwbetz-gh / cupper-hugo-theme

An accessibility-friendly Hugo theme, ported from the original Cupper project.
https://cupper-hugo-theme.netlify.app/
MIT License
301 stars 190 forks source link

'Tags', 'Publish date' and 'toc' in blog article doesn't work. #25

Closed DDQ233 closed 4 years ago

DDQ233 commented 4 years ago

I very love this theme. Thank you. I find an issue that I can not handle it, so I have to ask you to help me solve this problem.

I used cupper theme and run the 'exampleSite' , then I find every blog article without 'Tags', 'Publish date' and 'toc' doesn't work.

For example :

Your demo :

🔢 This is title
Publish date: Sep 28, 2014
Tags: hugo theme command-line

Table of contents

Main body

My blog :

🔢 This is title

Main body

Your demo result My blog result

zwbetz-gh commented 4 years ago

The theme is expecting your blog posts to be under the content/post directory. I see you are using directory content/notes instead. That is fine.

To fix it, you will need to rename the theme's layout directory from layouts/post/ to layouts/notes/

DDQ233 commented 4 years ago

I successfully fixed the issue. Thank you so much !

bravegrape commented 3 years ago

Also a big fan of this theme and this issue helped me fix my problem too 🎉
Thank you both 🙌