The blog.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

59 lines
1.7 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. {% if resource.meta.updated %}<p class="posted">Updated: {{ resource.meta.updated.strftime('%B %e, %Y') }} at {{ resource.meta.updated_time }}</p>{% endif %}
  9. <p class="posted">{% if resource.meta.updated %}Originally {% endif %}Posted: {% if resource.meta.listable %}{{ resource.meta.created.strftime('%B %e, %Y') }} at {{ resource.meta.time }}{% else %}not yet{% endif %}</p>
  10. {% if resource.meta.tags %}
  11. <ul class="tags clear">
  12. {% for tag in resource.meta.tags|sort %}
  13. <li>
  14. <a class="small" href="{{ content_url('search/label/'~tag~'.html') }}">
  15. {{ tag }}
  16. </a>
  17. </li>
  18. {% endfor %}
  19. </ul>
  20. {% endif %}
  21. <div class="clear"></div>
  22. <section>
  23. {% filter markdown|typogrify|rellinktoabs -%}
  24. {% block post -%}{%- endblock %}
  25. {%- endfilter %}
  26. </section>
  27. </article>
  28. {%- endmark %}
  29. <section>
  30. <p class='prevnext'>
  31. <span class="small">
  32. <a class="prev{{' disabled' if not resource.prev_by_time }}"
  33. title="{{ resource.prev_by_time.meta.title }}"
  34. {% if resource.prev_by_time %}
  35. href="{{ itemurl(resource.prev_by_time) }}"{% endif %}>
  36. Next
  37. </a>
  38. |
  39. <a href="{{ content_url('/') }}">Home</a>
  40. |
  41. <a class="next{{' disabled' if not resource.next_by_time }}"
  42. title="{{ resource.next_by_time.meta.title }}"
  43. {% if resource.next_by_time %}
  44. href="{{ itemurl(resource.next_by_time) }}"{% endif %}>
  45. Previous
  46. </a>
  47. </span>
  48. </p>
  49. </section>
  50. {%- endblock %}
  51. {% block copyright -%}Copyright © {{ resource.meta.posted|date_format("%Y") }} John-Mark Gurney{%- endblock %}