Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (46 sloc) 2.55 KB
---
title: Blog
layout: default
nav_id: Blog
nav_weight: 20
redirect_from: /blog
---
<div class="row row-offcanvas row-offcanvas-right">
<div class="col-md-9">
<div class="row my-col-12-zebra-twocols">
{% for post in paginator.posts %}
<div class="col-12 col-lg-6 my-bordered-news-snippets">
{% if post.image != null %} {% if post.image-address != null %}{% unless post.no-page %}<a href="{{ post.image-address | replace: '__STORAGE_URL__', site.storage_url }}">{% endunless %}{% else %}{% unless post.no-page %}<a href="{{site.url }}{{ post.url }}">{% endunless %}{% endif %}<img src="{{ post.image | replace: '__STORAGE_URL__', site.storage_url }}" alt="{{ post.image-alt }}" title="{{ post.image-alt }}" style="max-width:100%;max-height:280px;height:auto;width:auto;" class="mb-1 mt-3">{% unless post.no-page %}</a>{% endunless %}
{% endif %}
<h3 class="mb-2 mt-3">{% unless post.no-page %}<a href="{{site.url }}{{ post.url }}" style="color:inherit;">{% endunless %}{{ post.title }}{% unless post.no-page %}</a>{% endunless %}</h3>
{% if post.show-date %}
<div class="mb-4">[{{ post.date | date: "%Y/%m/%d" }}]</div>
{% endif %}
{% if post.semester %}
<div class="mb-4">[{{ post.semester }} semester]</div>
{% endif %}
{{ post.excerpt | markdownify }}
{% unless post.no-page %}<p><a class="btn btn-secondary h5" href="{{ site.url }}{{ post.url }}" style="white-space: normal" role="button">{% if post.more-text == null %}View details{% else %}{{ post.more-text }}{% endif %} &raquo;</a></p>{% endunless %}
</div>
{% endfor %}
</div>
</div>
<div class="col-md-3 sidebar-offcanvas">
<hr class="hidden-md-up">
<h1 class="mb-3 hidden-md-down">Blog &bull; (<a href="{{site.url}}/posts/feed.xml">RSS</a>)</h1>
<h3 class="mb-3 hidden-lg-up">Blog &bull; (<a href="{{site.url}}/posts/feed.xml">RSS</a>)</h3>
<div class="list-group-sm">
{% if paginator.previous_page %}
<a class="list-group-item list-group-item-action h5" href="{{ paginator.previous_page_path }}/">Previous</a>
{% else %}
<li class="list-group-item h5 disabled">Previous</li>
{% endif %}
<li class="list-group-item h5 active">Page: {{ paginator.page }} of {{ paginator.total_pages }}</li>
{% if paginator.next_page %}
<a class="list-group-item list-group-item-action h5" href="{{ paginator.next_page_path }}/">Next</a>
{% else %}
<li class="list-group-item h5 disabled">Next</li>
{% endif %}
</div>
</div>
</div>