Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Rautenkranz
site
Commits
920d0565
Commit
920d0565
authored
May 26, 2017
by
Tobias Rautenkranz
Browse files
Improve homepage layout
parent
68037c38
Changes
2
Hide whitespace changes
Inline
Side-by-side
_layouts/home.html
View file @
920d0565
...
...
@@ -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 }}
...
...
assets/main.css
View file @
920d0565
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment