improve layout

This commit is contained in:
Pat Dryburgh 2018-08-25 10:31:29 -07:00
parent 65f1e7d262
commit 00a6f6d883
9 changed files with 28 additions and 9 deletions

View File

@ -1,4 +1,7 @@
# Hitchens ---
layout: page
title: "Hitchens"
---
An inarguably well-designed [Jekyll](http://jekyllrb.com) theme. An inarguably well-designed [Jekyll](http://jekyllrb.com) theme.

View File

@ -40,5 +40,5 @@ markdown: kramdown
plugins: plugins:
- jekyll-paginate - jekyll-paginate
paginate: 6 paginate: 3
paginate_path: "/page/:num/" paginate_path: "/page/:num/"

View File

@ -44,13 +44,13 @@ layout: default
<div class="post-pagination"> <div class="post-pagination">
{% if paginator.next_page %} {% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">&lang; Older</a> <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">&lang;&nbsp;Older</a>
{% else %} {% else %}
<span>&nbsp;</span> <span>&nbsp;</span>
{% endif %} {% endif %}
<span class="pagination-number">{{ paginator.page }} of {{ paginator.total_pages }}</span> <span class="pagination-number">{{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.previous_page %} {% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer &rang;</a> <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer&nbsp;&rang;</a>
{% else %} {% else %}
<span>&nbsp;</span> <span>&nbsp;</span>
{% endif %} {% endif %}

View File

@ -10,11 +10,11 @@ layout: default
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting"> <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
{% unless page.title == "" %} {% if page.title != "" %}
<h1 class="post-title divided p-name" itemprop="name headline"> <h1 class="post-title divided p-name" itemprop="name headline">
{{ page.title }} {{ page.title }}
</h1> </h1>
{% endunless %} {% endif %}
<div class="post-content e-content" itemprop="articleBody"> <div class="post-content e-content" itemprop="articleBody">
{{ content }} {{ content }}

View File

@ -5,6 +5,11 @@ body {
line-height: 1.5; line-height: 1.5;
} }
h1 {
font-size: 3em;
margin: .5em auto;
}
h2 { h2 {
font-size: 2em; font-size: 2em;
margin: 1em auto; margin: 1em auto;

View File

@ -2,18 +2,22 @@
background: $brand-color; background: $brand-color;
box-sizing: border-box; box-sizing: border-box;
min-height: 50vh; min-height: 50vh;
padding: 8em 2em; padding: 2em;
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
@media screen and (min-width: $on-laptop) {
padding: 6em 2em;
}
} }
.site-masthead h1 { .site-masthead h1 {
font-size: 3em; font-size: 3em;
margin-bottom: 0; margin-bottom: 0;
margin-top: 0;
@media (min-width: $on-tablet) { @media (min-width: $on-tablet) {
font-size: 6em; font-size: 6em;
} }

View File

@ -1,5 +1,5 @@
.site-navigation { .site-navigation {
margin-top: 4rem; margin-top: 2rem;
} }
.site-navigation ul { .site-navigation ul {

View File

@ -29,6 +29,11 @@
@media (min-width: $on-tablet) { @media (min-width: $on-tablet) {
padding: .25em 0; padding: .25em 0;
} }
h1 {
font-size: 1em;
margin-bottom: 0;
margin-top: 0;
}
} }
.post-link__title + .post-link__excerpt { .post-link__title + .post-link__excerpt {
@ -41,9 +46,11 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
* > { text-align: center;
> * {
flex-grow: 1; flex-grow: 1;
flex-basis: 0; flex-basis: 0;
padding: 1em 0;
} }
a { a {
text-decoration: none; text-decoration: none;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 38 KiB