Build a beautiful and simple website in literally minutes. Demo at http://deanattali.com/beautiful-jekyll
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
964 B

7 years ago
7 years ago
7 years ago
  1. ---
  2. layout: default
  3. ---
  4. <h2 class="post_title">{{page.title}}:</h2>
  5. <div class="posts-list">
  6. {% for post in site.posts %}
  7. {% for tag in post.tags %}
  8. {% if tag == page.tag %}
  9. <article class="post-preview">
  10. <a href="{{ post.url | prepend: site.baseurl }}">
  11. <h3 class="post-title">{{ post.title }}</h3>
  12. {% if post.subtitle %}
  13. <h4 class="post-subtitle">
  14. {{ post.subtitle }}
  15. </h4>
  16. {% endif %}
  17. </a>
  18. <p class="post-meta">
  19. Posted on {{ post.date | date: "%B %-d, %Y" }}
  20. </p>
  21. <div class="post-entry">
  22. {{ post.content | strip_html | xml_escape | truncatewords: 50 }}
  23. <a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read&nbsp;More]</a>
  24. </div>
  25. <div class="blog-tags">
  26. Tags:
  27. {% for tag in post.tags %}
  28. <a href="/tag/{{ tag }}">{{ tag }}</a>
  29. {% endfor %}
  30. </div>
  31. </article>
  32. {% endif %}
  33. {% endfor %}
  34. {% endfor %}
  35. </div>