Skip to content

Commit

Permalink
Fixes #148.
Browse files Browse the repository at this point in the history
Overrode rootpath when rendering tag files.
  • Loading branch information
jonbullock committed Nov 6, 2014
1 parent 8343827 commit 75d8144
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/jbake/app/Renderer.java
Expand Up @@ -229,7 +229,9 @@ public void renderTags(Set<String> tags, String tagPath) throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
model.put("renderer", renderingEngine);
model.put("tag", tag);
model.put("content", buildSimpleModel("tag"));
Map<String, Object> map = buildSimpleModel("tag");
map.put("rootpath", "../");
model.put("content", map);

tag = tag.trim().replace(" ", "-");
File outputFile = new File(destination.getPath() + File.separator + tagPath + File.separator + tag + config.getString(Keys.OUTPUT_EXTENSION));
Expand Down

0 comments on commit 75d8144

Please sign in to comment.