9 changed files with 115 additions and 51 deletions
@ -1,15 +1,22 @@ |
|||
--- |
|||
layout: default |
|||
body-class: post-page |
|||
--- |
|||
<article class="post"> |
|||
<header> |
|||
<h1 class="page-title post-title">$title$</h1> |
|||
<p class="published"> |
|||
Posted on $date$ |
|||
$if(author)$ |
|||
by $author$ |
|||
$endif$ |
|||
</p> |
|||
<header class="post-header"> |
|||
<h1 class="post-title page-title"><a href="$url$">$title$</a></h1> |
|||
<div class="post-published"> |
|||
<p> |
|||
$if(published)$ |
|||
Posted on $published(shortDate)$ |
|||
$else$ |
|||
Drafted on $date(shortDate)$ |
|||
$endif$ |
|||
$if(author)$ |
|||
by $author$ |
|||
$endif$ |
|||
</p> |
|||
</div> |
|||
</header> |
|||
$body$ |
|||
</article> |
|||
|
@ -1,6 +1,32 @@ |
|||
--- |
|||
layout: page |
|||
updated: 2021-05-24T20:07:11-05:00 |
|||
layout: default |
|||
title: "Blogging About Life and Tech" |
|||
updated: $latestPostDate$ |
|||
body-class: blog |
|||
--- |
|||
$latestPost$ |
|||
|
|||
<header> |
|||
<h1 class="page-title">$title$ -- Latest Posts</h1> |
|||
</header> |
|||
|
|||
<article class="post latest-post"> |
|||
<header class="post-header"> |
|||
<h1 class="post-title"><a href="$latestPostUrl$">$latestPostTitle$</a></h1> |
|||
<div class="post-published"> |
|||
<p> |
|||
This latest post |
|||
$if(latestPostPublished)$ |
|||
published on $latestPostPublished$ |
|||
$else$ |
|||
drafted on $latestPostDate$ |
|||
$endif$ |
|||
$if(latestPostAuthor)$ |
|||
by $latestPostAuthor$ |
|||
$endif$ |
|||
</p> |
|||
</div> |
|||
</header> |
|||
$latestPostBody$ |
|||
</article> |
|||
|
|||
$partial("_partials/teaser-list.html")$ |
|||
|
@ -1,21 +0,0 @@ |
|||
.teaser-list { |
|||
.post-title { |
|||
font-size: 1.2rem; |
|||
margin-bottom: 0.5rem; |
|||
} |
|||
.teaser-item { |
|||
> *:nth-last-child(2) { |
|||
margin-bottom: 0.5rem; |
|||
} |
|||
} |
|||
.teaser-item + .teaser-item { |
|||
border-top: $border-thin; |
|||
} |
|||
header + * { |
|||
margin-top: 0.5rem; |
|||
} |
|||
.read-more { |
|||
margin-top: 0; |
|||
margin-bottom: 1rem; |
|||
} |
|||
} |
@ -1,19 +1,50 @@ |
|||
.post { |
|||
.blog { |
|||
.page-title { |
|||
color: $color-text-light; |
|||
font-style: italic; |
|||
font-weight: normal; |
|||
margin-bottom: 0; |
|||
} |
|||
} |
|||
|
|||
.post { |
|||
.post-header { |
|||
.post-title { |
|||
margin: 0.5rem 0 0; |
|||
padding: 0; |
|||
|
|||
&.page-title { |
|||
margin-bottom: 0.5rem; |
|||
} |
|||
} |
|||
|
|||
.post-published { |
|||
div.post-published p { |
|||
margin: 0 0 0.5rem; |
|||
font-size: 0.9rem; |
|||
font-style: italic; |
|||
color: slategrey; |
|||
color: $color-text-light; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.teaser-list { |
|||
.post-title { |
|||
font-size: 1.2rem; |
|||
margin-bottom: 0.5rem; |
|||
} |
|||
.teaser-item { |
|||
> *:nth-last-child(2) { |
|||
margin-bottom: 0.5rem; |
|||
} |
|||
} |
|||
.teaser-item + .teaser-item { |
|||
border-top: $border-thin; |
|||
} |
|||
header + * { |
|||
margin-top: 0.5rem; |
|||
} |
|||
.read-more { |
|||
margin-top: 0; |
|||
margin-bottom: 1rem; |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue