diff --git a/themes/grid/layout/category.ejs b/themes/grid/layout/category.ejs index 14d9101..1bfdbb3 100644 --- a/themes/grid/layout/category.ejs +++ b/themes/grid/layout/category.ejs @@ -1,17 +1,10 @@
<%- partial('partial/post/list', {start: 1}) %> - <% if (page.total > 1) { %> -
- - +
+ <%- uk_paginator({total: page.total, current: page.current, sideSize: 3, midSize: 6, base: url_for(page.path), mainClasses: ["mb-0"]}) %> +
- <% } %>
<%- partial('partial/side', {'noCategories': true, 'noTags': false}) %> diff --git a/themes/grid/layout/index.ejs b/themes/grid/layout/index.ejs index ac02bb8..b3389da 100644 --- a/themes/grid/layout/index.ejs +++ b/themes/grid/layout/index.ejs @@ -1,17 +1,10 @@
<%- partial('partial/post/list', {start: 1}) %> - <% if (page.total > 1) { %> -
- - +
+ <%- uk_paginator({total: page.total, current: page.current, sideSize: 3, midSize: 6, base: "/", mainClasses: ["mb-0"]}) %> +
- <% } %>
<%- partial('partial/side', {'noCategories': false, 'noTags': false}) %> diff --git a/themes/grid/layout/post.ejs b/themes/grid/layout/post.ejs index 67f1cdb..0c96133 100644 --- a/themes/grid/layout/post.ejs +++ b/themes/grid/layout/post.ejs @@ -21,24 +21,25 @@ separator: ' / ' }) %>
- <% } %> + <% } %>
<%- page.content %>
- <% if (page.tags.length> 0) { %> -
diff --git a/themes/grid/layout/recently.ejs b/themes/grid/layout/recently.ejs index 927d822..665c6fe 100644 --- a/themes/grid/layout/recently.ejs +++ b/themes/grid/layout/recently.ejs @@ -1,17 +1,10 @@
<%- partial('partial/post/update-list', {start: 1}) %> - <% if (page.total > 1) { %> -
- - +
+ <%- uk_paginator({total: page.total, current: page.current, sideSize: 3, midSize: 6, base: url_for(page.path), mainClasses: ["mb-0"]}) %> +
- <% } %>
<%- partial('partial/side', {'noCategories': false, 'noTags': false}) %> diff --git a/themes/grid/layout/tag.ejs b/themes/grid/layout/tag.ejs index 4cadc3b..9cf654f 100644 --- a/themes/grid/layout/tag.ejs +++ b/themes/grid/layout/tag.ejs @@ -1,17 +1,10 @@
<%- partial('partial/post/list', {start: 1}) %> - <% if (page.total > 1) { %> -
- - +
+ <%- uk_paginator({total: page.total, current: page.current, sideSize: 3, midSize: 6, base: url_for(page.path), mainClasses: ["mb-0"]}) %> +
- <% } %>
<%- partial('partial/side', {'noCategories': false, 'noTags': true}) %>