New Page Header
This commit is contained in:
parent
8e9f9d3cf4
commit
617e2fd7d2
5 changed files with 125 additions and 89 deletions
|
@ -1,6 +1,8 @@
|
|||
<main id="post-container">
|
||||
{% for post in paginator.posts %}
|
||||
<article class="post">
|
||||
<header class="post-header wrapper">
|
||||
<header class="post-header">
|
||||
<div class="post-title wrapper">
|
||||
<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" %}
|
||||
|
@ -22,11 +24,14 @@
|
|||
{{ post.date | date: "%Y" }}</time>
|
||||
{% if post.external-url %}
|
||||
| <a href="{{post.external-url}}">Org. Post</a>
|
||||
{% endif %}</p>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="post-content wrapper">
|
||||
{{post.content}}
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
{% include pagination.html %}
|
|
@ -1,6 +1,4 @@
|
|||
<header class="header" role="banner">
|
||||
<div class="wrapper">
|
||||
<h1><a href="/">Nico Jensen</a></h1>
|
||||
<p>Was kostet die Welt?! Achso... hm, dann nehm ich ne kleine Cola!</p>
|
||||
</div>
|
||||
</header>
|
|
@ -8,9 +8,7 @@ layout: compress
|
|||
<body>
|
||||
{% include header.html %}
|
||||
{% include navigation.html %}
|
||||
<main>
|
||||
{{content}}
|
||||
</main>
|
||||
{% include footer.html %}
|
||||
</body>
|
||||
</html>
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
<main id="post-container" class="single-post">
|
||||
<article class="post">
|
||||
<header class="post-header">
|
||||
{% if page.featured-image %}{% include post-featured-image.html image=page.featured-image alt=page.featured-image-alt %}{% endif %}
|
||||
|
@ -42,3 +43,4 @@ layout: default
|
|||
{{ content }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
|
@ -22,24 +22,44 @@ a:hover {
|
|||
background: none;
|
||||
}
|
||||
|
||||
header.header {
|
||||
padding-top: 6rem;
|
||||
padding-bottom: 3rem;
|
||||
overflow: hidden;
|
||||
.header {
|
||||
position: fixed;
|
||||
z-index: 20;
|
||||
width: 100%;
|
||||
height: 7rem;
|
||||
border-bottom: #EBF2F6 1px solid;
|
||||
padding: 1rem 0 1rem 2rem;
|
||||
background-color:hsla(0,0%,100%,.95);
|
||||
}
|
||||
|
||||
header.header h1 {
|
||||
.header:after {
|
||||
display: block;
|
||||
content: "";
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border: #E7EEF2 1px solid;
|
||||
position: relative;
|
||||
bottom: -20px;
|
||||
left: 50%;
|
||||
margin-left: -25px;
|
||||
background-color:hsla(0,0%,100%,.95);
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
margin: 0 0 1rem 0;
|
||||
padding: 0;
|
||||
font: 400 32px/1 'Open Sans', sans-serif;
|
||||
letter-spacing: -1px;
|
||||
color: #333;
|
||||
margin-bottom: 6px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
header.header p {
|
||||
.header p {
|
||||
margin: 0;
|
||||
padding: 0 0 0 2px;
|
||||
font: 700 14px/1 'Open Sans', sans-serif;
|
||||
color: #444444;
|
||||
padding: 0 0 0 2px;
|
||||
}
|
||||
|
||||
.red {
|
||||
|
@ -101,8 +121,12 @@ blockquote {
|
|||
padding-bottom: 3.6rem;
|
||||
}
|
||||
|
||||
.single-post {
|
||||
padding-top: 10rem;
|
||||
}
|
||||
|
||||
article.post:first-child {
|
||||
padding-top: 3.6rem;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
article.post header.post-header div.post-title h2 {
|
||||
|
@ -116,6 +140,7 @@ article.post header.post-header div.post-featured-image {
|
|||
article.post header.post-header div.post-featured-image img {
|
||||
max-width: 100%;
|
||||
width: 760px;
|
||||
opacity: 75%;
|
||||
}
|
||||
|
||||
article.post header.post-header p.public-date {
|
||||
|
@ -124,10 +149,14 @@ article.post header.post-header p.public-date {
|
|||
}
|
||||
|
||||
footer.site-footer div.wrapper, article .post-header, .pagination {
|
||||
padding-top: 3.6rem;
|
||||
padding-top: 2rem;
|
||||
border-top: #EBF2F6 1px solid;
|
||||
}
|
||||
|
||||
article.post:first-child .post-header {
|
||||
padding-top: 10rem;
|
||||
}
|
||||
|
||||
footer.site-footer div.wrapper:before, article.post header.post-header:before, .pagination:before {
|
||||
display: block;
|
||||
content: "";
|
||||
|
@ -135,12 +164,16 @@ footer.site-footer div.wrapper:before, article.post header.post-header:before, .
|
|||
height: 7px;
|
||||
border: #E7EEF2 1px solid;
|
||||
position: relative;
|
||||
top: -41px;
|
||||
top: -25px;
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
background: #FFF;
|
||||
border-radius: 100%;
|
||||
box-shadow: #FFF 0 0 0 5px;
|
||||
}
|
||||
|
||||
article.post:first-child header.post-header,
|
||||
article.post:first-child header.post-header:before {
|
||||
border: none!important;
|
||||
}
|
||||
|
||||
footer.site-footer {
|
||||
|
|
Loading…
Add table
Reference in a new issue