bdemers commented on a change in pull request #91:
URL: https://github.com/apache/shiro-site/pull/91#discussion_r711138819
##########
File path: jbake/templates/index.ftl
##########
@@ -110,70 +110,64 @@
</a>
</div>
- <div class="panel panel-primary">
- <div class=" panel-heading" style="text-align: center;">
- <h3>Latest news:</h3>
+ <div class="card border-primary mb-4 shadow-sm">
+ <div class="card-header bg-primary text-white" style="text-align:
center;">
+ <h3 class="card-title">Latest news:</h3>
</div>
- <div class="panel-body">
+ <div class="card-body">
<#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}"><small><h4>${post.title}</h4></small></a>
+ <a href="${post.uri}"><small>${post.title}</small></a>
<p><small>by ${(post.author)!"The Apache Shiro Team"} on
${post.date?string("yyyy-MM-dd")}</small></p>
</div>
</#if>
</#list>
<hr/>
- <nav aria-label="News Pagination">
- <ul class="pagination">
+ <div class="btn-group d-flex justify-content-center" role="group"
aria-label="News Pagination">
<#if (currentPageNumber > 1)>
- <li class="page-item"><a class="page-link" href="<#if
(content.rootpath)??>${content.rootpath}</#if>/${(currentPageNumber==2)?then('',
currentPageNumber-1)}">Previous</a></li>
+ <a class="btn btn-outline-primary" href="<#if
(content.rootpath)??>${content.rootpath}</#if>/${(currentPageNumber==2)?then('',
currentPageNumber-1)}">Previous</a>
</#if>
<#if (currentPageNumber > 1 && currentPageNumber !=
numberOfPages)>
- <li class="page-item"><a class="page-link"
href="${currentPageNumber}">${currentPageNumber}</a></li>
+ <a class="btn btn-outline-primary "
href="${currentPageNumber}">${currentPageNumber}</a>
</#if>
<#if (currentPageNumber < numberOfPages)>
- <li class="page-item"><a class="page-link" href="<#if
(content.rootpath)??>${content.rootpath}</#if>${currentPageNumber +
1}">Next</a></li>
+ <a class="btn btn-outline-primary" href="<#if
(content.rootpath)??>${content.rootpath}</#if>${currentPageNumber + 1}">Next</a>
</#if>
Review comment:
Oh nice! I didn't see that component! I'll tweak it!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]