Bruce 标签墙

This commit is contained in:
Liang Ding 2014-07-17 09:40:21 +08:00
parent 414c3d985d
commit 351d3e090d
2 changed files with 27 additions and 23 deletions

View File

@ -20,7 +20,9 @@
<#assign curYear = year?number>
<h2>${year} ${yearLabel}</h2>
<#list archiveDates as archiveDate>
<#if curYear != archiveDate.archiveDateYear?number></div><div class="row"><hr/><h2>${archiveDate.archiveDateYear} ${yearLabel}</h2></#if>
<#if curYear != archiveDate.archiveDateYear?number></div>
<div class="row"><hr/><h2>${archiveDate.archiveDateYear} ${yearLabel}</h2></#if>
<span>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})">
@ -33,11 +35,10 @@
</div>
</#if>
</div>
<div class="col-sm-2"></div>
</div>
<div class="col-sm-2"></div>
</div>
</div>
<#include "footer.ftl">
</body>
<#include "footer.ftl">
</body>
</html>

View File

@ -8,27 +8,30 @@
</@head>
</head>
<body>
${topBarReplacement}
<#include "header.ftl">
<div class="main">
<div class="wrapper">
<ul id="tags" class="other-main">
<#list tags as tag>
<li>
<a rel="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>
<div class="clear"></div>
<div class="container">
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-8 site">
<ul>
<#list tags as tag>
<li>
<a rel="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>
</div>
</div>
<div class="col-sm-2"></div>
</div>
<#include "footer.ftl">
<script type="text/javascript">
Util.buildTags();
</script>
</body>
</html>