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 # URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' ## 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: :year/:month/:hash.html
permalink_defaults: permalink_defaults:
pretty_urls: pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks trailing_index: false # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks trailing_html: false # Set to false to remove trailing '.html' from permalinks
# Directory # Directory
source_dir: source source_dir: source

View File

@ -4,10 +4,10 @@
<% if (page.total > 1) { %> <% if (page.total > 1) { %>
<div class="uk-flex uk-flex-between p-1"> <div class="uk-flex uk-flex-between p-1">
<a class="<% if (page.prev == 0) { %>uk-disabled<% } %>" <a class="<% if (page.prev == 0) { %>uk-disabled<% } %>"
href="<%- page.prev_link %>" href="/<%- page.prev_link %>"
uk-slidenav-previous></a> uk-slidenav-previous></a>
<a class="<% if (page.next == 0) { %>uk-disabled<% } %>" <a class="<% if (page.next == 0) { %>uk-disabled<% } %>"
href="<%- page.next_link %>" href="/<%- page.next_link %>"
uk-slidenav-next uk-slidenav-next
></a> ></a>
</div> </div>