Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,31 @@

<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
<div class="post-meta">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{% assign pdate = page.date | date_to_xmlschema %}
{%- if page.modified_date %}<span class="meta-label">Published:</span>{% endif %}
<time class="dt-published" datetime="{{ pdate }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<span class="bullet-divider">•</span>
<span class="meta-label">Updated:</span>
{%- assign mdate = page.modified_date | date_to_xmlschema %}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
{%- if page.author %}
<div class="{% unless page.modified_date %}force-inline {% endunless %}post-authors">
{%- for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}</p>
</div>
{%- endif %}
</div>
</header>

<div class="post-content e-content" itemprop="articleBody">
Expand Down
1 change: 1 addition & 0 deletions _posts/2016-05-20-my-example-post.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: post
author: John Doe
---

Eos eu docendi tractatos sapientem, brute option menandri in vix, quando vivendo accommodare te ius. Nec melius fastidii constituam id, viderer theophrastus ad sit, hinc semper periculis cum id. Noluisse postulant assentior est in, no choro sadipscing repudiandae vix. Vis in euismod delenit dignissim. Ex quod nostrum sit, suas decore animal id ius, nobis solet detracto quo te.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author:
- Bart Simpson
- Nelson Mandela Muntz
meta: "Springfield"
modified_date: 2016-05-27
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit.
Expand Down
19 changes: 19 additions & 0 deletions _sass/minima/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,29 @@
*/
.post-header {
margin-bottom: $spacing-unit;
padding-bottom: 18px;
text-align: center;
border-bottom: 1px solid $border-color-01;
}

.post-meta {
.bullet-divider { padding-inline: 15px }
.meta-label { font-weight: 600 }

.force-inline {
display: inline;
&::before {
content: "•";
padding-inline: 5px;
}
}
.post-authors { margin-top: 3px }
}


.post-title,
.post-content h1 {
margin-bottom: 10px;
@include relative-font-size(2.625);
letter-spacing: -1px;
line-height: 1.15;
Expand Down