News for hackers. Stuff that matters.
Re:Laverna – A Markdown note-taking app focused on privacy by mongol on Sunday August 20, 2017 @01:38PM (#15059341)
Thanks! How did you edit that? As shown? I assumed it included many INCLUDEs?
Re:Laverna – A Markdown note-taking app focused on privacy by kaushalmodi on Sunday August 20, 2017 @07:23PM (#15060755)
That, I have edited as shown (except the snippet outputs). That was an example of using Org Babel. Note that the #+RESULT blocks in that file are all auto-generated; none hand-written.

That post does not have any #+INCLUDE because all the code snippets are trivial. I would use #+INCLUDE in posts where I have a code file, and I want to talk about only few lines from that.

I have different examples of #+INCLUDE in my examples file[1] for my Org to Markdown for Hugo exporter -- ox-hugo[2]. There I use the inbuilt INCLUDE feature where I choose to include only the specified Org sub-tree (using the sub-tree CUSTOM_ID). The above referenced post on Nim/Python is converted to Markdown for Hugo using the same exporter.

[1]: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master... [2]: https://github.com/kaushalmodi/ox-hugo