pelican_dynamic icon indicating copy to clipboard operation
pelican_dynamic copied to clipboard

Pages example

Open jorgehatccrma opened this issue 9 years ago • 0 comments

This is not an issue, but a suggestion. Your plguin not only supports dynamic CSS/JS for articles, but also for pages, as I discovered. You might like to add that possibility to your README examples:

{% if page %}
    {% if page.styles %}
        {% for style in page.styles %}
{{ style }}
        {% endfor %}
    {% endif %}
{% endif %}

and the body tags:

{% if page %}
    {% if page.scripts %}
        {% for script in page.scripts %}
{{ script }}
        {% endfor %}
    {% endif %}
{% endif %}

jorgehatccrma avatar Apr 26 '15 04:04 jorgehatccrma