Add super neat styling to posts
This commit is contained in:
parent
4850bf9612
commit
6bd82c7871
12 changed files with 41 additions and 25 deletions
|
@ -2,7 +2,7 @@
|
|||
permalink: pretty
|
||||
|
||||
# Setup
|
||||
title: tale
|
||||
title: Tale
|
||||
subtitle: by Chester
|
||||
paginate: 5
|
||||
baseurl: ""
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="container">
|
||||
<header>
|
||||
<a href="{{ site.baseurl }}/" title="Home">
|
||||
<h2>{{ site.title }}</h2>
|
||||
<h2>{{ site.title | downcase }}</h2>
|
||||
</a>
|
||||
|
||||
<div class="line"></div>
|
||||
|
|
|
@ -2,14 +2,18 @@
|
|||
layout: default
|
||||
---
|
||||
|
||||
<div>
|
||||
<div class="post">
|
||||
<time class="post-time" datetime="{{ page.date }}">{{ page.date | date_to_string | upcase }}</time>
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
|
||||
{{ content }}
|
||||
|
||||
<div class="post">
|
||||
<div class="post-info">
|
||||
<span>Written by </span>{{ page.author }}
|
||||
<br>
|
||||
<span>on </span><time datetime="{{ page.date }}">{{ page.date | date: "%B %d, %Y" }}</time>
|
||||
</div>
|
||||
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<div class="post-line"></div>
|
||||
|
||||
{{ content }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Empty Post"
|
||||
author: "Chester"
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras eu ipsum feugiat, condimentum est et, faucibus nulla. Praesent libero lectus, volutpat sed quam eget, volutpat viverra dui. Duis sapien nisi, posuere sit amet eros ac, blandit egestas odio. Sed elementum arcu ac ante sodales, ut molestie velit tempor. Nulla ultricies, tortor eu laoreet pharetra, velit turpis tempor lectus, nec cursus leo dui vel leo. Quisque vulputate eget dui et dapibus. Sed eu ornare leo, in mollis leo. Mauris sapien nisl, congue et diam eget, pretium iaculis nisl. In non ex posuere, volutpat neque ac, ultrices urna. Sed bibendum ipsum eget quam pellentesque, ut lacinia tortor placerat. Duis condimentum et ante nec tincidunt. Fusce interdum suscipit ipsum, sit amet mattis sem consequat quis.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Empty Post"
|
||||
author: "Chester"
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras eu ipsum feugiat, condimentum est et, faucibus nulla. Praesent libero lectus, volutpat sed quam eget, volutpat viverra dui. Duis sapien nisi, posuere sit amet eros ac, blandit egestas odio. Sed elementum arcu ac ante sodales, ut molestie velit tempor. Nulla ultricies, tortor eu laoreet pharetra, velit turpis tempor lectus, nec cursus leo dui vel leo. Quisque vulputate eget dui et dapibus. Sed eu ornare leo, in mollis leo. Mauris sapien nisl, congue et diam eget, pretium iaculis nisl. In non ex posuere, volutpat neque ac, ultrices urna. Sed bibendum ipsum eget quam pellentesque, ut lacinia tortor placerat. Duis condimentum et ante nec tincidunt. Fusce interdum suscipit ipsum, sit amet mattis sem consequat quis.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Empty Post"
|
||||
author: "Chester"
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras eu ipsum feugiat, condimentum est et, faucibus nulla. Praesent libero lectus, volutpat sed quam eget, volutpat viverra dui. Duis sapien nisi, posuere sit amet eros ac, blandit egestas odio. Sed elementum arcu ac ante sodales, ut molestie velit tempor. Nulla ultricies, tortor eu laoreet pharetra, velit turpis tempor lectus, nec cursus leo dui vel leo. Quisque vulputate eget dui et dapibus. Sed eu ornare leo, in mollis leo. Mauris sapien nisl, congue et diam eget, pretium iaculis nisl. In non ex posuere, volutpat neque ac, ultrices urna. Sed bibendum ipsum eget quam pellentesque, ut lacinia tortor placerat. Duis condimentum et ante nec tincidunt. Fusce interdum suscipit ipsum, sit amet mattis sem consequat quis.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Introducing Tale 2"
|
||||
author: "Chester"
|
||||
---
|
||||
|
||||
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Welcome to Jekyll!"
|
||||
author: "Chester"
|
||||
---
|
||||
|
||||
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Example Content"
|
||||
author: "Chester"
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tincidunt ornare nibh, non elementum augue tempus eget. Pellentesque tempus scelerisque iaculis. Nullam interdum ultricies nibh quis sollicitudin. Donec ornare fermentum facilisis. Ut at sem ac sem imperdiet varius a eget tortor. Nam eu augue eget orci semper maximus in eget augue. Mauris ornare, nisl ut suscipit consectetur, mi quam interdum tellus, at rutrum quam eros ultrices mi.
|
||||
|
|
|
@ -12,8 +12,11 @@ body {
|
|||
|
||||
html {
|
||||
font-family: $baskerville;
|
||||
font-size: $default-font-size;
|
||||
font-size: 14px;
|
||||
|
||||
@media (min-width: 600px) {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -26,6 +29,7 @@ h3,
|
|||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: $default-shade;
|
||||
font-family: $palatino;
|
||||
line-height: normal;
|
||||
}
|
||||
|
|
|
@ -1,27 +1,30 @@
|
|||
.post {
|
||||
padding: 3rem 0;
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: .5px solid $grey-2;
|
||||
}
|
||||
|
||||
&-time {
|
||||
&-info {
|
||||
color: $default-tint;
|
||||
font-family: $sans-font;
|
||||
font-weight: 700;
|
||||
font-family: $palatino;
|
||||
letter-spacing: .5px;
|
||||
text-align: center;
|
||||
|
||||
span {
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
color: $default-shade;
|
||||
font-size: 2.7rem;
|
||||
margin: 0 0 .8rem;
|
||||
font-family: $sans-font;
|
||||
font-size: 4rem;
|
||||
margin: 1rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $default-shade;
|
||||
font-size: 2.7rem;
|
||||
line-height: normal;
|
||||
}
|
||||
&-line {
|
||||
border-top: .4rem solid $default-color;
|
||||
display: block;
|
||||
margin: 0 auto 3rem;
|
||||
width: 4rem;
|
||||
}
|
||||
|
||||
p {
|
||||
|
|
|
@ -10,7 +10,6 @@ $blue: #4a9ae1;
|
|||
$baskerville: 'Libre Baskerville', 'Times New Roman', Times, serif;
|
||||
$palatino: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif;
|
||||
$sans-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
$default-font-size: 16px;
|
||||
|
||||
$monospaced-font: Menlo, Monaco, monospace;
|
||||
$code-color: #bf616a;
|
||||
|
|
Loading…
Reference in a new issue