Skip to content

Commit 8af941b

Browse files
committed
Add icons and improve layout
1 parent 4888a20 commit 8af941b

File tree

9 files changed

+26
-12
lines changed

9 files changed

+26
-12
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: > # this means to ignore newlines until "show_exerpts:"
77
Google search results) and in your feed.xml site description.
88
show_excerpts: false # set to true to show excerpts on the homepage
99

10-
paginate: 5
10+
paginate: 1
1111
paginate_path: "/blog/page:num/"
1212

1313
tag_permalink_style: pretty

_includes/pagination.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
{% if paginator.total_pages > 1 %}
33
<div class="pagination">
44
{% if paginator.previous_page %}
5-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">< previous</a>
5+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="fas fa-chevron-left"></i></a>
66
{% else %}
7-
<span>< previous</span>
7+
<span><i class="fas fa-chevron-left"></i></span>
88
{% endif %}
99

1010
{% for page in (1..paginator.total_pages) %}
@@ -18,9 +18,9 @@
1818
{% endfor %}
1919

2020
{% if paginator.next_page %}
21-
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"> next ></a>
21+
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="fas fa-chevron-right"></i></a>
2222
{% else %}
23-
<span>next ></span>
23+
<span><i class="fas fa-chevron-right"></i></span>
2424
{% endif %}
2525
</div>
2626
{% endif %}

_includes/tagcloud.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% if site.plugins contains "jekyll/tagging" %}
33
{% assign size = site | tag_cloud | size %}
44
{% if size != 0 %}
5-
<h2>All tags</h2>
5+
<h2>all tags</h2>
66
<div class="tag-cloud">{{ site | tag_cloud }}</div>
77
{% endif %}
88
{% endif %}

_layouts/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% include author.html %}
55
{% assign posts_count = paginator.posts | size %}
66
{% if posts_count > 0 %}
7-
<h1>Recent blog articles</h1>
7+
<h1>recent articles</h1>
88
<div class="post-links">
99
{% for post in paginator.posts %}
1010
<div class="post-link-wrapper">
@@ -32,5 +32,5 @@ <h1>Recent blog articles</h1>
3232

3333
{% include tagcloud.html %}
3434
{% else %}
35-
<div>No posts yet.</div>
35+
<h2>no posts yet.</h2>
3636
{% endif %}

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1 class="post-title">{{ page.title }}</h1>
2727
{% assign size = site.related_posts | size %}
2828
{% if size != 0 %}
2929
<div class="related">
30-
<h2>Related Posts</h2>
30+
<h2>related posts</h2>
3131
<ul class="related-posts">
3232
{% for post in site.related_posts limit:3 %}
3333
<li>

_layouts/tag_page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
---
44
{% include author.html %}
5-
<h1 class="post-title">Articles tagged with <a class="tag" href="/tag/{{ page.tag }}/">{{ page.tag }}</a></h1>
5+
<h1 class="post-title">articles tagged with <a class="tag" href="/tag/{{ page.tag }}/">{{ page.tag }}</a></h1>
66
<div class="post-links">
77
{% for post in site.posts %}
88
{% for tag in post.tags %}

_sass/dash/_icons.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ $icon-chevron-right: "\f054";
55
$icon-check: "\f00c";
66
$icon-minus: "\f068";
77
$icon-flask: "\f0c3";
8+
$icon-tag: "\f02b";

_sass/dash/_layout.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@
231231
color: lighten($color-green, 20%);
232232
background-color: lighten($color-background-dark, 5%);
233233
}
234+
235+
& > svg {
236+
margin-right: 0.4em;
237+
}
238+
239+
&:before {
240+
content: $icon-tag;
241+
@include font-awesome-icon;
242+
}
234243
}
235244

236245
.post-tags {
@@ -250,7 +259,7 @@
250259

251260
.pagination {
252261
font-size: $post-link-font-size;
253-
margin: 2em 0;
262+
margin: 1em 0;
254263
& > a, & > span {
255264
font-weight: normal;
256265
display: inline-block;
@@ -263,6 +272,10 @@
263272
&:hover {
264273
text-decoration: none;
265274
}
275+
276+
svg {
277+
padding-left: 0.1em;
278+
}
266279
}
267280

268281
& > a {

jekyll-dash.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-dash"
5-
spec.version = "1.1.3"
5+
spec.version = "1.2.0"
66
spec.authors = ["Miguel Gonzalez Sanchez"]
77
spec.email = ["[email protected]"]
88

0 commit comments

Comments
 (0)