Commit 920d0565 by Tobias Rautenkranz

Improve homepage layout

parent 68037c38
......@@ -2,7 +2,7 @@
layout: default
---
<main>
<h2>Blog Posts</h2>
<h2>Posts</h2>
{% assign post_limit = 3 %}
<ul class="post-list">
......@@ -19,19 +19,20 @@ layout: default
</li>
{% endfor %}
</ul>
<h3>
{% assign post_count = site.posts | size %}
{% if post_count > post_limit %}
<h3 class="old-posts">
<a href="blog/#{{post_limit | plus: 1 }}">
old posts ({{ post_count | minus: post_limit}})</a>
</h3>
[
<a href="blog/de">deutsch</a>
<a href="blog/en">english</a>
]
<ul class="language">
<li><a href="blog/de">deutsch</a></li>
<li><a href="blog/en">english</a></li>
</ul>
{% endif %}
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
<p>
subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a>
</p>
{{ content }}
......
......@@ -143,6 +143,19 @@ ul.post-list p {
max-width: 70ch;
}
ul.language {
display: inline;
padding: 0;
margin: 0;
}
ul.language li {
display: inline;
}
.old-posts {
margin-bottom: 0;
}
th, td {
padding: 0.3em;
border-width: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment