post.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. layout: default
  3. ---
  4. <article class="post">
  5. <h1 class="post-title">{{ page.title }}</h1>
  6. <time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
  7. {{ content }}
  8. </article>
  9. <div id="disqus_thread"></div>
  10. <script type="text/javascript">
  11. /* * * CONFIGURATION VARIABLES * * */
  12. var disqus_shortname = 'nobodyhere';
  13. /* * * DON'T EDIT BELOW THIS LINE * * */
  14. (function() {
  15. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  16. dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
  17. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  18. })();
  19. </script>
  20. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
  21. {% if site.related_posts != empty %}
  22. <aside class="related">
  23. <h3>Related posts</h3>
  24. <ul class="related-posts">
  25. {% for post in site.related_posts limit:3 %}
  26. <li>
  27. <a href="{{ site.baseurl }}{{ post.url }}">
  28. {{ post.title }}
  29. <small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
  30. </a>
  31. </li>
  32. {% endfor %}
  33. </ul>
  34. </aside>
  35. {% endif %}