The blog.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

58 řádky
1.5 KiB

  1. {% from "macros.j2" import itemurl %}
  2. {% from "macros.j2" import slug %}
  3. {% extends "base.j2" %}
  4. {% block main -%}
  5. {% mark post -%}
  6. <article class="post">
  7. <h1 id="{{ slug(resource) }}-title"><a class="no-tufte-underline" href="{{ itemurl(resource) }}">{{ resource.meta.title }}</a></h1>
  8. <p class="posted">Posted: {% if resource.meta.listable %}{{ resource.meta.created.strftime('%B %e, %Y') }} at {{ resource.meta.time }}{% else %}not yet{% endif %}</p>
  9. {% if resource.meta.tags %}
  10. <ul class="tags clear">
  11. {% for tag in resource.meta.tags|sort %}
  12. <li>
  13. <a class="small" href="{{ content_url('search/label/'~tag~'.html') }}">
  14. {{ tag }}
  15. </a>
  16. </li>
  17. {% endfor %}
  18. </ul>
  19. {% endif %}
  20. <div class="clear"></div>
  21. <section>
  22. {% filter markdown|typogrify|rellinktoabs -%}
  23. {% block post -%}{%- endblock %}
  24. {%- endfilter %}
  25. </section>
  26. </article>
  27. {%- endmark %}
  28. <section>
  29. <p class='prevnext'>
  30. <span class="small">
  31. <a class="prev{{' disabled' if not resource.prev_by_time }}"
  32. title="{{ resource.prev_by_time.meta.title }}"
  33. {% if resource.prev_by_time %}
  34. href="{{ itemurl(resource.prev_by_time) }}"{% endif %}>
  35. Next
  36. </a>
  37. |
  38. <a href="{{ content_url('/') }}">Home</a>
  39. |
  40. <a class="next{{' disabled' if not resource.next_by_time }}"
  41. title="{{ resource.next_by_time.meta.title }}"
  42. {% if resource.next_by_time %}
  43. href="{{ itemurl(resource.next_by_time) }}"{% endif %}>
  44. Previous
  45. </a>
  46. </span>
  47. </p>
  48. </section>
  49. {%- endblock %}
  50. {% block copyright -%}Copyright © {{ resource.meta.created|date_format("%Y") }} John-Mark Gurney{%- endblock %}