section.html (1316B)
1 {% extends "index.html" %} 2 {% block content %} 3 {% if section.content %} 4 {{ section.content | safe }} 5 {% endif %} 6 <ul class="section-list"> 7 {% for page in section.pages %} 8 <li> 9 {% if page.extra is containing("book") %} 10 {% if page.extra is containing("no_link") %} 11 <span>{{ page.extra.book }}</span> 12 {% else %} 13 <a href="{{ page.permalink }}">{{ page.extra.book }}</a> 14 {% endif %} 15 {% else %} 16 <a href="{{ page.permalink }}" class="section-title">{{ page.title }}</a> 17 {% endif %} 18 {% if page.extra is containing("book") %} 19 <p class="summary"> 20 By: {{ page.extra.author }} <br/> 21 {% if page.extra is containing("no_link") %} 22 Finished: {{ page.extra.finished | date(format="%B %d, %Y") }} <br/> 23 {% endif %} 24 Rating: {{ page.extra.rating }} 25 </p> 26 {% else %} 27 {% if page.summary %} 28 <div class="summary">{{ page.summary | safe }}</div> 29 {% else %} 30 <p class="summary">{{ page.description }}</p> 31 {% endif %} 32 {% endif %} 33 </li> 34 {% endfor %} 35 </ul> 36 {% endblock content %}