preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

Fix blog index/tag pages lacking titles #549

Open preaction opened 6 years ago

preaction commented 6 years ago

For metadata purposes, it's important for every page to have a descriptive title. Every page in the blog index should have a title, and every tag page should have a title. The titles should look as follows:

To achieve this we will need multiple things:

  1. All applications will need a title attribute (add a title attribute to Statocles::App role)
  2. The paginator (Statocles::Page::List->paginate) will need to set titles for all the pages it generates. It should accept an initial title for the first (index) page, and then add "Page #" to all subsequent pages