Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
site
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Tobias Rautenkranz
site
Commits
920d0565
Commit
920d0565
authored
May 26, 2017
by
Tobias Rautenkranz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve homepage layout
parent
68037c38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
home.html
_layouts/home.html
+9
-8
main.css
assets/main.css
+13
-0
No files found.
_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
Markdown
is supported
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