Skip to content

Commit

Permalink
fix comma whitespace
Browse files Browse the repository at this point in the history
also fix source formatting with jinja knowledge
  • Loading branch information
HarHarLinks committed Sep 16, 2024
1 parent b5b6826 commit 277e857
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
10 changes: 6 additions & 4 deletions templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ <h1><a href="{{ page.permalink }}" title="{{ page.title }}">{{ page.title }}</a>
{% for category in page.taxonomies.category %}
<a href="/category/{{ category | slugify }}">
{{ category }}
</a>{% if not loop.last %}, {% endif %}{% endfor %}
{{- category -}}
</a>
{%- if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% for author in page.taxonomies.author %}
<a href="/author/{{ author | default(value=['unknown author']) | slugify }}">
{{ author | default(value=["unknown author"]) }}
</a>{% if not loop.last %}, {% endif %}
{{- author | default(value=["unknown author"]) -}}
</a>
{%- if not loop.last %}, {% endif %}
{% endfor %}
</span>
{% if page.updated -%}
Expand Down
16 changes: 10 additions & 6 deletions templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@ <h1>{{ page.title }}</h1>
{{ page.date | date(format="%d.%m.%Y %H:%M") }}
{% if page.taxonomies.category %}
{% for category in
page.taxonomies.category %}<a href="/category/{{ category | slugify }}">{{ category }}</a>{% if not
loop.last %}, {% endif %}{% endfor %}
{% for category in page.taxonomies.category %}
<a href="/category/{{ category | slugify }}">
{{- category -}}
</a>
{%- if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% for author in page.taxonomies.author %}<a
href="/author/{{ author | default (value=['unknown author']) | slugify }}">{{ author | default
(value=["unknown author"]) }}</a>{% if not loop.last %}, {% endif %}
{% for author in page.taxonomies.author %}
<a href="/author/{{ author | default (value=['unknown author']) | slugify }}">
{{- author | default (value=["unknown author"]) -}}
</a>
{%- if not loop.last %}, {% endif %}
{% endfor %}
</span>
{% if page.updated %}
Expand Down

0 comments on commit 277e857

Please sign in to comment.