Sources du blog ALLELLA
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

46 rindas
1.3 KiB

  1. ---
  2. layout: default
  3. ---
  4. <div class="home">
  5. {%- if page.title -%}
  6. <h1 class="page-heading">{{ page.title }}</h1>
  7. {%- endif -%}
  8. {{ content }}
  9. {%- if site.posts.size > 0 -%}
  10. <!-- <h2 class="post-list-heading">{{ page.list_title | default: "Billets" }}</h2> -->
  11. <ul class="post-list">
  12. {%- for post in site.posts -%}
  13. <li>
  14. {%- assign date_format = site.minima.date_format | default: "le %d/%m/%Y" -%}
  15. <h3>
  16. <a class="post-link" href="{{ post.url | relative_url }}">
  17. {{ post.title | escape }}
  18. </a>
  19. </h3>
  20. <div class="post-meta-tags-cats">
  21. <span class="post-meta">{{ post.date | date: date_format }}</span>
  22. <span>
  23. {%- for tag in post.tags -%}
  24. <span class="post-meta-tag">{{tag}}</span>
  25. {%- endfor -%}
  26. {%- for cat in post.categories -%}
  27. <span class="post-meta-category">{{cat}}</span>
  28. {%- endfor -%}
  29. </span>
  30. </div>
  31. <p>{{ post.excerpt }}</p>
  32. <div class="read-more">
  33. <a href="{{ post.url | relative_url }}">Lire la suite ...</a>
  34. </div>
  35. </li>
  36. {%- endfor -%}
  37. </ul>
  38. <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
  39. {%- endif -%}
  40. </div>