diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-17 23:08:14 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-17 23:09:31 +0100 |
| commit | e920f209fe488f4494b65748634af11db4e0d9ea (patch) | |
| tree | 3cd7abdddeadfbdd6d7044d9629f7b7225eb999f | |
| parent | c9a81ed2f27bd2658ed56fa2e556ab39c03141d3 (diff) | |
| download | wiki-e920f209fe488f4494b65748634af11db4e0d9ea.tar.gz wiki-e920f209fe488f4494b65748634af11db4e0d9ea.tar.bz2 wiki-e920f209fe488f4494b65748634af11db4e0d9ea.zip | |
Some improvements to blog system
| -rw-r--r-- | _config.yml.dist | 6 | ||||
| -rw-r--r-- | _layouts/git-wiki-blog.html | 39 | ||||
| -rw-r--r-- | _sass/git-wiki-style.scss | 28 | ||||
| -rw-r--r-- | blog/index.html | 3 |
4 files changed, 45 insertions, 31 deletions
diff --git a/_config.yml.dist b/_config.yml.dist index bd8b83e..a8f0382 100644 --- a/_config.yml.dist +++ b/_config.yml.dist @@ -15,6 +15,7 @@ show_wiki_posts_limit: 10 # from jekyll (read jekyll doc)
paginate: 5
paginate_path: "/blog/page:num"
+permalink: /blog/posts/:year/:month/:day/:title:output_ext
# (boolean) Enable/disable download buttons in sidebar
show_downloads: true
# (string) Specify branch rendered by gitpages allowing wiki tool buttons to work
@@ -69,6 +70,11 @@ defaults: type: "posts"
values:
layout: "git-wiki-post"
+ -
+ scope:
+ path: blog
+ values:
+ layout: "git-wiki-blog"
sass:
style: compressed
plugins:
diff --git a/_layouts/git-wiki-blog.html b/_layouts/git-wiki-blog.html index 135c185..a934b72 100644 --- a/_layouts/git-wiki-blog.html +++ b/_layouts/git-wiki-blog.html @@ -2,39 +2,20 @@ title: Blog layout: git-wiki-default --- -<style> -.pagination a, .pagination span { - padding: 7px 18px; - border: 1px solid #eee; - margin-left: -2px; - margin-right: -2px; - background-color: #ffffff; - display: inline-block; - } - -.pagination a { - &:hover { - background-color: #f1f1f1; - color: #333; - } - } - -.pagination { - text-align: center; - } -</style> <!-- This loops through the paginated posts --> {% for post in paginator.posts %} - <h1><a href="{{ post.url | relative_url }}">{{ post.id }}</a></h1> - <p class="author"> - <span class="date">{{ post.date | date: "%-d %B %Y"}}</span> - </p> - <div class="content"> - {{ post.excerpt }} + <div class="post-item"> + <p class="author"> + <span class="date">{{ post.date | date: "%-d %B %Y"}}</span> + </p> + <div class="content"> + {{ post.excerpt }} - <a href="{{ post.url | relative_url }}">...Read all</a> - </div> + <a href="{{ post.url | relative_url }}">...Read all</a> + </div> + </div> + <hr> {% endfor %} <!-- Pagination links --> diff --git a/_sass/git-wiki-style.scss b/_sass/git-wiki-style.scss index e3fb194..028781a 100644 --- a/_sass/git-wiki-style.scss +++ b/_sass/git-wiki-style.scss @@ -281,3 +281,31 @@ footer { color:#444; } } + +/* + Pagination rules +*/ + +.pagination a, .pagination span { + padding: 7px 18px; + border: 1px solid #eee; + margin-left: -2px; + margin-right: -2px; + background-color: #ffffff; + display: inline-block; +} + +.pagination a { + &:hover { + background-color: #f1f1f1; + color: #333; + } +} + +.pagination { + text-align: center; +} + +.post-item { + margin-bottom: 50px; +}
\ No newline at end of file diff --git a/blog/index.html b/blog/index.html index f806d66..890703d 100644 --- a/blog/index.html +++ b/blog/index.html @@ -1,4 +1,3 @@ --- -layout: git-wiki-blog ---- +---
\ No newline at end of file |
