Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
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
Commits
bd65e364
Commit
bd65e364
authored
Jul 05, 2016
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tags
parent
907c9a70
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
103 additions
and
118 deletions
+103
-118
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+1
-1
src/main/webapp/skins/next/archive-articles.ftl
src/main/webapp/skins/next/archive-articles.ftl
+0
-26
src/main/webapp/skins/next/archives.ftl
src/main/webapp/skins/next/archives.ftl
+42
-30
src/main/webapp/skins/next/css/next.css
src/main/webapp/skins/next/css/next.css
+26
-0
src/main/webapp/skins/next/links.ftl
src/main/webapp/skins/next/links.ftl
+0
-38
src/main/webapp/skins/next/tags.ftl
src/main/webapp/skins/next/tags.ftl
+34
-23
No files found.
src/main/webapp/js/common.js
View file @
bd65e364
...
...
@@ -203,7 +203,7 @@ var Util = {
}
}
// 按字母或者中文拼音进行排序
// 按字母或者中文拼音进行排序
$
(
"
#
"
+
id
).
html
(
$
(
"
#
"
+
id
+
"
li
"
).
get
().
sort
(
function
(
a
,
b
)
{
var
valA
=
$
(
a
).
find
(
"
span
"
).
text
().
toLowerCase
();
var
valB
=
$
(
b
).
find
(
"
span
"
).
text
().
toLowerCase
();
...
...
src/main/webapp/skins/next/archive-articles.ftl
deleted
100644 → 0
View file @
907c9a70
<
#include
"
macro-head
.
ftl
"
>
<!DOCTYPE html>
<html>
<head>
<
@
head
title=
"${archiveDate.archiveDateMonth} ${archiveDate.archiveDateYear} (${archiveDate.archiveDatePublishedArticleCount}) - ${blogTitle}"
>
<meta
name=
"keywords"
content=
"${metaKeywords},${archiveDate.archiveDateYear}${archiveDate.archiveDateMonth}"
/>
<meta
name=
"description"
content=
"<#list articles as article>${article.articleTitle}<#if article_has_next>,</#if></#list>"
/>
</
@
head>
</head>
<body>
<
#include
"
side
.
ftl
"
>
<main>
<h2
class=
"classify-name"
>
${archive1Label}
<
#if
"
en
"
==
localeString
?
substring
(
0
,
2
)
>
${archiveDate.archiveDateMonth} ${archiveDate.archiveDateYear} (${archiveDate.archiveDatePublishedArticleCount})
<
#else
>
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel} (${archiveDate.archiveDatePublishedArticleCount})
</
#
if>
</h2>
<
#include
"
article-list
.
ftl
"
>
<
#include
"
footer
.
ftl
"
>
</main>
</body>
</html>
src/main/webapp/skins/next/archives.ftl
View file @
bd65e364
...
...
@@ -8,36 +8,48 @@
</
@
head>
</head>
<body>
<
#include
"
side
.
ftl
"
>
<main
class=
"classify"
>
<article>
<header>
<h2>
<a
rel=
"archive"
href=
"${servePath}/archives.html"
>
${archiveLabel}
</a>
</h2>
</header>
<
#if
0
!=
archiveDates
?
size
>
<ul
class=
"tags fn-clear"
>
<
#list
archiveDates
as
archiveDate
>
<li>
<
#if
"
en
"
==
localeString
?
substring
(
0
,
2
)
>
<a
class=
"tag"
href=
"${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title=
"${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})"
>
${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})
</a>
<
#else
>
<a
class=
"tag"
href=
"${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title=
"${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})"
>
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})
</a>
</
#
if>
</li>
</
#
list>
</ul>
</
#
if>
</article>
<div
class=
"container one-column page-home"
>
<div
class=
"headband"
></div>
<
#include
"
header
.
ftl
"
>
<main
id=
"main"
class=
"main"
>
<div
class=
"main-inner"
>
<div
id=
"content"
class=
"content"
>
<article>
<header>
<h2>
<a
rel=
"archive"
href=
"${servePath}/archives.html"
>
${archiveLabel}
</a>
</h2>
</header>
<
#if
0
!=
archiveDates
?
size
>
<ul
class=
"tags fn-clear"
>
<
#list
archiveDates
as
archiveDate
>
<li>
<
#if
"
en
"
==
localeString
?
substring
(
0
,
2
)
>
<a
class=
"tag"
href=
"${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title=
"${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})"
>
${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})
</a>
<
#else
>
<a
class=
"tag"
href=
"${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title=
"${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})"
>
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})
</a>
</
#
if>
</li>
<li>
<
#list
articles
as
article
>
${article.articleTitle}
</
#
list>
</li>
</
#
list>
</ul>
</
#
if>
</article>
</div>
</div>
<
#include
"
side
.
ftl
"
>
</main>
<
#include
"
footer
.
ftl
"
>
</
main
>
</
div
>
</body>
</html>
src/main/webapp/skins/next/css/next.css
View file @
bd65e364
...
...
@@ -271,4 +271,30 @@ ul.comments {
.cmtFromSym
{
font-size
:
1rem
;
color
:
#9EABB3
;
}
#tags
li
{
list-style
:
none
;
display
:
inline-block
;
}
#tags
.tags1
{
font-size
:
12px
;
color
:
#CCC
;
}
#tags
.tags2
{
font-size
:
16px
;
color
:
#999
;
}
#tags
.tags3
{
font-size
:
21px
;
color
:
#6f6f6f
;
}
#tags
.tags4
{
font-size
:
24px
;
color
:
#333
;
}
#tags
.tags5
{
font-size
:
30px
;
color
:
#111
;
}
\ No newline at end of file
src/main/webapp/skins/next/links.ftl
deleted
100644 → 0
View file @
907c9a70
<
#include
"
macro-head
.
ftl
"
>
<!DOCTYPE html>
<html>
<head>
<
@
head
title=
"${blogTitle}"
>
<meta
name=
"keywords"
content=
"${metaKeywords},${linkLabel}"
/>
<meta
name=
"description"
content=
"${metaDescription},${linkLabel}"
/>
</
@
head>
</head>
<body>
<
#include
"
side
.
ftl
"
>
<main
class=
"classify"
>
<article>
<header>
<h2>
<a
rel=
"archive"
href=
"${servePath}/links.html"
>
${linkLabel}
</a>
</h2>
</header>
<
#if
0
!=
links
?
size
>
<ul
class=
"tags fn-clear"
>
<
#list
links
as
link
>
<li>
<a
rel=
"friend"
href=
"${link.linkAddress}"
class=
"tag"
title=
"${link.linkDescription}"
target=
"_blank"
>
<img
src=
"${faviconAPI}<#list link.linkAddress?split('/') as x><#if x_index=2>${x}<#break></#if></#list>"
width=
"16"
height=
"16"
/>
${link.linkTitle}
</a>
</li>
</
#
list>
</ul>
</
#
if>
</article>
<
#include
"
footer
.
ftl
"
>
</main>
</body>
</html>
src/main/webapp/skins/next/tags.ftl
View file @
bd65e364
...
...
@@ -8,29 +8,40 @@
</
@
head>
</head>
<body>
<
#include
"
side
.
ftl
"
>
<main
class=
"classify"
>
<article>
<header>
<h2>
<a
rel=
"archive"
href=
"${servePath}/tags.html"
>
${tagLabel}
</a>
</h2>
</header>
<ul
class=
"tags fn-clear"
>
<
#list
tags
as
tag
>
<li>
<a
rel=
"tag"
class=
"tag"
data-count=
"${tag.tagPublishedRefCount}"
href=
"${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
title=
"${tag.tagTitle}"
>
<span>
${tag.tagTitle}
</span>
(
<b>
${tag.tagPublishedRefCount}
</b>
)
</a>
</li>
</
#
list>
</ul>
</article>
<div
class=
"container one-column"
>
<div
class=
"headband"
></div>
<
#include
"
header
.
ftl
"
>
<main
id=
"main"
class=
"main"
>
<div
class=
"main-inner"
>
<div
id=
"content"
class=
"content"
>
<div
id=
"posts"
class=
"posts-expand"
>
<div
class=
"tag-cloud"
>
<div
class=
"tag-cloud-title"
>
目前共计 ${tags?size} 个标签
</div>
<ul
class=
"tag-cloud-tags fn-clear"
id=
"tags"
>
<
#list
tags
as
tag
>
<li>
<a
rel=
"tag"
data-count=
"${tag.tagPublishedRefCount}"
href=
"${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
>
<span>
${tag.tagTitle}
</span>
(
<b>
${tag.tagPublishedRefCount}
</b>
)
</a>
</li>
</
#
list>
</ul>
</div>
</div>
</div>
</div>
<
#include
"
side
.
ftl
"
>
</main>
<
#include
"
footer
.
ftl
"
>
</main>
<script>
Util
.
buildTags
();
</script>
</div>
</body>
</html>
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