Fix some design issues

This commit is contained in:
Nico Jensen 2021-06-21 19:06:30 +02:00
parent 617e2fd7d2
commit 9aa4ca29f4
3 changed files with 10 additions and 6 deletions

View file

@ -1,8 +1,8 @@
<main id="post-container">
{% for post in paginator.posts %}
<article class="post">
<header class="post-header">
<div class="post-title wrapper">
<header class="post-header wrapper">
<div class="post-title">
<h2 class="post-title"><a href="{{post.url}}" rel="bookmark">{{post.title}}</a></h2>
<p class="public-date">vom <time class="post-date" datetime="{{post.date | date: "%Y-%m-%d"}}">
{% assign m = post.date | date: "%-m" %}

View file

@ -3,9 +3,9 @@ layout: default
---
<main id="post-container" class="single-post">
<article class="post">
<header class="post-header">
<header class="post-header wrapper">
{% if page.featured-image %}{% include post-featured-image.html image=page.featured-image alt=page.featured-image-alt %}{% endif %}
<div class="post-title wrapper">
<div class="post-title">
<h2>
{% if page.external-url %}
<a href="{{ page.external-url }}">{{ page.title }}</a>

View file

@ -57,7 +57,7 @@ a:hover {
.header p {
margin: 0;
padding: 0 0 0 2px;
padding: 0 0 0 4px;
font: 700 14px/1 'Open Sans', sans-serif;
color: #444444;
}
@ -122,13 +122,17 @@ blockquote {
}
.single-post {
padding-top: 10rem;
padding-top: 2.5rem;
}
article.post:first-child {
padding-top: 0;
}
article.post p {
padding-left: 2px;
}
article.post header.post-header div.post-title h2 {
margin-bottom: 0;
}