build:调整URL以及翻页逻辑。
This commit is contained in:
parent
0ecde3a29a
commit
8b483fffa4
|
@ -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
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<div class="uk-flex mx-2 my-2 main-content">
|
<div class="uk-flex mx-2 my-2 main-content">
|
||||||
<section class="uk-width-3-4 px-1">
|
<section class="uk-width-3-4 px-1">
|
||||||
<%- partial('partial/post/list', {start: 1}) %>
|
<%- partial('partial/post/list', {start: 1}) %>
|
||||||
<% 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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user