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.
 
 
 
 

51 lines
1.2 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. <a class="small prev{{' disabled' if not resource.prev_by_time }}"
  30. title="{{ resource.prev_by_time.meta.title }}"
  31. {% if resource.prev_by_time %}
  32. href="{{ content_url(resource.prev_by_time.url) }}"{% endif %}>
  33. Next
  34. </a>
  35. |
  36. <a class="small next{{' disabled' if not resource.next_by_time }}"
  37. title="{{ resource.next_by_time.meta.title }}"
  38. {% if resource.next_by_time %}
  39. href="{{ content_url(resource.next_by_time.url) }}"{% endif %}>
  40. Previous
  41. </a>
  42. </div>
  43. </section>
  44. {%- endblock %}