mirror of
https://github.com/metagov/govarch-website.git
synced 2025-04-30 13:18:00 +00:00
improve layout
This commit is contained in:
parent
65f1e7d262
commit
00a6f6d883
@ -1,4 +1,7 @@
|
||||
# Hitchens
|
||||
---
|
||||
layout: page
|
||||
title: "Hitchens"
|
||||
---
|
||||
|
||||
An inarguably well-designed [Jekyll](http://jekyllrb.com) theme.
|
||||
|
||||
|
@ -40,5 +40,5 @@ markdown: kramdown
|
||||
plugins:
|
||||
- jekyll-paginate
|
||||
|
||||
paginate: 6
|
||||
paginate: 3
|
||||
paginate_path: "/page/:num/"
|
@ -44,13 +44,13 @@ layout: default
|
||||
|
||||
<div class="post-pagination">
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">⟨ Older</a>
|
||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">⟨ Older</a>
|
||||
{% else %}
|
||||
<span> </span>
|
||||
{% endif %}
|
||||
<span class="pagination-number">{{ paginator.page }} of {{ paginator.total_pages }}</span>
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer ⟩</a>
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer ⟩</a>
|
||||
{% else %}
|
||||
<span> </span>
|
||||
{% endif %}
|
||||
|
@ -10,11 +10,11 @@ layout: default
|
||||
|
||||
<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">
|
||||
{{ page.title }}
|
||||
</h1>
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
|
||||
<div class="post-content e-content" itemprop="articleBody">
|
||||
{{ content }}
|
||||
|
@ -5,6 +5,11 @@ body {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3em;
|
||||
margin: .5em auto;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2em;
|
||||
margin: 1em auto;
|
||||
|
@ -2,18 +2,22 @@
|
||||
background: $brand-color;
|
||||
box-sizing: border-box;
|
||||
min-height: 50vh;
|
||||
padding: 8em 2em;
|
||||
padding: 2em;
|
||||
position: relative;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
@media screen and (min-width: $on-laptop) {
|
||||
padding: 6em 2em;
|
||||
}
|
||||
}
|
||||
|
||||
.site-masthead h1 {
|
||||
font-size: 3em;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
@media (min-width: $on-tablet) {
|
||||
font-size: 6em;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
.site-navigation {
|
||||
margin-top: 4rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.site-navigation ul {
|
||||
|
@ -29,6 +29,11 @@
|
||||
@media (min-width: $on-tablet) {
|
||||
padding: .25em 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1em;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.post-link__title + .post-link__excerpt {
|
||||
@ -41,9 +46,11 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
* > {
|
||||
text-align: center;
|
||||
> * {
|
||||
flex-grow: 1;
|
||||
flex-basis: 0;
|
||||
padding: 1em 0;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 38 KiB |
Loading…
x
Reference in New Issue
Block a user