Skip to content

Instantly share code, notes, and snippets.

@singh1114
Last active October 30, 2019 18:15
Show Gist options
  • Save singh1114/ab15bb136a32c0724f9a861d375a9c52 to your computer and use it in GitHub Desktop.
Save singh1114/ab15bb136a32c0724f9a861d375a9c52 to your computer and use it in GitHub Desktop.
Basic jekyll post.html file.
---
layout: default
---
<article class="post">
<h1>{{ page.title }}</h1>
<div class="date">
Written on {{ page.date | date: "%B %e, %Y" }}
</div>
<div class="post-categories">
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
<strong style="align:right;">
Categories:
</strong>
{% for category in categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugize}}"> {{category}}</a>
{% unless forloop.last %}&nbsp;{% endunless %} <strong>|</strong>
{% endfor %}
</div>
<div class="entry">
{% include share-bar.html %}
{{ content }}
</div>
<hr><br>
{% include disqus.html %}
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment