What files are expected in a template?
As the title says, I've looked at some of the templates but they have different number of files and I didn't see anything about this in the documentation (but I'm sure that I've missed something).
Templates can have as few or as many files as you, the template creator, likes. A minimal template would likely contain these two files:
- entry.html which is used to render a post or page in full
- entries.html which is used to render your site's index page
Other template files which have special meanings include:
- error.html which is used to render your site's 404 or other error pages
- tagged.html which is used to render a list of posts with a given tag
But please note none of these files are required strictly – your template will work without them. I need to add this to the developer documentation, thank you for a good question. Please let me know if you have any questions about this or anything else
Answered 2 years ago · Edit answer