Test the pagination

This commit is contained in:
foo-dogsquared 2018-08-19 00:04:25 +08:00
parent 0e02114055
commit 26462f6a75
2 changed files with 8 additions and 4 deletions

View File

@ -19,9 +19,8 @@ description: >- # this means to ignore newlines until "baseurl:"
A blog that serves as a documentation of my progress
learning anything tech-related, mostly programming and
engineering. Yes, one of those blogs...
baseurl: "/blog" # the subpath of your site, e.g. /blog
baseurl: "/blog/" # the subpath of your site, e.g. /blog
url: "https://foo-dogsquared.github.io" # the base hostname & protocol for your site, e.g. http://example.com
encoding: UTF-8
codepen_username: foo-dogsquared
devto_username: foodogsquared
@ -30,7 +29,7 @@ gitlab_username: foo-dogsquared
linkedin_username: gabriel-arazas
twitter_username: foo_dogsquared
paginate: 10
paginate_path: "/page:num/"
paginate_path: '/blog/page:num/'
# Enabling Disqus
disqus:

View File

@ -7,7 +7,12 @@ permalink: /notes/
<ul id="entry-list" style="list-style: none; margin: 0; padding: 0">
{% for post in site.posts %}
<li class="entry-list-item">
<a href="{{post.url | relative_url}}">{{post.title}}</a>
<div style="display: flex; flex-flow: column wrap;">
<a href="{{post.url | relative_url}}">{{post.title}}</a>
{% if post.alt_title %}
<a href="{{post.url | relative_url}}" style="font-size: 0.9em">{{post.alt_title}}</a>
{% endif %}
</div>
<span class="post-list-date">{{post.date | date_to_long_string}}</span>
</li>
{% endfor %}