krasimir / techy

A flat file CMS based on Gulp and AbsurdJS
http://krasimir.github.io/techy
MIT License
250 stars 23 forks source link

Step by step tutorial #9

Closed zalun closed 10 years ago

zalun commented 10 years ago

Do you have a tutorial or at least an example of a simple site where some .md file is injected (as a sidebar/footer)?

krasimir commented 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') %>.

zalun commented 10 years ago

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.

krasimir commented 10 years ago

I understand what you mean now. Let me prepare an example. I'm thinking for a little update as well.

zalun commented 10 years ago

Thanks :)

krasimir commented 10 years ago

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

zalun commented 10 years ago

WOW - now it's a blog machine! :)

krasimir commented 10 years ago

Actually that was the main idea behind it :)