Немного оптимизировал
This commit is contained in:
parent
f02a0bac42
commit
a49f10601b
3 changed files with 19 additions and 27 deletions
|
|
@ -2,8 +2,9 @@
|
|||
<h1>{{ pagename|title }}</h1>
|
||||
<ul>
|
||||
{% for author in authors %}
|
||||
<li{% if loop.first %} class="first"{% endif %}>
|
||||
{{ author }}
|
||||
<li {% if loop.first %}class="first"{% endif %}{% if loop.last %}class="last"{% endif %}>
|
||||
<div class="name">{{ author.name }}</div>
|
||||
<div class="age">{{ author.age }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue