4 ms·
Hey krrishd, if you’re using a variable as your title, Harp will use the correct one in the correct context: https://gist.github.com/kennethormandy/6834709 http
by kennethormandy 13y ago
Hey krrishd, if you’re using a variable as your title, Harp will use the correct one in the correct context: https://gist.github.com/kennethormandy/6834709 https://gist.github.com/kennethormandy/6834709
- krrishd 13y agoThanks :) Makes much more sense now. Also, is there any way to pass metadata to a markdown file?
- kennethormandy 13y agoYou’re welcome! It’s not directly possible, as technically Markdown isn’t a templating language. It’s explained a little here: http://harpjs.com/docs/development/partial#markdown http://harpjs.com/docs/development/partial#markdown Depending on what you are trying to do, you could have your Markdown files “wrapped” in a partial, and do whatever you need to with the metadata there.