pelican_dynamic
pelican_dynamic copied to clipboard
Pages example
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 %}