Port the site to GNU Emacs + Org mode (using org-publish)
[~bandali/bndl.org] / source / macros.org
diff --git a/source/macros.org b/source/macros.org
new file mode 100644 (file)
index 0000000..7c88c3c
--- /dev/null
@@ -0,0 +1,11 @@
+#+macro: abbr @@html:<abbr>$1</abbr>@@
+#+macro: span @@html:<span class="$1">$2</span>@@
+#+macro: kbd @@html:<kbd>$1</kbd>@@
+#+macro: h1title @@html:<header><h1>@@{{{title}}}@@html:</h1></header>@@
+#+macro: light @@html:<label class="light-off-button-inline" for="light-off"></label>@@
+#+macro: ccbysa @@html:<a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International @@{{{ccbysa-img}}}@@html:</a>@@
+#+macro: ccbysa-img @@html:<img alt="Creative Commons Licence" style="border-width:0" src="//i.creativecommons.org/l/by-sa/4.0/80x15.png"/>@@
+#+macro: pub-desc @@html:<span class="pub-desc">@@$1@@html:</span>@@
+
+#+html_head: <link rel="stylesheet" type="text/css" href="/style.css"/>
+#+html_head: <script type="text/javascript" src="/global.js"></script>