Sources du blog ALLELLA
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

home.html 1.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <span class="post-meta">{{ post.date | date: date_format }}</span>
  16. <span class="post-meta-tags-cats">
  17. {%- for tag in post.tags -%}
  18. <span class="post-meta-tag">{{tag}}</span>
  19. {%- endfor -%}
  20. {%- for cat in post.categories -%}
  21. <span class="post-meta-category">{{cat}}</span>
  22. {%- endfor -%}
  23. </span>
  24. <h3>
  25. <a class="post-link" href="{{ post.url | relative_url }}">
  26. {{ post.title | escape }}
  27. </a>
  28. </h3>
  29. {%- if site.show_excerpts -%}
  30. {{ post.excerpt }}
  31. {%- endif -%}
  32. </li>
  33. {%- endfor -%}
  34. </ul>
  35. <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
  36. {%- endif -%}
  37. </div>