Last active
August 29, 2015 13:57
-
-
Save kylerush/9612647 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dist/ | |
| blog/ | |
| post1.html | |
| post2.html | |
| post3.html | |
| index.html | |
| src/ | |
| content/ | |
| blog/ | |
| post1.hbs | |
| post2.hbs | |
| post3.hbs | |
| templates/ | |
| default.hbs | |
| post.hbs | |
| pages/ | |
| index.hbs | |
| about.hbs |
Author
No problem, let me put an example together.
@kylerush, if you have any questions about how I'm doing thing in the example project, feel free to ping me.
I'm using a custom {{resolve}} helper to calculate urls for links, it's great for the current setup because it automatically figures everything out, but it won't work with multiple targets because of limitations with grunt. There are other solutions that are more bullet proof but require more code in the examples.
Hope this helps!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need a for loop in src/pages/index.hbs that iterates through all the files (blog posts) in src/content/blog and outputs to dist/index.html. How do I do this in the Gruntfile?