ClassicPress / site-www

Files for the site at www.classicpress.net
Other
2 stars 2 forks source link

Removes duplicate blog category headers (SEO) #13

Closed timbocode closed 4 years ago

timbocode commented 4 years ago

All blog category pages currently have the exact same h1 title of ClassicPress Blog.

For examples, see:

https://www.classicpress.net/blog/category/classicpress-values/ https://www.classicpress.net/blog/category/featured-post/

At the top of the page, you will just see ClassicPress Blog for each page.

This is not good for SEO and is meaningless to the visitor.

This PR simply appends the category name to the title. For example:

ClassicPress Blog: ClassicPress Values ClassicPress Blog: Featured Post

The reason for the use of ucwords is in case any categories are written in lowercase.

timbocode commented 4 years ago

Thanks for fixing the indentation. Need to get myself a decent Linux editor.

nylen commented 4 years ago

Thanks for the PR. Making PRs from your master branch might cause you some minor issues in the future but this looks good.