aboutsummaryrefslogtreecommitdiffstats
path: root/site-src/plugins/orgmode/macros.org
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-05-03 03:06:50 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-05-03 12:09:27 +0300
commit3a3424774944a421e1b93cbaf533a3500a4d613c (patch)
tree8780bec2bbacde34cf861b7cd4dc11f6f07e813f /site-src/plugins/orgmode/macros.org
parentac8a32e855b078e137fe5de4c2bbf9628c004532 (diff)
downloadck-3a3424774944a421e1b93cbaf533a3500a4d613c.tar.gz
ck-3a3424774944a421e1b93cbaf533a3500a4d613c.tar.bz2
ck-3a3424774944a421e1b93cbaf533a3500a4d613c.zip
add site and .gitignore
Diffstat (limited to 'site-src/plugins/orgmode/macros.org')
-rw-r--r--site-src/plugins/orgmode/macros.org19
1 files changed, 19 insertions, 0 deletions
diff --git a/site-src/plugins/orgmode/macros.org b/site-src/plugins/orgmode/macros.org
new file mode 100644
index 0000000..c90be7f
--- /dev/null
+++ b/site-src/plugins/orgmode/macros.org
@@ -0,0 +1,19 @@
+# Macros for embedding media into org-mode posts.
+
+#+MACRO: TEASER_END #+HTML: <!-- TEASER_END -->
+{{{TEASER_END}}}
+
+#+MACRO: gist #+HTML: <script src="https://gist.github.com/$1.js"></script>
+{{{gist(2395294)}}}
+
+#+MACRO: soundcloud #+HTML: <iframe width="$3" height="$2" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/$1"> </iframe>
+{{{soundcloud(31824842,240,320)}}}
+
+#+MACRO: soundcloud_playlist #+HTML: <iframe width="$3" height="$2" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/playlists/$1"> </iframe>
+{{{soundcloud_playlist(694081,800,400)}}}
+
+#+MACRO: vimeo #+HTML: <iframe src="https://player.vimeo.com/video/$1" width="$3" height="$2" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen> </iframe>
+{{{vimeo(85360039,240,320)}}}
+
+#+MACRO: youtube #+HTML: <iframe width="$3" height="$2" src="https://www.youtube.com/embed/$1?rel=0&amp;hd=1&amp;wmode=transparent"></iframe>
+{{{youtube(8N_tupPBtWQ,240,320)}}}