HTML error in notmyidea: <li> not allowed in <section>.

<li> tags need to be inside of <ul> or <ol>.
Thanks to the w3c_validate plugin for finding this.
This commit is contained in:
Mario Lang 2014-02-12 11:47:22 +01:00
commit 459a13bf79
6 changed files with 26 additions and 11 deletions

View file

@ -6,9 +6,11 @@
<section id="content" class="body">
<h1>Authors on {{ SITENAME }}</h1>
{%- for author, articles in authors|sort %}
<ul>
{% for author, articles in authors|sort %}
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>
</section>
{% endblock %}

View file

@ -6,10 +6,11 @@
<section id="content" class="body">
<h1>Tags for {{ SITENAME }}</h1>
{%- for tag, articles in tags|sort %}
<ul>
{% for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>
</section>
{% endblock %}