diff options
author | Sacha Chua <sacha@sachachua.com> | 2020-12-01 14:31:24 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2020-12-01 14:31:24 -0500 |
commit | 15e723f568f163b9e82d1d2228c04e2aa7c80092 (patch) | |
tree | 8afc942fc7046353b5c34c338e1e42da496c14f3 | |
parent | e688d1ae0c33baf70dc8a5e486d33e1a02cf2ea7 (diff) | |
download | emacsconf-wiki-15e723f568f163b9e82d1d2228c04e2aa7c80092.tar.xz emacsconf-wiki-15e723f568f163b9e82d1d2228c04e2aa7c80092.zip |
Add code for adding video links
Diffstat (limited to '')
-rw-r--r-- | 2020/submissions.org | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2020/submissions.org b/2020/submissions.org index cc6af7e3..9479941c 100644 --- a/2020/submissions.org +++ b/2020/submissions.org @@ -3315,7 +3315,25 @@ Talk page: <https://emacsconf.org/2020/schedule/%s> ** Copy the pad +** Yasnippet for adding video links to the individual talk page +#+begin_example +# -*- mode: snippet -*- +# name: vid +# key: vid +# -- +[[!template id=vid src="`(current-kill 0)`"]] +[Download $2.webm video, 720p, $1](`(current-kill 0)`) +#+end_example + +or with the source code from the directory listing: + +#+begin_example +(while (re-search-forward "<a href=\"\\(.*\\)?\">.*?\\([0-9]+[MB]\\)" nil t) + (replace-match "[[!template id=vid src=\"https://mirror.csclub.uwaterloo.ca/emacsconf/2020/\\1\"]] +[Download .webm video, 720p, \\2B](https://mirror.csclub.uwaterloo.ca/emacsconf/2020/\\1) +")) +#+end_example * COMMENT Possible rough flow suggested by Sacha |