Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
0fce73d3
Unverified
Commit
0fce73d3
authored
Jan 09, 2020
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
#19 开始使用入口处理
parent
8c365bd6
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
290 additions
and
250 deletions
+290
-250
src/main/java/org/b3log/solo/service/DataModelService.java
src/main/java/org/b3log/solo/service/DataModelService.java
+5
-1
src/main/resources/skins/9IPHP/header.ftl
src/main/resources/skins/9IPHP/header.ftl
+36
-32
src/main/resources/skins/Bubble/macro-header.ftl
src/main/resources/skins/Bubble/macro-header.ftl
+20
-18
src/main/resources/skins/Casper/macro-header.ftl
src/main/resources/skins/Casper/macro-header.ftl
+46
-44
src/main/resources/skins/Finding/side.ftl
src/main/resources/skins/Finding/side.ftl
+15
-12
src/main/resources/skins/Jane/header.ftl
src/main/resources/skins/Jane/header.ftl
+31
-24
src/main/resources/skins/Medium/nav.ftl
src/main/resources/skins/Medium/nav.ftl
+28
-26
src/main/resources/skins/Pinghsu/footer.ftl
src/main/resources/skins/Pinghsu/footer.ftl
+15
-11
src/main/resources/skins/metro-hot/header.ftl
src/main/resources/skins/metro-hot/header.ftl
+18
-15
src/main/resources/skins/next/side.ftl
src/main/resources/skins/next/side.ftl
+10
-8
src/main/resources/skins/nijigen/header.ftl
src/main/resources/skins/nijigen/header.ftl
+46
-42
src/main/resources/skins/yilia/side.ftl
src/main/resources/skins/yilia/side.ftl
+20
-17
No files found.
src/main/java/org/b3log/solo/service/DataModelService.java
View file @
0fce73d3
...
...
@@ -59,7 +59,7 @@ import static org.b3log.solo.model.Article.ARTICLE_CONTENT;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.7.0.1
2, Jan 2
, 2020
* @version 1.7.0.1
3, Jan 9
, 2020
* @since 0.3.1
*/
@Service
...
...
@@ -1081,6 +1081,10 @@ public class DataModelService {
* @throws ServiceException service exception
*/
public
String
getTopBarHTML
(
final
RequestContext
context
)
throws
ServiceException
{
if
(
Solos
.
GEN_STATIC_SITE
)
{
return
""
;
}
Stopwatchs
.
start
(
"Gens Top Bar HTML"
);
try
{
...
...
src/main/resources/skins/9IPHP/header.ftl
View file @
0fce73d3
...
...
@@ -26,20 +26,22 @@
</a>
</h1>
<small> ${blogSubtitle}</small>
<div class="fn-right">
<#if isLoggedIn>
<a class="fn__flex-inline" href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon-setting"></i> ${adminLabel}
</a>
<a class="fn__flex-inline" href="${logoutURL}">
<i class="icon-logout"></i> ${logoutLabel}
</a>
<#if !staticSite>
<div class="fn-right">
<#if isLoggedIn>
<a class="fn__flex-inline" href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon-setting"></i> ${adminLabel}
</a>
<a class="fn__flex-inline" href="${logoutURL}">
<i class="icon-logout"></i> ${logoutLabel}
</a>
<#else>
<a class="fn__flex-inline" href="${servePath}/start">
<i class="icon-login"></i> ${startToUseLabel}
</a>
</#if>
</div>
<a class="fn__flex-inline" href="${servePath}/start">
<i class="icon-login"></i> ${startToUseLabel}
</a>
</#if>
</div>
</#if>
</div>
</div>
...
...
@@ -56,9 +58,9 @@
</a>
</#list>
<#if commentable>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon-refresh"></i> ${dynamicLabel}
</a>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon-refresh"></i> ${dynamicLabel}
</a>
</#if>
<a href="${servePath}/tags.html" rel="section">
<i class="icon-tags"></i> ${allTagsLabel}
...
...
@@ -85,23 +87,25 @@
<div class="responsive fn-none">
<i class="icon-list"></i>
<ul class="list">
<#if isLoggedIn>
<li>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon-setting"></i> ${adminLabel}
</a>
</li>
<li>
<a href="${logoutURL}">
<i class="icon-logout"></i> ${logoutLabel}
</a>
</li>
<#if !staticSite>
<#if isLoggedIn>
<li>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon-setting"></i> ${adminLabel}
</a>
</li>
<li>
<a href="${logoutURL}">
<i class="icon-logout"></i> ${logoutLabel}
</a>
</li>
<#else>
<li>
<a href="${servePath}/start">
<i class="icon-login"></i> ${startToUseLabel}
</a>
</li>
</#if>
</#if>
<li>
<a href="${servePath}">
...
...
@@ -117,11 +121,11 @@
</li>
</#list>
<#if commentable>
<li>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon-refresh"></i> ${dynamicLabel}
</a>
</li>
<li>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon-refresh"></i> ${dynamicLabel}
</a>
</li>
</#if>
<li>
<a href="${servePath}/tags.html" rel="section">
...
...
src/main/resources/skins/Bubble/macro-header.ftl
View file @
0fce73d3
...
...
@@ -55,7 +55,7 @@
<div class="side__meta">
${statistic.statisticPublishedBlogArticleCount} ${articleLabel} <br>
<#if commentable>
${statistic.statisticPublishedBlogCommentCount} ${commentLabel} <br>
${statistic.statisticPublishedBlogCommentCount} ${commentLabel} <br>
</#if>
<span data-uvstaturl="${servePath}">0</span> ${viewLabel} <br>
${onlineVisitorCnt} ${onlineVisitorLabel}
...
...
@@ -99,23 +99,25 @@
<li>
<a href="${servePath}/search?keyword=">Search</a>
</li>
<#if isLoggedIn>
<li>
<a href="${servePath}/admin-index.do#main">
${adminLabel}
</a>
</li>
<li>
<a href="${logoutURL}">
${logoutLabel}
</a>
</li>
<#else>
<li>
<a rel="alternate" href="${servePath}/start">
${startToUseLabel}
</a>
</li>
<#if !staticSite>
<#if isLoggedIn>
<li>
<a href="${servePath}/admin-index.do#main">
${adminLabel}
</a>
</li>
<li>
<a href="${logoutURL}">
${logoutLabel}
</a>
</li>
<#else>
<li>
<a rel="alternate" href="${servePath}/start">
${startToUseLabel}
</a>
</li>
</#if>
</#if>
</ul>
</div>
...
...
src/main/resources/skins/Casper/macro-header.ftl
View file @
0fce73d3
...
...
@@ -18,53 +18,55 @@
-->
<#macro header type>
<header class="header header--${type}">
<div class="wrapper header__title">
<h1 class="header__h1 fn__flex-inline">
<img src="${faviconURL}">
<a href="${servePath}" rel="start" class="header__title">${blogTitle}</a>
</h1>
<h2 class="header__h2">${blogSubtitle}</h2>
</div>
<nav class="wrapper header__nav fn__clear">
<a href="${servePath}" rel="start">
<#if type == 'article'>
${blogTitle}
<#else>
${indexLabel}
</#if>
</a>
<#list pageNavigations as page>
<a class="fn__flex-inline" href="${page.pagePermalink}" target="${page.pageOpenTarget}" rel="section">
<#if page.pageIcon != ''><img src="${page.pageIcon}"></#if> ${page.pageTitle}
<header class="header header--${type}">
<div class="wrapper header__title">
<h1 class="header__h1 fn__flex-inline">
<img src="${faviconURL}">
<a href="${servePath}" rel="start" class="header__title">${blogTitle}</a>
</h1>
<h2 class="header__h2">${blogSubtitle}</h2>
</div>
<nav class="wrapper header__nav fn__clear">
<a href="${servePath}" rel="start">
<#if type == 'article'>
${blogTitle}
<#else>
${indexLabel}
</#if>
</a>
</#list>
<a href="${servePath}/search">
${searchLabel}
</a>
<#list pageNavigations as page>
<a class="fn__flex-inline" href="${page.pagePermalink}" target="${page.pageOpenTarget}" rel="section">
<#if page.pageIcon != ''><img src="${page.pageIcon}"></#if> ${page.pageTitle}
</a>
</#list>
<div class="fn__right">
<#include "../../common-template/macro-user_site.ftl">
<@userSite dir=""></@userSite>
<a rel="alternate" href="${servePath}/rss.xml">
RSS
<a href="${servePath}/search">
${searchLabel}
</a>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main">
${adminLabel}
</a>
<a href="${logoutURL}">
${logoutLabel}
</a>
<#else>
<a rel="alternate" href="${servePath}/start">
${startToUseLabel}
</a>
</#if>
</div>
</nav>
</header>
<div class="fn__right">
<#include "../../common-template/macro-user_site.ftl">
<@userSite dir=""></@userSite>
<a rel="alternate" href="${servePath}/rss.xml">
RSS
</a>
<#if !staticSite>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main">
${adminLabel}
</a>
<a href="${logoutURL}">
${logoutLabel}
</a>
<#else>
<a rel="alternate" href="${servePath}/start">
${startToUseLabel}
</a>
</#if>
</#if>
</div>
</nav>
</header>
</#macro>
\ No newline at end of file
src/main/resources/skins/Finding/side.ftl
View file @
0fce73d3
...
...
@@ -17,30 +17,33 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div class="fn-clear">
<#if !staticSite>
<div class="fn-clear">
<span class="fn-right">
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}" class="icon-setting"></a>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}" class="icon-setting"></a>
<a title="${logoutLabel}" class="icon-logout" href="${logoutURL}"></a>
<#else>
<a href="${servePath}/start" title="${startToUseLabel}" class="icon-login"></a>
<a href="${servePath}/start" title="${startToUseLabel}" class="icon-login"></a>
</#if>
</span>
</div>
</div>
</#if>
<#if article?? && article.articleToC?? && article.articleToC?size > 0>
<#include "../../common-template/toc.ftl"/>
<#else>
<ul>
<#list pageNavigations as page>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><#if page.pageIcon != ''><img class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle}</a>
</li>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><#if page.pageIcon != ''><img
class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle}</a>
</li>
</#list>
<#if commentable>
<li>
<a href="${servePath}/dynamic.html">${dynamicLabel}</a>
</li>
<li>
<a href="${servePath}/dynamic.html">${dynamicLabel}</a>
</li>
</#if>
<li>
<a href="${servePath}/categories.html">${categoryLabel}</a>
...
...
@@ -76,9 +79,9 @@
${statistic.statisticPublishedBlogArticleCount}
</span><br/>
<#if commentable>
<span>
<span>
${commentCount1Label}
${statistic.statisticPublishedBlogCommentCount}
${statistic.statisticPublishedBlogCommentCount}
</span>
</#if>
<span>
...
...
src/main/resources/skins/Jane/header.ftl
View file @
0fce73d3
...
...
@@ -32,45 +32,52 @@
</a>
</#list>
<a href="${servePath}/categories.html" rel="section" aria-label="${categoryLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<a href="${servePath}/categories.html" rel="section" aria-label="${categoryLabel}"
class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__category"></i>
</a>
<a href="${servePath}/tags.html" rel="section" aria-label="${allTagsLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<a href="${servePath}/tags.html" rel="section" aria-label="${allTagsLabel}"
class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__tags"></i>
</a>
<a href="${servePath}/archives.html" aria-label="${archiveLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<a href="${servePath}/archives.html" aria-label="${archiveLabel}"
class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__inbox"></i>
</a>
<a rel="archive" href="${servePath}/links.html" aria-label="${linkLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<a rel="archive" href="${servePath}/links.html" aria-label="${linkLabel}"
class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__link"></i>
</a>
<a href="${servePath}/search" class="vditor-tooltipped__w vditor-tooltipped" aria-label="${searchLabel}">
<i class="icon__search"></i>
</a>
<a rel="alternate" href="${servePath}/rss.xml" rel="section" aria-label="RSS" class="vditor-tooltipped vditor-tooltipped__w">
<a rel="alternate" href="${servePath}/rss.xml" rel="section" aria-label="RSS"
class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__rss"></i>
</a>
</div>
<div>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main"
aria-label="${adminLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__setting"></i>
</a>
<a href="${logoutURL}"
aria-label="${logoutLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__logout"></i>
</a>
<#else>
<a href="${servePath}/start"
aria-label="${startToUseLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__login"></i>
</a>
</#if>
<span onclick="Util.goTop()"
aria-label="${putTopLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<#if !staticSite>
<div>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main"
aria-label="${adminLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__setting"></i>
</a>
<a href="${logoutURL}"
aria-label="${logoutLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__logout"></i>
</a>
<#else>
<a href="${servePath}/start"
aria-label="${startToUseLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__login"></i>
</a>
</#if>
<span onclick="Util.goTop()"
aria-label="${putTopLabel}" class="vditor-tooltipped vditor-tooltipped__w">
<i class="icon__up"></i>
</span>
</div>
</div>
</#if>
</header>
\ No newline at end of file
src/main/resources/skins/Medium/nav.ftl
View file @
0fce73d3
...
...
@@ -23,7 +23,7 @@
<svg>
<use xlink:href="#icon-home"></use>
</svg>
${indexLabel}
${indexLabel}
</a>
<a href="${servePath}/tags.html" rel="section">
<svg>
...
...
@@ -36,11 +36,11 @@
</svg> ${archiveLabel}
</a>
<#list pageNavigations as page>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}" rel="section">
<#if page.pageIcon != ''><img src="${page.pageIcon}"></#if> ${page.pageTitle}
</a>
</#list>
<#list pageNavigations as page>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}" rel="section">
<#if page.pageIcon != ''><img src="${page.pageIcon}"></#if> ${page.pageTitle}
</a>
</#list>
<a rel="archive" href="${servePath}/links.html">
<svg>
...
...
@@ -54,25 +54,27 @@
</svg>
RSS
</a>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main">
<svg>
<use xlink:href="#icon-setting"></use>
</svg> ${adminLabel}
</a>
<a href="${logoutURL}">
<svg>
<use xlink:href="#icon-out"></use>
</svg>
${logoutLabel}
</a>
<#else>
<a rel="alternate" href="${servePath}/start" rel="section">
<svg>
<use xlink:href="#icon-enter"></use>
</svg>
${startToUseLabel}
</a>
</#if>
<#if !staticSite>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main">
<svg>
<use xlink:href="#icon-setting"></use>
</svg> ${adminLabel}
</a>
<a href="${logoutURL}">
<svg>
<use xlink:href="#icon-out"></use>
</svg>
${logoutLabel}
</a>
<#else>
<a rel="alternate" href="${servePath}/start" rel="section">
<svg>
<use xlink:href="#icon-enter"></use>
</svg>
${startToUseLabel}
</a>
</#if>
</#if>
</div>
</nav>
\ No newline at end of file
src/main/resources/skins/Pinghsu/footer.ftl
View file @
0fce73d3
...
...
@@ -29,17 +29,20 @@
</a>
</#list>
<a class="ft__link" rel="alternate" href="${servePath}/rss.xml" rel="section">RSS</a>
<#if isLoggedIn>
<a class="ft__link" href="${servePath}/admin-index.do#main" title="${adminLabel}">${adminLabel}</a>
<a class="ft__link" href="${logoutURL}">${logoutLabel}</a>
<#else>
<a class="ft__link" href="${servePath}/start">${startToUseLabel}</a>
<#if !staticSite>
<#if isLoggedIn>
<a class="ft__link" href="${servePath}/admin-index.do#main" title="${adminLabel}">${adminLabel}</a>
<a class="ft__link" href="${logoutURL}">${logoutLabel}</a>
<#else>
<a class="ft__link" href="${servePath}/start">${startToUseLabel}</a>
</#if>
</#if>
</nav>
<div class="footer__border mobile__none"></div>
<div class="wrapper fn__flex">
<div class="fn__flex-1 mobile__none">
<div class="ft__fade">${adminUser.userName} - ${blogSubtitle}</div><br>
<div class="ft__fade">${adminUser.userName} - ${blogSubtitle}</div>
<br>
<#if noticeBoard??>
${noticeBoard}
</#if>
...
...
@@ -47,7 +50,8 @@
<#if 0 != mostUsedCategories?size>
<div class="footer__mid fn__flex-1 mobile__none">
<div class="ft__fade">${categoryLabel}</div> <br>
<div class="ft__fade">${categoryLabel}</div>
<br>
<#list mostUsedCategories as category>
<a href="${servePath}/category/${category.categoryURI}"
aria-label="${category.categoryTagCnt} ${cntLabel}${tagsLabel}"
...
...
@@ -59,12 +63,12 @@
<div class="fn__flex-1 footer__copyright">
<a class="ft__link" href="${servePath}/archives.html">
${statistic.statisticPublishedBlogArticleCount}
${articleLabel}
${statistic.statisticPublishedBlogArticleCount}
${articleLabel}
</a>
<#if commentable>
${statistic.statisticPublishedBlogCommentCount}
${commentLabel}</#if> <br>
${statistic.statisticPublishedBlogCommentCount}
${commentLabel}</#if> <br>
<span data-uvstaturl="${servePath}">0</span> <span class="ft-gray">${viewLabel}</span>
${onlineVisitorCnt} <span class="ft-gray">${onlineVisitorLabel}</span> <br>
© ${year}
...
...
src/main/resources/skins/metro-hot/header.ftl
View file @
0fce73d3
...
...
@@ -29,14 +29,15 @@
<a rel="nofollow" href="${servePath}/">${indexLabel}</a>
</li>
<#list pageNavigations as page>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><#if page.pageIcon != ''><img class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle}</a>
</li>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><#if page.pageIcon != ''><img
class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle}</a>
</li>
</#list>
<#if commentable>
<li>
<a href="${servePath}/dynamic.html">${dynamicLabel}</a>
</li>
<li>
<a href="${servePath}/dynamic.html">${dynamicLabel}</a>
</li>
</#if>
<li>
<a href="${servePath}/categories.html">${categoryLabel}</a>
...
...
@@ -51,13 +52,15 @@
<a href="${servePath}/links.html">${linkLabel}</a>
</li>
</ul>
<div class="fn-right top-info">
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}" data-ico="p"></a>
<hr>
<a href="${logoutURL}" title="${logoutLabel}" data-ico=""></a>
<#else>
<a href="${servePath}/start" title="${startToUseLabel}" data-ico=""></a>
</#if>
</div>
<#if !staticSite>
<div class="fn-right top-info">
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}" data-ico="p"></a>
<hr>
<a href="${logoutURL}" title="${logoutLabel}" data-ico=""></a>
<#else>
<a href="${servePath}/start" title="${startToUseLabel}" data-ico=""></a>
</#if>
</div>
</#if>
</div>
\ No newline at end of file
src/main/resources/skins/next/side.ftl
View file @
0fce73d3
...
...
@@ -73,27 +73,29 @@
</a>
</div>
<div class="links-of-author">
<#if isLoggedIn>
<span class="links-of-author-item">
<#if !staticSite>
<div class="links-of-author">
<#if isLoggedIn>
<span class="links-of-author-item">
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon-setting"></i> ${adminLabel}
</a>
</span>
<span class="links-of-author-item">
<span class="links-of-author-item">
<a href="${logoutURL}">
<i class="icon-logout"></i> ${logoutLabel}
</a>
</span>
<#else>
<span class="links-of-author-item">
<#else>
<span class="links-of-author-item">
<a href="${servePath}/start">
${startToUseLabel}
</a>
</span>
</#if>
</div>
</#if>
</div>
</#if>
<#if noticeBoard??>
<div class="links-of-author">
...
...
src/main/resources/skins/nijigen/header.ftl
View file @
0fce73d3
...
...
@@ -26,7 +26,7 @@
<header class="header">
<div class="header__wrap">
<a href="${servePath}" rel="start" class="header__logo">
<i class="icon__home"></i>
${blogTitle}
<i class="icon__home"></i> ${blogTitle}
</a>
<nav class="mobile__hidden header__nav">
...
...
@@ -36,9 +36,9 @@
</a>
</#list>
<#if commentable>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon__refresh"></i> ${dynamicLabel}
</a>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon__refresh"></i> ${dynamicLabel}
</a>
</#if>
<a href="${servePath}/tags.html" rel="section">
<i class="icon__tags"></i> ${allTagsLabel}
...
...
@@ -54,20 +54,22 @@
</a>
</nav>
<div class="header__login">
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon__setting"></i> ${adminLabel}
</a>
<a href="${logoutURL}">
<i class="icon__logout"></i> ${logoutLabel}
</a>
<#else>
<#if !staticSite>
<div class="header__login">
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon__setting"></i> ${adminLabel}
</a>
<a href="${logoutURL}">
<i class="icon__logout"></i> ${logoutLabel}
</a>
<#else>
<a href="${servePath}/start">
<i class="icon__login"></i> ${startToUseLabel}
</a>
</#if>
</div>
</#if>
</div>
</#if>
</div>
</header>
<div class="header__m fn__none">
...
...
@@ -76,37 +78,39 @@
<i class="icon__more" onclick="$(this).next().slideToggle()"></i>
<main class="module__list">
<ul>
<#if isLoggedIn>
<li>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon__setting"></i> ${adminLabel}
</a>
</li>
<li>
<a href="${logoutURL}">
<i class="icon__logout"></i> ${logoutLabel}
</a>
</li>
<#else>
<#if !staticSite>
<#if isLoggedIn>
<li>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
<i class="icon__setting"></i> ${adminLabel}
</a>
</li>
<li>
<a href="${logoutURL}">
<i class="icon__logout"></i> ${logoutLabel}
</a>
</li>
<#else>
<li>
<a href="${servePath}/start">
<i class="icon__login"></i> ${startToUseLabel}
</a>
</li>
</#if>
</#if>
<#list pageNavigations as page>
<li>
<a href="${
servePath}/start
">
<
i class="icon__login"></i> ${startToUseLabel
}
<a href="${
page.pagePermalink}" target="${page.pageOpenTarget}" rel="section
">
<
#if page.pageIcon != ''><img class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle
}
</a>
</li>
</#if>
<#list pageNavigations as page>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}" rel="section">
<#if page.pageIcon != ''><img class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle}
</a>
</li>
</#list>
</#list>
<#if commentable>
<li>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon__refresh"></i> ${dynamicLabel}
</a>
</li>
<li>
<a href="${servePath}/dynamic.html" rel="section">
<i class="icon__refresh"></i> ${dynamicLabel}
</a>
</li>
</#if>
<li>
<a href="${servePath}/tags.html" rel="section">
...
...
src/main/resources/skins/yilia/side.ftl
View file @
0fce73d3
...
...
@@ -40,14 +40,15 @@
<nav>
<ul>
<#list pageNavigations as page>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><#if page.pageIcon != ''><img class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle}</a>
</li>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><#if page.pageIcon != ''><img
class="page-icon" src="${page.pageIcon}"></#if>${page.pageTitle}</a>
</li>
</#list>
<li>
<#if commentable>
<a href="${servePath}/dynamic.html">${dynamicLabel}</a>
<a href="${servePath}/dynamic.html">${dynamicLabel}</a>
</#if>
<a href="${servePath}/tags.html">${allTagsLabel}</a>
...
...
@@ -65,21 +66,23 @@
</header>
<footer>
<#if noticeBoard??>
<div class="vditor-reset">${noticeBoard}</div>
<div class="vditor-reset">${noticeBoard}</div>
</#if>
<#if !staticSite>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}" class="icon-setting"></a>
<a title="${logoutLabel}" class="icon-logout" href="${logoutURL}"></a>
<#else>
<a href="${servePath}/start" title="${startToUseLabel}" class="icon-login"></a>
</#if>
</#if>
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}" class="icon-setting"></a>
<a title="${logoutLabel}" class="icon-logout" href="${logoutURL}"></a>
<#else>
<a href="${servePath}/start" title="${startToUseLabel}" class="icon-login"></a>
</#if>
<a rel="alternate" href="${servePath}/rss.xml" title="${subscribeLabel}" class="icon-rss"></a>
</footer>
<#if article?? && article.articleToC?? && article.articleToC?size > 0>
<div class="toc">
<a onclick="$('.side .toc').hide();" href="javascript:void(0)" class="close">X</a>
<#include "../../common-template/toc.ftl"/>
</div>
<div class="toc">
<a onclick="$('.side .toc').hide();" href="javascript:void(0)" class="close">X</a>
<#include "../../common-template/toc.ftl"/>
</div>
</#if>
</div>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment