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"
|
||||
media: "The Player of Games"
|
||||
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
|
||||
category: meta
|
||||
active: true
|
||||
|
|
|
@ -5,7 +5,7 @@ layout: default
|
|||
|
||||
<header class="post-header">
|
||||
<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>
|
||||
|
||||
<div class="post-content" itemprop="articleBody">
|
||||
|
|
|
@ -167,6 +167,12 @@
|
|||
/**
|
||||
* Page content
|
||||
*/
|
||||
.site-update {
|
||||
text-align: center;
|
||||
font-size: $large-font-size;
|
||||
padding-bottom: $spacing-unit;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
padding: $spacing-unit 0;
|
||||
}
|
||||
|
@ -192,7 +198,7 @@
|
|||
|
||||
.post-link {
|
||||
display: block;
|
||||
font-size: 18px;
|
||||
font-size: $large-font-size;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ $base-font-size: 16px;
|
|||
$base-font-weight: 400;
|
||||
$small-font-size: $base-font-size * 0.875;
|
||||
$base-line-height: 1.5;
|
||||
$large-font-size: $base-font-size * 1.125;
|
||||
|
||||
$spacing-unit: 15px;
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ layout: default
|
|||
{% if last_meta.active %}
|
||||
<div class="site-update">
|
||||
Site Update:
|
||||
<a href="{{ last_meta.href | prepend: site.baseurl }}">
|
||||
<a href="{{ last_meta.url | prepend: site.baseurl }}">
|
||||
{{ last_meta.title }}
|
||||
</a>
|
||||
</a> ({{ last_meta.date | date: "%Y-%m-%d" }})
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user