~metalune/simplynews_web

52f8a25f04208dba568cba5b7a13b7cf0350ba75 — bopol 4 days ago ca8079c
Use optional width and height for iframe

fixes #6 https://todo.sr.ht/~metalune/SimplyNews/6
1 files changed, 10 insertions(+), 1 deletions(-)

M templates/site/page.html
M templates/site/page.html => templates/site/page.html +10 -1
@@ 41,7 41,16 @@
                <source src="{{ el.src }}">
            </video>
        {% elif el.type == "iframe" %}
            <iframe allowfullscreen="allowfullscreen" frameborder="0" width="100%" src="{{ el.src }}"></iframe>
            <iframe allowfullscreen="allowfullscreen" frameborder="0"
            {% if el.width %}
                width="{{ el.width }}"
            {% else %}
                width="100%"
            {% endif %}
            {% if el.height %}
                height="{{ el.height }}"
            {% endif %}
            src="{{ el.src }}"></iframe>
        {% elif el.type == "unsorted list" %}
            <ul>
                {% for entry in el.entries %}