BaySec website source
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.
 
 
 
 

68 lines
1.9 KiB

  1. {% extends "base.j2" %}
  2. {% block main -%}
  3. <article class="post">
  4. <nav class="post_nav">
  5. <a class="backlink" href="/">Back to list</a>
  6. <a class="prev{{' disabled' if not resource.prev_by_time }}"
  7. title="{{ resource.prev_by_time.meta.title }}"
  8. {% if resource.prev_by_time %}
  9. href="{{ content_url(resource.prev_by_time.url) }}"{% endif %}>
  10. Previous
  11. </a>
  12. <a class="next{{' disabled' if not resource.next_by_time }}"
  13. title="{{ resource.next_by_time.meta.title }}"
  14. {% if resource.next_by_time %}
  15. href="{{ content_url(resource.next_by_time.url) }}"{% endif %}>
  16. Next
  17. </a>
  18. <br>
  19. <div id="twitter_share">
  20. <a href="https://twitter.com/share"
  21. class="twitter-share-button"
  22. data-count="vertical"
  23. data-via="{{ tweet_via }}">Tweet</a>
  24. <script type="text/javascript"
  25. src="https://platform.twitter.com/widgets.js"></script>
  26. </div>
  27. <div id="facebook_like">
  28. <iframe src="https://www.facebook.com/plugins/like.php?href&amp;layout=box_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65"
  29. scrolling="no"
  30. frameborder="0"
  31. style="border:none; overflow:hidden; width:450px; height:65px;"
  32. allowTransparency="true"></iframe>
  33. </div>
  34. </nav>
  35. <h1 class="title">
  36. <a href="{{ content_url(resource.url) }}">
  37. {{ resource.meta.title }}
  38. </a>
  39. </h1>
  40. <time datetime="{{ resource.meta.created.strftime('%Y-%m-%d') }}">
  41. Posted: {{ resource.meta.created.strftime('%a, %d %b %Y') }}
  42. </time>
  43. {% if resource.meta.tags %}
  44. <ul class="tags clear">
  45. {% for tag in resource.meta.tags %}
  46. <li>
  47. <a class="small" href="{{ content_url('blog/tags/'~tag~'.html') }}">
  48. {{ tag }}
  49. </a>
  50. </li>
  51. {% endfor %}
  52. </ul>
  53. {% endif %}
  54. <div class="clear"/>
  55. <br/>
  56. {% filter markdown|typogrify -%}
  57. {% mark post -%}
  58. {% block post -%}{%- endblock %}
  59. {%- endmark %}
  60. {%- endfilter %}
  61. </article>
  62. {%- endblock %}