Skip to content

Instantly share code, notes, and snippets.

@singh1114
Last active November 28, 2019 19:42
Show Gist options
  • Save singh1114/f975bf06a8f8014d0768a026c3d3ef0f to your computer and use it in GitHub Desktop.
Save singh1114/f975bf06a8f8014d0768a026c3d3ef0f to your computer and use it in GitHub Desktop.
<div class="linked_post">
{% for post in site.posts %}
{% assign post_url = post.url | replace: "/", "" %}
{% if post_url == include.url %}
<div class="linked_post_div">
<article class="post">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
<p style="color: #969494; margin: 10px 0px; font-size: 18px;">
{{ post.date | date: "%B %e, %Y" }}
</p>
</article>
</div>
{% endif %}
{% endfor %}
<br>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment