Closed zalun closed 10 years ago
The official site of the module uses partial importing. The code could be found here https://github.com/krasimir/techy/tree/gh-pages However this is an example of injecting HTML and not Markdown. At the moment the Markdown is processed in the form of pages. Let me know if you need to load partials in HTML and I'll think supporting it.
P.S.
In https://github.com/krasimir/techy/blob/gh-pages/index.md for example the footer is added via <% template('footer') %>
.
Yes - I've seen this in the docs, but that's for very static data. I'd like to use techy for the blog - sidebar would be edited every time I'd add a new post.
I understand what you mean now. Let me prepare an example. I'm thinking for a little update as well.
Thanks :)
The tutorial is published: http://krasimirtsonev.com/blog/article/No-back-end-blog-solution-with-Nodejs-and-Markdown
Here is the final result: http://krasimir.github.io/techy-simple-blog/
And its source code: https://github.com/krasimir/techy-simple-blog
WOW - now it's a blog machine! :)
Actually that was the main idea behind it :)
Do you have a tutorial or at least an example of a simple site where some .md file is injected (as a sidebar/footer)?