From b0df6276fbccb3c6cbe303aee05c46de71ed40f8 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 29 May 2019 16:52:13 +0200
Subject: [PATCH] [web] Added preload parameter to asciinema shortcode.

---
 web/content/docs/devguide/getting-started/build.pandoc | 2 +-
 web/layouts/shortcodes/asciinema.html                  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/content/docs/devguide/getting-started/build.pandoc b/web/content/docs/devguide/getting-started/build.pandoc
index e865b6b7de9..86036af8ea0 100644
--- a/web/content/docs/devguide/getting-started/build.pandoc
+++ b/web/content/docs/devguide/getting-started/build.pandoc
@@ -43,7 +43,7 @@ To speedup the compilation process append the number of cores of your cpu to the
 $ make -j 8
 ```
 
-{{< asciinema url="https://asciinema.org/a/249005" >}}
+{{< asciinema url="https://asciinema.org/a/249005" preload="1" >}}
 
 ### Option: Eclipse
 
diff --git a/web/layouts/shortcodes/asciinema.html b/web/layouts/shortcodes/asciinema.html
index 07834abbfb9..21f9186a05f 100644
--- a/web/layouts/shortcodes/asciinema.html
+++ b/web/layouts/shortcodes/asciinema.html
@@ -6,6 +6,7 @@
     src='{{ .Get "url" }}.js'
     async
     {{ with .Get "autoplay"}} data-autoplay="{{.}}"{{ end }}
+    {{ with .Get "preload"}} data-preload="{{.}}"{{ end }}
     {{ with .Get "loop"}} data-loop="{{.}}"{{ end }}
     {{ with .Get "speed"}} data-speed="{{.}}"{{ end }}
     {{ with .Get "cols"}} data-cols="{{.}}"{{ end }}
-- 
GitLab