This is an automated email from the ASF dual-hosted git repository. bmarwell pushed a commit to branch jbake in repository https://gitbox.apache.org/repos/asf/shiro-site.git
commit 35825df6d26939e1b82a1383e4425d3756013bfc Author: Benjamin Marwell <[email protected]> AuthorDate: Fri Oct 22 13:04:14 2021 +0200 fix post urls from pagination. --- jbake/templates/index.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jbake/templates/index.ftl b/jbake/templates/index.ftl index 6ff80c4..be4b00b 100644 --- a/jbake/templates/index.ftl +++ b/jbake/templates/index.ftl @@ -119,7 +119,7 @@ <#list posts as post> <#if (post.status == "published" && post?index >= (currentPageNumber-1) * config.index_posts_per_page?eval && post?index < currentPageNumber * config.index_posts_per_page?eval)> <div> - <a href="${post.uri}"><h4 class="news-title">${post.title}</h4></a> + <a href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>${post.uri}"><h4 class="news-title">${post.title}</h4></a> <p><small>by ${(post.author)!"The Apache Shiro Team"} on ${post.date?string("yyyy-MM-dd")}</small></p> </div> </#if>
