📄 navigation.jspf
字号:
<c:choose> <%-- // todo only show nav links when detail is blog entry, not static page --%> <c:when test="${displayMode == 'detail'}"> <div id="linearNavigationLinks"> <c:if test="${not empty blogEntry.previousBlogEntry}"> <a href="${blogEntry.previousBlogEntry.localPermalink}"><< ${blogEntry.previousBlogEntry.title}</a> | </c:if> <a href="${blog.url}"><fmt:message key="common.home" /></a> <c:if test="${not empty blogEntry.nextBlogEntry}"> | <a href="${blogEntry.nextBlogEntry.localPermalink}">${blogEntry.nextBlogEntry.title} >></a> </c:if> </div> </c:when> <c:when test="${displayMode == 'month'}"> <div id="linearNavigationLinks"> <c:if test="${not empty previousMonth}"> <a href="${previousMonth.permalink}"><< <fmt:formatDate value="${previousMonth.date}" pattern="MMMM yyyy"/></a> | </c:if> <a href="${blog.url}"><fmt:message key="common.home" /></a> <c:if test="${not empty nextMonth}"> | <a href="${nextMonth.permalink}"><fmt:formatDate value="${nextMonth.date}" pattern="MMMM yyyy"/> >></a> </c:if> </div> </c:when> <c:when test="${displayMode == 'day'}"> <div id="linearNavigationLinks"> <c:if test="${not empty previousDay}"> <a href="${previousDay.permalink}"><< <fmt:formatDate value="${previousDay.date}" type="date" dateStyle="long"/></a> | </c:if> <a href="${blog.url}"><fmt:message key="common.home" /></a> <c:if test="${not empty nextDay}"> | <a href="${nextDay.permalink}"><fmt:formatDate value="${nextDay.date}" type="date" dateStyle="long"/> >></a> </c:if> </div> </c:when> <c:when test="${displayMode == 'page'}"> <div id="linearNavigationLinks"> <c:if test="${pageable.page < pageable.maxPageRange}"> <a href="blogentries/${pageable.nextPage}.html"><fmt:message key="common.previous" /></a> | </c:if> <a href="${blog.url}"><fmt:message key="common.home" /></a> <c:if test="${pageable.page > pageable.minPageRange}"> | <a href="blogentries/${pageable.previousPage}.html"><fmt:message key="common.next" /></a> </c:if> </div> </c:when> <c:otherwise> <div id="linearNavigationLinks"> <a href="${blog.url}"><fmt:message key="common.home" /></a> </div> </c:otherwise></c:choose>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -