Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#255)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and nabobalis authored Oct 6, 2023
1 parent cc8b951 commit 7b95550
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.290'
rev: 'v0.0.292'
hooks:
- id: ruff
args: ['--fix']
Expand All @@ -40,7 +40,7 @@ repos:
- id: prettier
types_or: [css, scss, javascript]
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.33.0
rev: v1.34.0
hooks:
- id: djlint-jinja
types_or: ["html"]
2 changes: 1 addition & 1 deletion src/ablog/templates/ablog/catalog.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ <h2>
</div>
{% endif %}
{% endfor %}
{% endblock %}
{% endblock body %}
5 changes: 3 additions & 2 deletions src/ablog/templates/ablog/collection.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{%- extends "page.html" %} {% block body %}
{%- extends "page.html" %}
{% block body %}
{% macro postlink(post) -%}
{% if post.external_link -%}
{{- post.external_link -}}
Expand Down Expand Up @@ -66,4 +67,4 @@ <h2 class="ablog-post-title">
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% endblock body %}
4 changes: 2 additions & 2 deletions src/ablog/templates/ablog/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{%- block extrahead %}
{{ super() }}
<meta http-equiv="refresh" content="{{ ablog.post_redirect_refresh }}; url={{ pathto(redirect) }}"/>
{% endblock %}
{% endblock extrahead %}
{% block body %}
You are being redirected to <a href="{{ pathto(redirect) }}">{{ post.title }}</a> in {{ ablog.post_redirect_refresh }} seconds;
{% endblock %}
{% endblock body %}
2 changes: 1 addition & 1 deletion src/ablog/templates/catalog.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ <h2>
</div>
{% endif %}
{% endfor %}
{% endblock %}
{% endblock body %}
5 changes: 3 additions & 2 deletions src/ablog/templates/collection.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ warning("collection.html is an old template path, that is no longer used by ablog. Please use ablog/collection.html instead.") }}
{%- extends "page.html" %} {% block body %}
{%- extends "page.html" %}
{% block body %}
{% macro postlink(post) -%}
{% if post.external_link -%}
{{- post.external_link -}}
Expand Down Expand Up @@ -68,4 +69,4 @@ <h2 class="ablog-post-title">
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% endblock body %}
4 changes: 2 additions & 2 deletions src/ablog/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
type="text/css"
/>
{% endif %}
{% endblock %}
{% endblock extrahead %}
{% block body %}
{{ body }}
<div class="section ablog__blog_comments">
Expand Down Expand Up @@ -57,4 +57,4 @@ <h2>Comments</h2>
</div>
{% endif %}
</div>
{% endblock %}
{% endblock body %}
4 changes: 2 additions & 2 deletions src/ablog/templates/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{%- block extrahead %}
{{ super() }}
<meta http-equiv="refresh" content="{{ ablog.post_redirect_refresh }}; url={{ pathto(redirect) }}"/>
{% endblock %}
{% endblock extrahead %}
{% block body %}
You are being redirected to <a href="{{ pathto(redirect) }}">{{ post.title }}</a> in {{ ablog.post_redirect_refresh }} seconds;
{% endblock %}
{% endblock body %}

0 comments on commit 7b95550

Please sign in to comment.