fix(css): fix footer css

master
JimZhang 2 years ago
parent 1a82c78660
commit a594705f7e

@ -1,6 +1,6 @@
+++ +++
title = "My first post" title = "Hey, this is my blog"
date = 2019-11-27 date = 2022-08-25
+++ +++
This is my first blog post. Congratulations!

File diff suppressed because one or more lines are too long

@ -323,8 +323,10 @@ button:hover {
} }
footer { footer {
margin-top: 2rem;
bottom: 0; bottom: 0;
position: absolute;
left: 0;
right: 0;
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
@ -360,10 +362,14 @@ footer {
article { article {
margin-bottom: 2rem;
.body { .body {
word-wrap: break-word; word-wrap: break-word;
} }
} }
.pagination {
margin-bottom: 2rem;
}
pre { pre {
padding: 1rem; padding: 1rem;
overflow: auto; overflow: auto;

@ -17,12 +17,15 @@
{%- if page.draft %} {%- if page.draft %}
{% continue %} {% continue %}
{% endif -%} {% endif -%}
{%- if page.permalink is ending_with("/about/") %}
{% continue %}
{% endif -%}
<li > <li >
{{ page.date | date(format="%Y-%m-%d") }} <a href={{ page.permalink }}>{{page.title}}</a> {{ page.date | date(format="%Y-%m-%d") }} <a href={{ page.permalink }}>{{page.title}}</a>
</li> </li>
{% endfor -%} {% endfor -%}
{%- if current_path =="/" %} {% set pages_len = pages | length %}
{%- if current_path =="/" and pages_len > 7 %}
<li> <li>
<a href="/posts">more posts...</a> <a href="/posts">more posts...</a>
</li> </li>

Loading…
Cancel
Save