The blog.
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.
 
 
 
 

55 lines
1.3 KiB

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