#+SETUPFILE: ../../../template/level-2.org
#+TITLE: third
#+DATE: <2019-11-15 Fri>
#+AUTHOR: vaeringjar
#+EMAIL: vaeringjar@land
#+DESCRIPTION: Testing out orgmode.
#+KEYWORDS: foo bar glux

I decided to migrate away from Pelican. It has served me well these
last few years, but I have joined a new holy quest in the church of
emacs using orgmode. XD

I used the following to convert all my .md file ext to .org.  And then
prepend the setupfile to all norm blog posts. But I don't plan on
updating everything. I should have used pandoc, but I have other
things I would rather do right now.
#+BEGIN_SRC bash
find . -name '*.md' -exec sh -c 'mv "$0" "${0%.md}.org"' {} \;
grep -rl 'Authors: ' ./src/archive | sed -i "1s;^;#+SETUPFILE: ../../../template/level-2.org\n;"
#+END_SRC

I ran into some minor problems with ox-rss and webfeeder, so I decided
to just build my own RSS feed generator, WIP.

I might want to use pandoc to automatically convert all the markdown
files. I have the above, but it only converts the file ext. Though,
even something automatic will need help with the templates.

* References

- [[https://code.orgmode.org/bzg/org-mode/src/master/contrib/lisp/ox-rss.el][ox-rss]]
- [[https://github.com/DiegoVicen/org-css][org-css: An org-mode compatible style sheet]]
- [[https://github.com/fniessen/org-html-themes][How to export Org mode files into awesome HTML in 2 minutes]]
- [[https://gitlab.com/ambrevar/emacs-webfeeder/][Emacs Webfeeder]]
- [[https://justin.abrah.ms/emacs/orgmode_static_site_generator.html][Writing a static site generator using org-mode.]]
- [[https://orgmode.org/manual/Exporting.html#Exporting][The Org Manual: Exporting]]
- [[https://orgmode.org/manual/Handling-links.html#Handling-links][The Org Manual: Handling links]]
- [[https://orgmode.org/manual/Publishing.html#Publishing][The Org Manual: Publishing]]
- [[https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html][Publishing Org-mode files to HTML]]
- [[https://stackoverflow.com/questions/15134911/in-org-mode-how-do-i-remove-the-validate-xhtml-1-0-message-from-html-export][In org-mode, how do I remove the “Validate XHTML 1.0” message from HTML export?]]
- [[https://www.brautaset.org/articles/2018/org-mode-rss.html][Creating an RSS feed with Org mode]]
- [[https://www.emacswiki.org/emacs/BatchMode][EmacsWiki: Batch Mode]]
- [[https://www.emacswiki.org/emacs/org-publish.el][EmacsWiki: org-publish.el]]
- [[https://emacs.stackexchange.com/questions/5465/how-to-migrate-markdown-files-to-emacs-org-mode-format][How to convert from markdown to orgmode.]]

* TODO todo

- subdirectory styles/level-n config
- rss feed with either ox-rss or webfeeder
- navigation
- reset cache

* Feature Experimentation

@@html:<b>@@bold text@@html:</b>@@
#+HTML: Literal HTML code for export <b>foo</b>
#+BEGIN_EXPORT html
<pre>
>=)
</pre>
#+END_EXPORT

#+BEGIN_main
I have many ideas. Yay and all.
#+END_main

#+BEGIN_aside
- See [[file:other.org][other]].
- See also [[file:sub/index.org][subindex]].
- See the [[file:sitemap.org][sitemap]].
#+END_aside

#+BEGIN_SRC bash
echo "foo"
#+END_SRC

#+CAPTION: My main avatar.
#+NAME:   fig:Avatar
[[../../static/images/avatar.png]]
