1
0
Fork 0
forked from github/pelican

Remove bad whitespace stripping in simple theme

This joins the contents of the block to the previous line, which messes
up the output formatting in this case.

Old vs new output:
- <ul>        <li>...
+ <ul>
+     <li>...

This change is already in the 'notmyidea' theme.
This commit is contained in:
Allen Zheng 2018-07-05 10:28:52 -04:00
commit a3d76a0fd8
2 changed files with 2 additions and 3 deletions

View file

@ -4,9 +4,8 @@
{% block content %}
<h1>Authors on {{ SITENAME }}</h1>
<ul>
{%- for author, articles in authors|sort %}
{% for author, articles in authors|sort %}
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>

View file

@ -5,7 +5,7 @@
{% block content %}
<h1>Tags for {{ SITENAME }}</h1>
<ul>
{%- for tag, articles in tags|sort %}
{% for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>