This repository has been archived by the owner on Jul 15, 2019. It is now read-only.
forked from ComputerScienceHouse/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.html
40 lines (40 loc) · 1.5 KB
/
archive.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
layout: default
title: Archive
description:
permalink: /archive/
---
<section class="archives" itemscope itemtype="http://schema.org/Blog">
<a class="nav nav--black" href="{{ site.baseurl }}/">
<i class="fa fa-lg fa-arrow-left"></i>
<span>Back to Posts</span>
</a>
<header class="archives__header">
<span>Archive</span>
</header>
<div class="section-padding archives__container">
{% for post in site.posts %}
<article class="card" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<a class="card__link" href="{{ post.url | prepend: site.baseurl }}" itemprop="url">
<div class="card__img">`
{% if post.image-sm %}
<figure class="absolute-bg wow" style="background-image: url('{{ post.image-sm }}');"></figure>
{% else %}
<figure class="absolute-bg wow" style="background-image: url('{{ post.image }}');"></figure>
{% endif %}
</div>
<div class="card__container">
<h2 class="card__header" itemprop="name">{{ post.title }}</h2>
<p class="card__count" itemprop="datePublished" datetime="{{ post.date | date_to_xmlschema }}">
{{ post.date | date: "%b %-d, %Y" }}
{% if post.categories.size > 0 %}
in {{ post.categories | join: ', ' }}
{% endif %}
</p>
<span class="card__more">Read Post</span>
</div>
</a>
</article>
{% endfor %}
</div>
</section>