diff --git a/bootstyle/archive-articles.ftl b/bootstyle/archive-articles.ftl index a6f90d6..30ca2c2 100644 --- a/bootstyle/archive-articles.ftl +++ b/bootstyle/archive-articles.ftl @@ -1,11 +1,34 @@ - - - - <@head title="${archiveDate.archiveDateMonth} ${archiveDate.archiveDateYear} (${archiveDate.archiveDatePublishedArticleCount}) - ${blogTitle}"> - - - - - - - +<#include "macro-head.ftl"> + + + + <@head title="${archiveDate.archiveDateMonth} ${archiveDate.archiveDateYear} (${archiveDate.archiveDatePublishedArticleCount}) - ${blogTitle}"> + + + + + + <#include "header.ftl"> +
+
+ + +
+
+ <#include "footer.ftl"> + + diff --git a/bootstyle/css/bootstyle.css b/bootstyle/css/bootstyle.css index 6c245ff..51c92c0 100644 --- a/bootstyle/css/bootstyle.css +++ b/bootstyle/css/bootstyle.css @@ -113,6 +113,7 @@ a:hover { padding-left: 0px !important; padding-bottom: 0px; margin-bottom: 0px; + background-color: #f1f1f1; } .article-relative { diff --git a/bootstyle/css/bootstyle.min.css b/bootstyle/css/bootstyle.min.css new file mode 100644 index 0000000..109d3de --- /dev/null +++ b/bootstyle/css/bootstyle.min.css @@ -0,0 +1 @@ +body.top-navbar{padding-top:60px}a:hover{text-decoration:none;color:#00B}.page-header a{color:#000}.page-header a:hover{color:#9a9a9a}.page-header-m{margin:20px 0 5px}.page-header-bottom{margin:0 0 5px;font-size:12px;color:#585858}.article-tags{color:#676767;font-size:12px}.article-tags a{text-decoration:none}#footer{margin-top:20px}#footer .container{padding:10px 15px 10px}.pagination-btn{margin-top:20px}.em00,.em01,.em02,.em03,.em04,.em05,.em06,.em07,.em08,.em09,.em10,.em11,.em12,.em13,.em14{cursor:pointer;background-image:url("../images/emotions/emotions-ease.png");float:left;height:24px;margin-right:5px;width:24px;transition:all .2s ease-out;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out}#emotions span:hover{transform:scale(1.2) rotate(360deg);-webkit-transform:scale(1.2) rotate(360deg);-moz-transform:scale(1.2) rotate(360deg)}.em01{background-position:-24px 0}.em02{background-position:-48px 0}.em03{background-position:-72px 0}.em04{background-position:-96px 1px}.em05{background-position:0 -24px}.em06{background-position:-24px -24px}.em07{background-position:-48px -24px}.em08{background-position:-72px -24px}.em09{background-position:-96px -24px}.em10{background-position:0 -48px}.em11{background-position:-24px -48px}.em12{background-position:-48px -48px}.em13{background-position:-72px -48px}.em14{background-position:-96px -48px}.form-actions-m{padding-left:0!important;padding-bottom:0;margin-bottom:0;background-color:#f1f1f1}.article-relative{background-color:#fcfcfc;box-shadow:0 0 2px #d5d5d5;padding:5px 0 5px 20px}.article-relative:hover{background-color:#fff;box-shadow:0 0 4px #d5d5d5}.article-relative ul{list-style:none}.article-comments{margin-bottom:20px;position:relative}.comment-body-ref{position:absolute;left:86px;width:80%}.bs-docs-example{padding:20px;*padding-top:0;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin-bottom:20px}.bs-docs-example-child{padding:5px;*padding-top:0;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}#tags.other-main{list-style:none}#tags li{float:left;height:38px}#tags a{margin:3px 6px;padding:3px 12px;background-color:#fcfcfc;box-shadow:0 0 2px #d5d5d5;float:left}#tags a:hover{text-shadow:0 0 2px;text-decoration:none;box-shadow:0 0 4px #d5d5d5;color:#769abb}.tags1,.tags1:visited{font-size:12px;color:#a7a7a7}.tags2,.tags2:visited{font-size:14px;color:#808080}.tags3,.tags3:visited{font-size:16px;color:#595959}.tags4,.tags4:visited{font-size:18px;color:#323232}.tags5,.tags5:visited{font-size:20px;color:#0a0a0a} \ No newline at end of file diff --git a/bootstyle/footer.ftl b/bootstyle/footer.ftl index e0f898b..6366ae7 100644 --- a/bootstyle/footer.ftl +++ b/bootstyle/footer.ftl @@ -1,80 +1,81 @@ - - -
TOP
- - - - - -${plugins} + + +
TOP
+ + + + + +${plugins} diff --git a/bootstyle/header.ftl b/bootstyle/header.ftl index 5db8c3f..bb12024 100644 --- a/bootstyle/header.ftl +++ b/bootstyle/header.ftl @@ -1,27 +1,27 @@ - - + + diff --git a/bootstyle/index.ftl b/bootstyle/index.ftl index 83b5a86..ff25427 100644 --- a/bootstyle/index.ftl +++ b/bootstyle/index.ftl @@ -1,24 +1,24 @@ -<#include "macro-head.ftl"> - - - - <@head title="${blogTitle}"> - - - - - - <#include "header.ftl"> -
-
-
- <#include "article-list.ftl"> -
- -
-
- <#include "footer.ftl"> - - +<#include "macro-head.ftl"> + + + + <@head title="${blogTitle}"> + + + + + + <#include "header.ftl"> +
+
+
+ <#include "article-list.ftl"> +
+ +
+
+ <#include "footer.ftl"> + + diff --git a/bootstyle/js/bootstyle.min.js b/bootstyle/js/bootstyle.min.js new file mode 100644 index 0000000..311c787 --- /dev/null +++ b/bootstyle/js/bootstyle.min.js @@ -0,0 +1,6 @@ +var bootstyle={getCurrentPage:function(){var $next=$(".pagination-btn");if($next.length>0){window.currentPage=$next.data("page");}},setNavCurrent:function(){$(".nav li a").each(function(){var $this=$(this);var path1=latkeConfig.servePath+location.pathname,path2=latkeConfig.servePath+location.pathname.substr(0,location.pathname.length-1);if($this.attr("href")===path1||$this.attr("href")===path2){$this.parent().addClass("active");}else if(/\/[0-9]+$/.test(location.pathname)){$(".nav li")[0].className="current";}});},setCommentEmotions:function(){$(".comments").each(function(){$(this).html(Util.replaceEmString($(this).html()));});},init:function(){this.getCurrentPage();this.setNavCurrent();this.setCommentEmotions();}};$(function(){bootstyle.init();}) +var getNextPage=function(){var $more=$(".pagination-btn");currentPage+=1;var path="/articles/";if(location.pathname.indexOf("tags")>-1){var tagsPathnaem=location.pathname.split("/tags/");var tags=tagsPathnaem[1].split("/");path="/articles/tags/"+tags[0]+"/";}else if(location.pathname.indexOf("archives")>-1){var archivesPathname=location.pathname.split("/archives/");var archives=archivesPathname[1].split("/");path="/articles/archives/"+archives[0]+"/"+archives[1]+"/";} + var nextLabel='',btn_background='';$.ajax({url:latkeConfig.servePath+path+currentPage,type:"GET",beforeSend:function(){nextLabel=$more.text();btn_background=$more.css('background');$more.text(' ').css("background","url("+latkeConfig.staticServePath+"/skins/ease/images/ajax-loader.gif) no-repeat scroll center center #fefefe");},success:function(result,textStatus){var pagination=result.rslts.pagination;for(var i=0;i');articleHTML.push('

'+article.articleTitle+'

');articleHTML.push('');articleHTML.push('
');articleHTML.push('
  • ');if(article.hasUpdated){articleHTML.push(Util.toDate(article.articleUpdateDate,' yyyy-MM-dd HH:mm '));}else{articleHTML.push(Util.toDate(article.articleCreateDate,' yyyy-MM-dd HH:mm '));} + articleHTML.push('
  • ');articleHTML.push(' ');articleHTML.push(article.authorName);articleHTML.push(' ');articleHTML.push('
    ');articleHTML.push('
  • ');articleHTML.push(' ');articleHTML.push(article.articleViewCount+' '+Label.viewLabel);articleHTML.push(' ');articleHTML.push('
  • ');articleHTML.push(' '+article.articleCommentCount+' '+Label.commentLabel+' ');articleHTML.push('
    ');articleHTML.push(article.articleAbstract);articleHTML.push('
    ');articleHTML.push('
  • '+Label.tag1Label);var articleTags=article.articleTags.split(',');for(var j=0;j');articleHTML.push('');articleHTML.push(articleTag);articleHTML.push('');} + articleHTML.push('
    ');$more.before(articleHTML.join(''));} + if(pagination.paginationPageCount===currentPage){$more.remove();}else{$more.text(nextLabel).css("background",'');}}});}; \ No newline at end of file diff --git a/bootstyle/lang/lang_zh_CN.properties b/bootstyle/lang/lang_zh_CN.properties index 89544d7..b5a1534 100644 --- a/bootstyle/lang/lang_zh_CN.properties +++ b/bootstyle/lang/lang_zh_CN.properties @@ -1,94 +1,94 @@ -# -# Copyright (c) 2009, 2010, 2011, B3log Team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# -# Description: Language configurations(zh_CN) for skin "ease". -# Version: 1.0.0.5, May 22, 2012 -# Author: Liyuan Li -# -dynamicLabel=\u52a8\u6001 -moreLabel=\u66f4\u591a -contentLabel=\u5168\u6587 -abstractLabel=\u6458\u8981 -viewCount1Label=\u6d4f\u89c8\u6b21\u6570\uff1a -articleCount1Label=\u6587\u7ae0\u603b\u6570\uff1a -commentCount1Label=\u8bc4\u8bba\u603b\u6570\uff1a -allTagsLabel=\u6807\u7b7e\u5899 -updatedLabel=\u6709\u66f4\u65b0\uff01 -topArticleLabel=\u7f6e\u9876\uff01 -archiveLabel=\u5b58\u6863 -yearLabel=\u5e74 -monthLabel=\u6708 -recentArticlesLabel=\u6700\u65b0\u6587\u7ae0 -recentCommentsLabel=\u6700\u65b0\u8bc4\u8bba -mostCommentArticlesLabel=\u8bc4\u8bba\u6700\u591a\u7684\u6587\u7ae0 -mostViewCountArticlesLabel=\u8bbf\u95ee\u6700\u591a\u7684\u6587\u7ae0 -popTagsLabel=\u5206\u7c7b\u6807\u7b7e -linkLabel=\u53cb\u60c5\u94fe\u63a5 -indexLabel=\u9996\u9875 -sumLabel=\u5171 -pageLabel=\u9875 -clearAllCacheLabel=\u6e05\u9664\u6240\u6709\u9875\u9762\u7f13\u5b58 -clearCacheLabel=\u6e05\u9664\u672c\u9875\u7f13\u5b58 -adminLabel=\u7ba1\u7406 -logoutLabel=\u767b\u51fa -loginLabel=\u767b\u5f55 -em00Label=\u5fae\u7b11 -em01Label=\u5927\u7b11 -em02Label=\u9ad8\u5174 -em03Label=\u60b2\u4f24 -em04Label=\u54ed\u6ce3 -em05Label=\u65e0\u8bed -em06Label=\u70e6\u8e81 -em07Label=\u751f\u6c14 -em08Label=\u6211\u7785 -em09Label=\u60ca\u8bb6 -em10Label=\u9177 -em11Label=\u987d\u76ae -em12Label=\u7231\u5fc3 -em13Label=\u5fc3\u788e -em14Label=\u9b54\u9b3c -commentLabel=\u8bc4\u8bba -viewLabel=\u6d4f\u89c8 -authorLabel=\u4f5c\u8005 -previousPageLabel=\u4e0a\u4e00\u9875 -nextPagePabel=\u4e0b\u4e00\u9875 -firstPageLabel=\u7b2c\u4e00\u9875 -lastPageLabel=\u6700\u540e\u4e00\u9875 -archive1Label=\u5b58\u6863\uff1a -author1Label=\u4f5c\u8005\uff1a -tag1Label=\u6807\u7b7e\uff1a -sorryLabel=\u5bf9\u4e0d\u8d77\uff01 -notFoundLabel=\u627e\u4e0d\u5230\uff01 -returnTo1Label=\u8fd4\u56de\uff1a -replyLabel=\u56de\u590d -commentNameLabel=\u59d3\u540d -commentEmailLabel=\u90ae\u7bb1 -commentURLLabel=URL -submmitCommentLabel=\u63d0\u4ea4\u8bc4\u8bba -nameTooLongLabel=\u59d3\u540d\u53ea\u80fd\u4e3a 2 \u5230 20 \u4e2a\u5b57\u7b26\uff01 -mailCannotEmptyLabel=\u90ae\u7bb1\u4e0d\u80fd\u4e3a\u7a7a\uff01 -mailInvalidLabel=\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e\uff01 -commentContentCannotEmptyLabel=\u8bc4\u8bba\u5185\u5bb9\u53ea\u80fd\u4e3a 2 \u5230 500 \u4e2a\u5b57\u7b26\uff01 -captchaCannotEmptyLabel=\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01 -loadingLabel=\u8f7d\u5165\u4e2d.... -relevantArticlesLabel=\u76f8\u5173\u9605\u8bfb -randomArticlesLabel=\u968f\u673a\u9605\u8bfb -externalRelevantArticlesLabel=\u7ad9\u5916\u76f8\u5173\u9605\u8bfb -captchaErrorLabel=\u9a8c\u8bc1\u7801\u9519\u8bef -b3logLabel=B3LOG -killBrowserLabel=

    \u8ba9\u6211\u4eec\u653e\u5f03\u4f7f\u7528\u90a3\u4e9b\u8fc7\u65f6\u3001\u4e0d\u5b89\u5168\u7684\u6d4f\u89c8\u5668\u5427\uff01

    \u4e3a\u4e86\u8ba9\u6d4f\u89c8\u5668\u66f4\u597d\u7684\u53d1\u5c55\uff0c\u4eba\u7c7b\u66f4\u52a0\u7684\u8fdb\u6b65\uff0c\u62e5\u6709\u66f4\u597d\u7684\u4f53\u9a8c\uff0c\u8ba9\u6211\u4eec\u653e\u5f03\u4f7f\u7528\u90a3\u4e9b\u8fc7\u65f6\u3001\u4e0d\u5b89\u5168\u7684\u6d4f\u89c8\u5668\u3002

    \u60a8\u53ef\u4ee5\u4e0b\u8f7d -noticeBoardLabel=¹«¸æ \ No newline at end of file +# +# Copyright (c) 2009, 2010, 2011, B3log Team +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# +# Description: Language configurations(zh_CN) for skin "ease". +# Version: 1.0.0.5, May 22, 2012 +# Author: Liyuan Li +# +dynamicLabel=\u52a8\u6001 +moreLabel=\u66f4\u591a +contentLabel=\u5168\u6587 +abstractLabel=\u6458\u8981 +viewCount1Label=\u6d4f\u89c8\u6b21\u6570\uff1a +articleCount1Label=\u6587\u7ae0\u603b\u6570\uff1a +commentCount1Label=\u8bc4\u8bba\u603b\u6570\uff1a +allTagsLabel=\u6807\u7b7e\u5899 +updatedLabel=\u6709\u66f4\u65b0\uff01 +topArticleLabel=\u7f6e\u9876\uff01 +archiveLabel=\u5b58\u6863 +yearLabel=\u5e74 +monthLabel=\u6708 +recentArticlesLabel=\u6700\u65b0\u6587\u7ae0 +recentCommentsLabel=\u6700\u65b0\u8bc4\u8bba +mostCommentArticlesLabel=\u8bc4\u8bba\u6700\u591a\u7684\u6587\u7ae0 +mostViewCountArticlesLabel=\u8bbf\u95ee\u6700\u591a\u7684\u6587\u7ae0 +popTagsLabel=\u5206\u7c7b\u6807\u7b7e +linkLabel=\u53cb\u60c5\u94fe\u63a5 +indexLabel=\u9996\u9875 +sumLabel=\u5171 +pageLabel=\u9875 +clearAllCacheLabel=\u6e05\u9664\u6240\u6709\u9875\u9762\u7f13\u5b58 +clearCacheLabel=\u6e05\u9664\u672c\u9875\u7f13\u5b58 +adminLabel=\u7ba1\u7406 +logoutLabel=\u767b\u51fa +loginLabel=\u767b\u5f55 +em00Label=\u5fae\u7b11 +em01Label=\u5927\u7b11 +em02Label=\u9ad8\u5174 +em03Label=\u60b2\u4f24 +em04Label=\u54ed\u6ce3 +em05Label=\u65e0\u8bed +em06Label=\u70e6\u8e81 +em07Label=\u751f\u6c14 +em08Label=\u6211\u7785 +em09Label=\u60ca\u8bb6 +em10Label=\u9177 +em11Label=\u987d\u76ae +em12Label=\u7231\u5fc3 +em13Label=\u5fc3\u788e +em14Label=\u9b54\u9b3c +commentLabel=\u8bc4\u8bba +viewLabel=\u6d4f\u89c8 +authorLabel=\u4f5c\u8005 +previousPageLabel=\u4e0a\u4e00\u9875 +nextPagePabel=\u4e0b\u4e00\u9875 +firstPageLabel=\u7b2c\u4e00\u9875 +lastPageLabel=\u6700\u540e\u4e00\u9875 +archive1Label=\u5b58\u6863\uff1a +author1Label=\u4f5c\u8005\uff1a +tag1Label=\u6807\u7b7e\uff1a +sorryLabel=\u5bf9\u4e0d\u8d77\uff01 +notFoundLabel=\u627e\u4e0d\u5230\uff01 +returnTo1Label=\u8fd4\u56de\uff1a +replyLabel=\u56de\u590d +commentNameLabel=\u59d3\u540d +commentEmailLabel=\u90ae\u7bb1 +commentURLLabel=URL +submmitCommentLabel=\u63d0\u4ea4\u8bc4\u8bba +nameTooLongLabel=\u59d3\u540d\u53ea\u80fd\u4e3a 2 \u5230 20 \u4e2a\u5b57\u7b26\uff01 +mailCannotEmptyLabel=\u90ae\u7bb1\u4e0d\u80fd\u4e3a\u7a7a\uff01 +mailInvalidLabel=\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e\uff01 +commentContentCannotEmptyLabel=\u8bc4\u8bba\u5185\u5bb9\u53ea\u80fd\u4e3a 2 \u5230 500 \u4e2a\u5b57\u7b26\uff01 +captchaCannotEmptyLabel=\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01 +loadingLabel=\u8f7d\u5165\u4e2d.... +relevantArticlesLabel=\u76f8\u5173\u9605\u8bfb +randomArticlesLabel=\u968f\u673a\u9605\u8bfb +externalRelevantArticlesLabel=\u7ad9\u5916\u76f8\u5173\u9605\u8bfb +captchaErrorLabel=\u9a8c\u8bc1\u7801\u9519\u8bef +b3logLabel=B3LOG +killBrowserLabel=

    \u8ba9\u6211\u4eec\u653e\u5f03\u4f7f\u7528\u90a3\u4e9b\u8fc7\u65f6\u3001\u4e0d\u5b89\u5168\u7684\u6d4f\u89c8\u5668\u5427\uff01

    \u4e3a\u4e86\u8ba9\u6d4f\u89c8\u5668\u66f4\u597d\u7684\u53d1\u5c55\uff0c\u4eba\u7c7b\u66f4\u52a0\u7684\u8fdb\u6b65\uff0c\u62e5\u6709\u66f4\u597d\u7684\u4f53\u9a8c\uff0c\u8ba9\u6211\u4eec\u653e\u5f03\u4f7f\u7528\u90a3\u4e9b\u8fc7\u65f6\u3001\u4e0d\u5b89\u5168\u7684\u6d4f\u89c8\u5668\u3002

    \u60a8\u53ef\u4ee5\u4e0b\u8f7d +noticeBoardLabel=\u516c\u544a \ No newline at end of file