Modify pagination and footer

This commit is contained in:
Chester How 2017-03-15 12:27:59 +08:00
parent 940e7a54cc
commit 1e52fcead2
9 changed files with 39 additions and 25 deletions

View file

@ -19,7 +19,7 @@
<footer> <footer>
<span> <span>
&copy; <time datetime="{{ site.time }}">{{ site.time | date: '%Y' }}</time>. All rights reserved. &copy; <time datetime="{{ site.time }}">{{ site.time | date: '%Y' }}</time> Chester How. All rights reserved.
</span> </span>
</footer> </footer>
</div> </div>

View file

@ -2,12 +2,14 @@
layout: default layout: default
--- ---
<div class="post"> <div>
<time class="post-time" datetime="{{ page.date }}">{{ page.date | date_to_string | upcase }}</time> <div class="post">
<h1 class="post-title">{{ page.title }}</h1> <time class="post-time" datetime="{{ page.date }}">{{ page.date | date_to_string | upcase }}</time>
<h1 class="post-title">{{ page.title }}</h1>
{{ content }} {{ content }}
</div>
</div> </div>
<div class="pagination"> <div class="pagination">

View file

@ -1,6 +1,6 @@
--- ---
layout: post layout: post
title: "Introducing Tale" title: "Welcome to Jekyll!"
categories: jekyll update categories: jekyll update
--- ---
@ -8,6 +8,17 @@ Youll find this post in your `_posts` directory. Go ahead and edit it and re-
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Jekyll also offers powerful support for code snippets: like these
### hey
{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekylls GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekylls GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
[jekyll-docs]: https://jekyllrb.com/docs/home [jekyll-docs]: https://jekyllrb.com/docs/home

View file

@ -1,5 +1,6 @@
* { * {
@include box-sizing; @include box-sizing;
line-height: 1.5;
} }
html, html,
@ -21,6 +22,7 @@ h4,
h5, h5,
h6 { h6 {
font-family: $sans-font; font-family: $sans-font;
line-height: normal;
} }
a { a {

View file

@ -33,9 +33,11 @@ header {
footer { footer {
font-family: $sans-font; font-family: $sans-font;
margin: 3rem 0; margin: 1.5rem 0 3rem;
text-align: center;
span { span {
color: $default-color; color: $default-color;
font-size: .8rem;
} }
} }

View file

@ -1,6 +1,10 @@
.post { .post {
padding: 3rem 0; padding: 3rem 0;
&:not(:last-child) {
border-bottom: .5px solid $grey-2;
}
&-time { &-time {
color: $default-tint; color: $default-tint;
font-family: $sans-font; font-family: $sans-font;
@ -16,11 +20,11 @@
a { a {
color: $default-shade; color: $default-shade;
font-size: 2.7rem; font-size: 2.7rem;
line-height: normal;
} }
} }
p { p {
line-height: 1.5rem;
margin: 0 0 1rem; margin: 0 0 1rem;
text-align: justify; text-align: justify;
} }

View file

@ -1,11 +1,8 @@
.preview {
&:not(:last-child) {
border-bottom: .5px solid $grey-2;
}
}
.pagination { .pagination {
border-bottom: .5px solid $grey-2;
border-top: .5px solid $grey-2;
font-family: $serif-font; font-family: $serif-font;
padding: 1rem 0;
position: relative; position: relative;
text-align: center; text-align: center;
@ -14,10 +11,6 @@
font-size: 1.1rem; font-size: 1.1rem;
} }
a {
@include transition(all .3s ease-out);
}
.home { .home {
color: $default-color; color: $default-color;
font-family: $sans-font; font-family: $sans-font;
@ -26,12 +19,12 @@
&:hover, &:hover,
&:focus, { &:focus, {
color: $default-tint;
text-decoration: underline; text-decoration: underline;
} }
} }
.arrow { .arrow {
@include transition(all .3s ease-out);
color: $default-color; color: $default-color;
font-size: 1.3rem; font-size: 1.3rem;
position: absolute; position: absolute;

View file

@ -5,7 +5,7 @@ title: Home
<div> <div>
{% for post in paginator.posts %} {% for post in paginator.posts %}
<div class="post preview"> <div class="post">
<time class="post-time" datetime="{{ post.date }}">{{ post.date | date_to_string | upcase }}</time> <time class="post-time" datetime="{{ post.date }}">{{ post.date | date_to_string | upcase }}</time>
<h1 class="post-title"><a href="{{ post.url | prepend: site.url }}">{{ post.title }}</a></h1> <h1 class="post-title"><a href="{{ post.url | prepend: site.url }}">{{ post.title }}</a></h1>

View file

@ -4,9 +4,9 @@
--- ---
@import 'variables'; @import 'variables';
@import 'layout';
@import 'syntax';
@import 'post';
@import 'home';
@import 'code';
@import 'base'; @import 'base';
@import 'code';
@import 'post';
@import 'syntax';
@import 'layout';
@import 'pagination';