Skip to content
Browse files

Upgraded grunt-wordpress 0.0.3 and added categories. Still need to ge…

…nerate dist/taxonomies.json to support sub-categories (including descriptions and slugs)
  • Loading branch information...
1 parent 18e66e6 commit 7fb413717324659e13e51e55e25021f1ff448c51 @rdworth rdworth committed May 1, 2012
Showing with 8 additions and 5 deletions.
  1. +1 −3 config-sample.json
  2. +6 −1 entries2html.xsl
  3. +1 −1 package.json
View
4 config-sample.json
@@ -1,7 +1,5 @@
{
- "host": "wordpress.dev",
- "port": 80,
- "path": "/xmlrpc.php",
+ "url": "wordpress.dev",
"username": "admin",
"password": "admin"
}
View
7 entries2html.xsl
@@ -24,7 +24,12 @@
<xsl:template match="/">
<script>
{
- "title": "<xsl:value-of select="//entry/@name" />"
+ "title": "<xsl:value-of select="//entry/@name" />",
+ "termNames": {
+ "category": [
+ <xsl:for-each select="//entry/category"><xsl:if test="position() &gt; 1"><xsl:text>,</xsl:text></xsl:if>"<xsl:value-of select="@name"/>"</xsl:for-each>
+ ]
+ }
}
</script>
<xsl:if test="count(//entry) &gt; 1">
View
2 package.json
@@ -22,7 +22,7 @@
],
"dependencies": {
"grunt": "0.3.x",
- "grunt-wordpress": "0.0.2"
+ "grunt-wordpress": "0.0.3"
},
"devDependencies": {},
"keywords": []

0 comments on commit 7fb4137

Please sign in to comment.
Something went wrong with that request. Please try again.