File: blog.liquid

package info (click to toggle)
ruby-liquid 5.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,176 kB
  • sloc: ruby: 10,561; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
<div id="blog-page">
  <h2 class="heading-shaded">{{page.title}}</h2>
   {% for article in blog.articles  %}
      <h4>
        {{ article.created_at | date: '%d %b' }}
        <a href="{{article.url}}">{{ article.title }}</a>
      </h4>
      {{ article.content }}
      {% if blog.comments_enabled? %}
        <p><a href="{{article.url}}#comments">{{ article.comments_count }} comments</a></p>
      {% endif %}
  {% endfor %}
</div>