Clean up `_plugins/categories.rb` to reduce duplication of code
This shouldn't be the same aside from some variables - let's make this generic such that we can simply pass in a page type i.e. tag
, category
This shouldn't be the same aside from some variables - let's make this generic such that we can simply pass in a page type i.e. tag
, category