0.0.9 • Published 8 years ago

roots-wordpress-tags v0.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Roots Wordpress With Tag Views

This is an npm module that is an alternative to roots-wordpress. This module will render single page views for posts, AND tags. After the post data is recieved from wordpress, a tag_tree is generated. This tree is used to create each tag single view, which is passed a tag object containing each post that has that tag. You can use Jade display the tag object as you wish.

This code mostly belongs to Carrot. I forked the repo and bent it round a bit.

Thanks to Carrot for making a handy extension in the first place!

Installation

  • make sure you are in your roots project directory
  • npm install roots-wordpress-tags --save
  • modify your app.coffee file to include the extension, as such

    wordpress = require('roots-wordpress-tags')
    
    module.exports =
      extensions: [
        wordpress
          site: 'my-wordpress-site.com'
          post_types:
            post: {template: 'views/_single_post.jade', tag_tree: {template: 'views/_single_tag.jade'}}
      ]
0.0.9

8 years ago

0.0.8

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago