post.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="post">
  2. {% assign author = site.data.authors[page.author] %}
  3. <header class="post-header">
  4. {% if author.fbid %}
  5. <div class="authorPhoto">
  6. <img src="http://graph.facebook.com/{{ author.fbid }}/picture/" alt="{{ author.fullname }}" title="{{ author.fullname }}" />
  7. </div>
  8. {% endif %}
  9. {% if author.full_name %}
  10. <p class="post-authorName">{{ author.full_name }}</p>
  11. {% endif %}
  12. <h1 class="post-title">{% if include.truncate %}<a href="{{ page.url | absolute_url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
  13. <p class="post-meta">Posted {{ page.date | date: '%B %d, %Y' }}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
  14. </header>
  15. <article class="post-content">
  16. {% if include.truncate %}
  17. {% if page.content contains '<!--truncate-->' %}
  18. {{ page.content | split:'<!--truncate-->' | first | markdownify }}
  19. <div class="read-more">
  20. <a href="{{ page.url | absolute_url }}" >
  21. Read More
  22. </a>
  23. </div>
  24. {% else %}
  25. {{ page.content | markdownify }}
  26. {% endif %}
  27. {% else %}
  28. {{ content }}
  29. {% endif %}
  30. {% unless include.truncate %}
  31. {% include plugins/all_share.html %}
  32. {% endunless %}
  33. </article>
  34. </div>