Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
🔄 synced local 'overrides/' with remote 'overrides/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Nov 25, 2023
1 parent 8cf4068 commit 75875d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions overrides/partials/css_class.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{% if page.meta %}
{% if page.meta["cssClass"] and page.meta["cssClass"]|length > 0 %}
{% if page.meta["cssClass"] is iterable %}
{% for cssClass in page.meta["cssClass"] %}
{% if page.meta["cssclasses"] and page.meta["cssclasses"]|length > 0 %}
{% if page.meta["cssclasses"] is iterable %}
{% for cssclasses in page.meta["cssclasses"] %}
<script>
document.body.classList.add('{{ cssClass }}');
console.log('Added class {{ cssClass }} to body on page {{ page.title }}');
document.body.classList.add('{{ cssclasses }}');
console.log('Added class {{ cssclasses }} to body on page {{ page.title }}');
</script>
{% endfor %}
{% else %}
<script>
document.body.classList.add('{{ page.meta["cssClass"] }}');
console.log('Added class {{ page.meta["cssClass"] }} to body on page {{ page.title }}');
document.body.classList.add('{{ page.meta["cssclasses"] }}');
console.log('Added class {{ page.meta["cssclasses"] }} to body on page {{ page.title }}');
</script>
{% endif %}
{% endif %}
Expand Down

0 comments on commit 75875d8

Please sign in to comment.