diff options
Diffstat (limited to 'templates/shortcodes')
-rwxr-xr-x | templates/shortcodes/chart.html | 1 | ||||
-rwxr-xr-x | templates/shortcodes/galleria.html | 1 | ||||
-rwxr-xr-x | templates/shortcodes/katex.html | 1 | ||||
-rwxr-xr-x | templates/shortcodes/mapbox.html | 11 | ||||
-rwxr-xr-x | templates/shortcodes/mermaid.html | 1 | ||||
-rwxr-xr-x | templates/shortcodes/vimeo.html | 9 | ||||
-rwxr-xr-x | templates/shortcodes/youtube.html | 9 |
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 |