同步 timeline

This commit is contained in:
Vanessa 2013-02-01 15:34:21 +08:00
parent f0b9b79d4b
commit 70f3148608
12 changed files with 36 additions and 17 deletions

10
skin-preview/README.md Normal file
View File

@ -0,0 +1,10 @@
存放皮肤效果图
------------------------------------------------------
命名方式:皮肤名称-页面.png
----------------------------
平等,自由,奔放
Equality, Freedom, Passion
;-

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 893 KiB

BIN
skin-preview/timeline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -92,6 +92,8 @@
</div>
</div>
<#include "footer.ftl">
<@comment_script oId=article.oId></@comment_script>
<@comment_script oId=article.oId>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
</@comment_script>
</body>
</html>

View File

@ -702,18 +702,24 @@ article .article-title a {
.nav-abs li {
background-color: #DEDDDD;
border: 1px solid #6B6B6B;
color: #616161;
cursor: pointer;
float: left;
height: 20px;
list-style-type: none;
min-width: 54px;
padding: 3px 5px;
width: 28px;
}
.nav-abs li.year {
color: #CCCCCC;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
background-color: #6B6B6B;
clear: both;
color: #CCCCCC;
float: none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
width: auto;
border-width: 0;
}
.nav-abs li:hover {
@ -721,7 +727,7 @@ article .article-title a {
color: #000;
}
.nav-abs li.year:hover {
.nav-abs li.year:hover, .nav-abs li.open {
background-color: #353535;
color: #fff;
}

View File

@ -105,7 +105,7 @@ article .article-title a{color:#000;text-decoration:none;}
#submitCommentButton,#submitCommentButtonReply{background:none repeat scroll 0 0 #868889;border:1px solid #5D6265;border-radius:10em 10em 10em 10em;box-shadow:0 1px 0 rgba(255, 255, 255, 0.3) inset,0 1px 1px rgba(0, 0, 0, 0.3);color:#FFFFFF;cursor:pointer;padding:5px 20px;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.3);}
#submitCommentButton:hover,#submitCommentButtonReply:hover{color:#fff;background-color:#444;}
.nav-abs{background-color:#6B6B6B;border:1px solid #898989;border-radius:5px 5px 5px 5px;box-shadow:0 1px 3px rgba(0, 0, 0, 0.4) inset,0 1px 0 rgba(255, 255, 255, 0.7),0 -1px 0 rgba(255, 255, 255, 0.6);color:#CCCCCC;padding:5px 10px;position:absolute;right:30px;top:61px;z-index:1;text-align:center;white-space:nowrap;}
.nav-abs li{background-color:#DEDDDD;color:#616161;cursor:pointer;height:20px;list-style-type:none;min-width:54px;padding:3px 5px;}
.nav-abs li.year{color:#CCCCCC;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.5);background-color:#6B6B6B;}
.nav-abs li{background-color:#DEDDDD;border:1px solid #6B6B6B;color:#616161;cursor:pointer;float:left;height:20px;list-style-type:none;padding:3px 5px;width:28px;}
.nav-abs li.year{background-color:#6B6B6B;clear:both;color:#CCCCCC;float:none;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.5);width:auto;border-width:0;}
.nav-abs li:hover{background-color:#EFEEEE;color:#000;}
.nav-abs li.year:hover{background-color:#353535;color:#fff;}
.nav-abs li.year:hover,.nav-abs li.open{background-color:#353535;color:#fff;}

View File

@ -4,20 +4,20 @@
<head>
<@head title="${blogTitle}">
<meta name="keywords" content="${metaKeywords}"/>
<meta name="description" content="<#list articles as article>${article.articleTitle}<#if article_has_next>,</#if></#list>"/>
<meta name="description" content="<#list articles1 as article>${article.articleTitle}<#if article_has_next>,</#if></#list>"/>
</@head>
</head>
<body>
${topBarReplacement}
<#include "header.ftl">
<ul class="nav-abs" style="padding: 0;position: fixed">
<ul class="nav-abs" style="padding: 0;position: fixed;max-width: 160px">
<#list archiveDates as archiveDate>
<li data-year="${archiveDate.archiveDateYear}"
<li data-year="${archiveDate.archiveDateYear}" title="${archiveDate.archiveDatePublishedArticleCount}"
onclick="timeline.getArchive('${archiveDate.archiveDateYear}', '${archiveDate.archiveDateMonth}'<#if "en" == localeString?substring(0, 2)>, '${archiveDate.monthName}'</#if>)">
<#if "en" == localeString?substring(0, 2)>
${archiveDate.monthName} (${archiveDate.archiveDatePublishedArticleCount})
${archiveDate.monthName}
<#else>
${archiveDate.archiveDateMonth}${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})
${archiveDate.archiveDateMonth}
</#if>
</li>
</#list>
@ -36,7 +36,7 @@
</#if>
</span>
</h2>
<#list articles as article>
<#list articles1 as article>
<#if article.articleCreateDate?string("yyyy/MM") == "${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}">
<article>
<div class="module">

View File

@ -73,7 +73,7 @@ var timeline = {
if (year !== $this.data("year")) {
year = $this.data("year");
$this.before("<li class='close year' onclick='timeline.toggleArchives(this, " +
year + ")'>" + year + "</div></li>");
year + ")'>" + year + "</li>");
}
});

File diff suppressed because one or more lines are too long

View File

@ -146,7 +146,7 @@
page.load();
// emotions
page.replaceCommentsEm("#comments li > div > p");
<#nested>
<#nested>
});
</script>
</#macro>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 781 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -24,3 +24,4 @@ name=timeline
version=1.0.1
forSolo=0.5.6
memo=\u65f6\u5149\u6d41\u901d
note=\u6b64\u76ae\u80a4\u5ffd\u7565\u66f4\u65b0\u3001\u7f6e\u9876\u6392\u5e8f