Personal tools
Namespaces
Variants
Actions

Design:Postcategory.html

From Katapulta

Jump to: navigation, search

Acest template afișează pagina unei categorii de articole din Blog-ul magazinului tău.

<h2><a href="{{ category.url }}">{{ category.title }}</a></h2>
<ul id="posts-for-category_{{ category.id }}">
  {% for post in category.posts %}
  <li>
    <h4><a href="{{ post.url }}">{{ post.title }}</a></h4>
    <p>
      {{ post.content|nl2br|truncate(400) }}
      <span class="readmore"><a href="{{ post.url }}">&laquo; citeste mai mult</a></span>
    </p>
  </li>
  {% endfor %}
</ul>

Variabile

În template-ul post.html pot fi accesate următoarele variabile: