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 01e4f1c440f21a30cd3da379af96a81a699c8543 Author: Benjamin Marwell <[email protected]> AuthorDate: Fri Oct 22 12:26:53 2021 +0200 fix self link to page 1. --- jbake/templates/index.ftl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jbake/templates/index.ftl b/jbake/templates/index.ftl index 99f20b0..c7f4acc 100644 --- a/jbake/templates/index.ftl +++ b/jbake/templates/index.ftl @@ -133,7 +133,11 @@ <#else> <li class="page-item disabled" aria-disabled="true" disabled><a class="page-link" rel="prev" href="#">Previous</a></li> </#if> + <#if (currentPageNumber == 1)> + <li class="page-item"><a class="page-link" rel="self" href="<#if (content.rootpath)??>${content.rootpath}</#if>">${currentPageNumber}</a></li> + <#else> <li class="page-item"><a class="page-link" rel="self" href="<#if (content.rootpath)??>${content.rootpath}</#if>${currentPageNumber}">${currentPageNumber}</a></li> + </#if> <#if (currentPageNumber < numberOfPages)> <li class="page-item"><a class="page-link" rel="next" href="<#if (content.rootpath)??>${content.rootpath}</#if>${currentPageNumber + 1}">Next</a></li> <#else>
