Add asciinema support

This commit is contained in:
Jade Lovelace 2023-04-02 18:21:49 -07:00
parent 981b8ad067
commit 866fe408e4
9 changed files with 2930 additions and 12 deletions

View file

@ -13,6 +13,11 @@
<meta property="og:description" content="{{ config.description }}" />
{% endif %}
{% if page.extra.use_asciinema %}
<script id="asciinema-player" defer type="text/javascript" src="{{ get_url(path='js/asciinema-player.min.js', cachebust=true) | safe }}"></script>
<link type="text/css" rel="stylesheet" href="{{ get_url(path='css/asciinema-player.css', cachebust=true) | safe }}">
{% endif %}
{% endblock pagemeta %}
{% block content %}
@ -32,7 +37,7 @@
{{ page.content | safe }}
{% if config.extra.debug and config.mode == "Serve" %}
{% if config.extra.debug %}
<pre><code>{{ __tera_context | escape | safe }}</code></pre>
{% endif %}