diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 400f20c..f01c000 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,3 +55,10 @@ repos: types-cachetools, types-python-dateutil, ] + + - repo: https://github.com/rtts/djhtml + rev: v1.5.2 + hooks: + - id: djhtml + - id: djcss + - id: djjs diff --git a/docs/_templates/sidebar/brand.html b/docs/_templates/sidebar/brand.html index 38fd75f..9869d52 100644 --- a/docs/_templates/sidebar/brand.html +++ b/docs/_templates/sidebar/brand.html @@ -1,18 +1,18 @@ {% block brand_content %} - {%- if logo_url %} - + - {%- endif %} - {%- if theme_light_logo and theme_dark_logo %} - - {%- endif %} + {%- if logo_url %} + + {%- endif %} + {%- if theme_light_logo and theme_dark_logo %} + + {%- endif %} {% endblock brand_content %} -
{% if not event.collapsed %} - {% include "activities/_post.html" with post=event.subject_post %} + {% include "activities/_post.html" with post=event.subject_post %} {% endif %} {% elif event.type == "mentioned" %} {% if not event.collapsed %} - {% include "activities/_post.html" with post=event.subject_post %} + {% include "activities/_post.html" with post=event.subject_post %} {% endif %} {% elif event.type == "boosted" %} {% if not event.collapsed %} - {% include "activities/_post.html" with post=event.subject_post event=event %} + {% include "activities/_post.html" with post=event.subject_post event=event %} {% endif %} {% else %} Unknown event type {{event.type}} diff --git a/templates/activities/_hashtag.html b/templates/activities/_hashtag.html index 19233e5..02d107a 100644 --- a/templates/activities/_hashtag.html +++ b/templates/activities/_hashtag.html @@ -4,8 +4,8 @@ {{ hashtag.display_name }} {% if not hide_stats %} - - Post count: {{ hashtag.stats.total }} - + + Post count: {{ hashtag.stats.total }} + {% endif %} diff --git a/templates/activities/_identity.html b/templates/activities/_identity.html index 386d5ee..38a6f7a 100644 --- a/templates/activities/_identity.html +++ b/templates/activities/_identity.html @@ -4,9 +4,9 @@ diff --git a/templates/activities/_image_upload.html b/templates/activities/_image_upload.html index 974884a..c812c44 100644 --- a/templates/activities/_image_upload.html +++ b/templates/activities/_image_upload.html @@ -1,10 +1,10 @@