Update formatting for site update post, clean up some date formatting and set front matter defaults.
This commit is contained in:
parent
028b47497d
commit
7eeccd9413
17
_config.yml
17
_config.yml
|
@ -28,3 +28,20 @@ category_titles:
|
||||||
technology: "The Technologist"
|
technology: "The Technologist"
|
||||||
media: "The Player of Games"
|
media: "The Player of Games"
|
||||||
religion: "The Mystic"
|
religion: "The Mystic"
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
- scope:
|
||||||
|
path: ""
|
||||||
|
values:
|
||||||
|
layout: default
|
||||||
|
author: Anna Wiggins
|
||||||
|
- scope:
|
||||||
|
path: ""
|
||||||
|
type: "posts"
|
||||||
|
values:
|
||||||
|
layout: post
|
||||||
|
- scope:
|
||||||
|
path: ""
|
||||||
|
type: "pages"
|
||||||
|
values:
|
||||||
|
layout: page
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
layout: post
|
|
||||||
title: Yet Another Site Update
|
title: Yet Another Site Update
|
||||||
category: meta
|
category: meta
|
||||||
active: true
|
active: true
|
||||||
|
|
|
@ -5,7 +5,7 @@ layout: default
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
|
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
|
||||||
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
|
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%Y-%m-%d" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="post-content" itemprop="articleBody">
|
<div class="post-content" itemprop="articleBody">
|
||||||
|
|
|
@ -167,6 +167,12 @@
|
||||||
/**
|
/**
|
||||||
* Page content
|
* Page content
|
||||||
*/
|
*/
|
||||||
|
.site-update {
|
||||||
|
text-align: center;
|
||||||
|
font-size: $large-font-size;
|
||||||
|
padding-bottom: $spacing-unit;
|
||||||
|
}
|
||||||
|
|
||||||
.page-content {
|
.page-content {
|
||||||
padding: $spacing-unit 0;
|
padding: $spacing-unit 0;
|
||||||
}
|
}
|
||||||
|
@ -192,7 +198,7 @@
|
||||||
|
|
||||||
.post-link {
|
.post-link {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 18px;
|
font-size: $large-font-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ $base-font-size: 16px;
|
||||||
$base-font-weight: 400;
|
$base-font-weight: 400;
|
||||||
$small-font-size: $base-font-size * 0.875;
|
$small-font-size: $base-font-size * 0.875;
|
||||||
$base-line-height: 1.5;
|
$base-line-height: 1.5;
|
||||||
|
$large-font-size: $base-font-size * 1.125;
|
||||||
|
|
||||||
$spacing-unit: 15px;
|
$spacing-unit: 15px;
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ layout: default
|
||||||
{% if last_meta.active %}
|
{% if last_meta.active %}
|
||||||
<div class="site-update">
|
<div class="site-update">
|
||||||
Site Update:
|
Site Update:
|
||||||
<a href="{{ last_meta.href | prepend: site.baseurl }}">
|
<a href="{{ last_meta.url | prepend: site.baseurl }}">
|
||||||
{{ last_meta.title }}
|
{{ last_meta.title }}
|
||||||
</a>
|
</a> ({{ last_meta.date | date: "%Y-%m-%d" }})
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user