From 15e723f568f163b9e82d1d2228c04e2aa7c80092 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 1 Dec 2020 14:31:24 -0500 Subject: Add code for adding video links --- 2020/submissions.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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: ** 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 ".*?\\([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 -- cgit v1.2.3