Add dates to blog and home (closes #46)
This commit is contained in:
parent
bbeff69a10
commit
bc9b85e23b
@ -6,6 +6,7 @@
|
||||
<div class="image">{% if post.image %}<img src="{% if site.featured-image-source %}{{ post.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ post.image }}{% endif %}" alt="" />{% endif %}</div>
|
||||
<div class="content">
|
||||
<h2><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h2>
|
||||
<p class="h5">{{ post.date | date: '%B %d, %Y' }}</p>
|
||||
<p>{{ post.description }}</p>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
<div id="main">
|
||||
<header>
|
||||
{% if page.image %}
|
||||
<div
|
||||
{% if page.image %}
|
||||
<div
|
||||
class="header-image"
|
||||
style="background-image: url('{% if site.featured-image-source %}{{ page.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ page.image }}{% endif %}');"></div>
|
||||
{% endif %}
|
||||
@ -35,6 +35,7 @@
|
||||
{{ item.title }}
|
||||
{% if item.layout %}</a>{% endif %}
|
||||
</h2>
|
||||
<p class="h5">{{ item.date | date: '%B %d, %Y' }}</p>
|
||||
<p>{{ item.description }}</p>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -2,7 +2,7 @@
|
||||
layout: post
|
||||
title: Our Founding Principles
|
||||
description: Autonomic Co-operative And Our Core Values
|
||||
image: thinkpad.jpg
|
||||
image: pic01.jpg
|
||||
category: values
|
||||
date: 2017-10-03
|
||||
---
|
||||
|
@ -107,6 +107,7 @@ h4 {
|
||||
h5 {
|
||||
font-size: 0.8em;
|
||||
line-height: 1.5em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.h6,
|
||||
@ -232,4 +233,4 @@ header {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user