diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/page.html | 2 | ||||
| -rw-r--r-- | templates/shortcodes/note.html | 30 | ||||
| -rw-r--r-- | templates/shortcodes/streamable.html | 3 | ||||
| -rw-r--r-- | templates/shortcodes/vimeo.html | 3 | ||||
| -rw-r--r-- | templates/shortcodes/vm.html | 3 | ||||
| -rw-r--r-- | templates/shortcodes/youtube.html | 3 | ||||
| -rw-r--r-- | templates/shortcodes/yt.html | 3 |
7 files changed, 10 insertions, 37 deletions
diff --git a/templates/page.html b/templates/page.html index ba2b451..c92e49c 100644 --- a/templates/page.html +++ b/templates/page.html @@ -55,7 +55,7 @@ {%- set toc = page.toc %} {%- endif %} {%- if toc %} - <div class="toc" aria-hidden="true"> + <div class="toc"> <div class="toc-sticky"> <h3>{%- if lang != config.default_language %}{{ trans(key="Index" | safe, lang=lang) }}{% else %}Index{% endif %}</h3> {%- for h in toc %} diff --git a/templates/shortcodes/note.html b/templates/shortcodes/note.html deleted file mode 100644 index b2420e9..0000000 --- a/templates/shortcodes/note.html +++ /dev/null @@ -1,30 +0,0 @@ -{# note shortcode with icon and border - - type: ok / info / warning / error / neutral / other - display: block / icon / both - size: small / medium / large - markdown: true / false - - example: - - {% note(type="ok", display="block", size="small" markdown=true) %} - *Sample* "ok" note. With display "block" - And **markdown** content. - {% end %} -#} - -{# define defaults #} -{% if not type %}{% set type="neutral" %}{% endif %} -{% if not display %}{% set display="block" %}{% endif %} -{% if not size %}{% set size="small" %}{% endif %} -{% if not markdown %}{% set markdown=true %}{% endif %} - -<div class="note -{%- if display == 'icon' %} note-icon note-icon-{{size}} note-icon-{{type}} -{%- elif display == 'block' %} note-block note-{{type}} -{%- elif display == 'both' %} note-icon note-icon-{{size}} note-icon-{{type}} note-block note-{{type}} -{%- endif %}"> -{% if markdown %}{{ body | markdown | safe }} -{% else %}{{ body | safe }} -{% endif %} -</div> diff --git a/templates/shortcodes/streamable.html b/templates/shortcodes/streamable.html new file mode 100644 index 0000000..7df8e9e --- /dev/null +++ b/templates/shortcodes/streamable.html @@ -0,0 +1,3 @@ +<div class="yv{% if class %} {{class}}{% endif %}"> + <iframe src="https://www.streamable.com/e/{{id}}" title="{{title | default(value='Streamable') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> +</div> diff --git a/templates/shortcodes/vimeo.html b/templates/shortcodes/vimeo.html new file mode 100644 index 0000000..0fe3129 --- /dev/null +++ b/templates/shortcodes/vimeo.html @@ -0,0 +1,3 @@ +<div class="yv{% if class %} {{class}}{% endif %}"> + <iframe src="https://player.vimeo.com/video/{{id}}?embedded=true{% if autoplay %}&autoplay=1{% endif %}{% if loop %}&loop=1{% endif %}{% if noautopause %}&autopause=0{% endif %}{% if not cookie %}&dnt=1{% endif %}" title="{{title | default(value='Vimeo') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> +</div> diff --git a/templates/shortcodes/vm.html b/templates/shortcodes/vm.html deleted file mode 100644 index 2dd60e8..0000000 --- a/templates/shortcodes/vm.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class="yv{% if class %} {{class}}{% endif %}"> - <iframe src="https://player.vimeo.com/video/{{id}}?embedded=true{% if autoplay %}&autoplay=1{% endif %}{% if loop %}&loop=1{% endif %}{% if noautopause %}&autopause=0{% endif %}{% if not cookie %}&dnt=1{% endif %}" title="{{title | default(value='Vimeo') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> -</div> diff --git a/templates/shortcodes/youtube.html b/templates/shortcodes/youtube.html new file mode 100644 index 0000000..d07b91b --- /dev/null +++ b/templates/shortcodes/youtube.html @@ -0,0 +1,3 @@ +<div class="yv{% if class %} {{class}}{% endif %}"> + <iframe src="https://www.youtube{% if not cookie %}-nocookie{% endif %}.com/embed/{{id}}{% if playlist %}?list={{playlist}}{% endif %}{% if autoplay %}?autoplay=1{% endif %}" title="{{title | default(value='Youtube') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> +</div> diff --git a/templates/shortcodes/yt.html b/templates/shortcodes/yt.html deleted file mode 100644 index 9fb99dd..0000000 --- a/templates/shortcodes/yt.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class="yv{% if class %} {{class}}{% endif %}"> - <iframe src="https://www.youtube{% if not cookie %}-nocookie{% endif %}.com/embed/{{id}}{% if playlist %}?list={{playlist}}{% endif %}{% if autoplay %}?autoplay=1{% endif %}" title="{{title | default(value='Youtube') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> -</div> |
