Last active
October 30, 2019 18:15
-
-
Save singh1114/ab15bb136a32c0724f9a861d375a9c52 to your computer and use it in GitHub Desktop.
Basic jekyll post.html file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 %} {% 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