Skip to content

Commit

Permalink
Added seperate section for blog entries
Browse files Browse the repository at this point in the history
Signed-off-by: Anil Vishnoi <[email protected]>
  • Loading branch information
vishnoianil committed Mar 12, 2017
1 parent 6142756 commit 6266840
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _data/main-nav.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
href: "/about" # the page where it pointed
- title: "Archive"
href: "/archive"
- title: "Blog"
href: "/blog"
- title: "Talks"
href: "/talks"
- title: "Research Papers"
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ <h3>{{ site.title }}<small>{{ site.tagline }}</small></h3>

{% comment %} Google Analytics {% endcomment %}
{% include google-analytics.html %}
<script id="dsq-count-scr" src="//vishnoianilgithubio.disqus.com/count.js" async></script>

</body>
</html>
35 changes: 35 additions & 0 deletions blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
layout: default
title: Blog
permalink: /blog/
---
<div>
<article class="post">
<h2 class="post-title" style="text-align: center;color:#1a426d"> <b>Blog</b> </h2>
</article>

{% for blog in site.categories.blog %}
{% assign post_url = paper.url | replace: '//', '/' | prepend: site.baseurl | prepend: site.url %}

<article class="post">
<h2 class="post-title">
<a href="{{ blog.url | replace: '//', '/' | prepend: site.baseurl | prepend: site.url}}#disqus_thread">
{{ blog.title }}
</a>
</h2>

<p class="post-meta">
<span class="post-meta">
{{ blog.date | date: "%b %-d, %Y" }}
{% if blog.tags %} • {{ blog.tags }}{% endif %}
{% if blog.meta %} • {{ blog.meta }}{% endif %}
</span>
</p>

{{ blog.excerpt }}
<a href="{{ blog.url | replace: '//', '/' | prepend: site.baseurl | prepend: site.url }}">
Continue reading »
</a>
</article>
{% endfor %}
</div>

0 comments on commit 6266840

Please sign in to comment.