aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes
diff options
context:
space:
mode:
authorsptaule <lecas83@gmail.com>2022-01-24 18:36:50 +0100
committersptaule <lecas83@gmail.com>2022-01-24 18:36:50 +0100
commit336fd3f7566c7872c17b30f7cd150e1d16899205 (patch)
tree2761022d83f35c3ea839d00eb63dfb7f0a91a713 /templates/shortcodes
downloadgaragehq.deuxfleurs.fr-336fd3f7566c7872c17b30f7cd150e1d16899205.tar.gz
garagehq.deuxfleurs.fr-336fd3f7566c7872c17b30f7cd150e1d16899205.zip
First commit
Diffstat (limited to 'templates/shortcodes')
-rwxr-xr-xtemplates/shortcodes/chart.html1
-rwxr-xr-xtemplates/shortcodes/galleria.html1
-rwxr-xr-xtemplates/shortcodes/katex.html1
-rwxr-xr-xtemplates/shortcodes/mapbox.html11
-rwxr-xr-xtemplates/shortcodes/mermaid.html1
-rwxr-xr-xtemplates/shortcodes/vimeo.html9
-rwxr-xr-xtemplates/shortcodes/youtube.html9
7 files changed, 33 insertions, 0 deletions
diff --git a/templates/shortcodes/chart.html b/templates/shortcodes/chart.html
new file mode 100755
index 0000000..539aeea
--- /dev/null
+++ b/templates/shortcodes/chart.html
@@ -0,0 +1 @@
+<svg class="chart">{{body | safe}}</svg>
diff --git a/templates/shortcodes/galleria.html b/templates/shortcodes/galleria.html
new file mode 100755
index 0000000..0e23cd3
--- /dev/null
+++ b/templates/shortcodes/galleria.html
@@ -0,0 +1 @@
+<div class="galleria mb-6" style="height: 450px">{{body | safe}}</div> \ No newline at end of file
diff --git a/templates/shortcodes/katex.html b/templates/shortcodes/katex.html
new file mode 100755
index 0000000..cac8e97
--- /dev/null
+++ b/templates/shortcodes/katex.html
@@ -0,0 +1 @@
+<script type="math/tex{% if block %};mode=display{% endif %}">{{body}}</script>
diff --git a/templates/shortcodes/mapbox.html b/templates/shortcodes/mapbox.html
new file mode 100755
index 0000000..13d3488
--- /dev/null
+++ b/templates/shortcodes/mapbox.html
@@ -0,0 +1,11 @@
+<div class="map mb-6" style='height: 450px;'>
+ <div class="mapbox-access-token">
+ {{config.extra.mapbox.access_token}}
+ </div>
+ <div class="mapbox-zoom">
+ {{zoom}}
+ </div>
+ <div class="mapbox-geojson">
+ {{body}}
+ </div>
+</div>
diff --git a/templates/shortcodes/mermaid.html b/templates/shortcodes/mermaid.html
new file mode 100755
index 0000000..18395a6
--- /dev/null
+++ b/templates/shortcodes/mermaid.html
@@ -0,0 +1 @@
+<div class="mermaid is-flex is-justify-content-center is-align-items-center">{{body}}</div>
diff --git a/templates/shortcodes/vimeo.html b/templates/shortcodes/vimeo.html
new file mode 100755
index 0000000..79f92bb
--- /dev/null
+++ b/templates/shortcodes/vimeo.html
@@ -0,0 +1,9 @@
+<div class="vimeo is-flex is-justify-content-center is-align-items-center">
+ <iframe
+ width="848" height="510"
+ title="vimeo-player"
+ src="https://player.vimeo.com/video/{{id}}"
+ frameborder="0"
+ allowfullscreen>
+ </iframe>
+</div> \ No newline at end of file
diff --git a/templates/shortcodes/youtube.html b/templates/shortcodes/youtube.html
new file mode 100755
index 0000000..a6d8ad8
--- /dev/null
+++ b/templates/shortcodes/youtube.html
@@ -0,0 +1,9 @@
+<div class="youtube is-flex is-justify-content-center is-align-items-center">
+ <iframe
+ width="848" height="510"
+ src="https://www.youtube.com/embed/{{id}}"
+ frameborder="0"
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
+ allowfullscreen>
+ </iframe>
+</div> \ No newline at end of file