build:调整URL以及翻页逻辑。

This commit is contained in:
徐涛 2021-04-11 21:28:53 +08:00
parent 0ecde3a29a
commit 8b483fffa4
2 changed files with 6 additions and 6 deletions

View File

@ -13,12 +13,12 @@ timezone: 'Asia/Shanghai'
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: http://example.com
url: http://www.archgrid.com
permalink: :year/:month/:hash.html
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
trailing_index: false # Set to false to remove trailing 'index.html' from permalinks
trailing_html: false # Set to false to remove trailing '.html' from permalinks
# Directory
source_dir: source

View File

@ -1,13 +1,13 @@
<div class="uk-flex mx-2 my-2 main-content">
<section class="uk-width-3-4 px-1">
<%- partial('partial/post/list', {start: 1}) %>
<% if (page.total> 1) { %>
<% if (page.total > 1) { %>
<div class="uk-flex uk-flex-between p-1">
<a class="<% if (page.prev == 0) { %>uk-disabled<% } %>"
href="<%- page.prev_link %>"
href="/<%- page.prev_link %>"
uk-slidenav-previous></a>
<a class="<% if (page.next == 0) { %>uk-disabled<% } %>"
href="<%- page.next_link %>"
href="/<%- page.next_link %>"
uk-slidenav-next
></a>
</div>