This commit is contained in:
Van
2017-04-09 04:31:52 +08:00
parent bf212920ad
commit b48eac788f
64 changed files with 1230 additions and 217 deletions

View File

@@ -0,0 +1,29 @@
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>
<head>
<@head title="${category.categoryTitle} - ${blogTitle}">
<meta name="keywords" content="${metaKeywords},${category.categoryTitle}"/>
<meta name="description" content="<#list articles as article>${article.articleTitle}<#if article_has_next>,</#if></#list>"/>
</@head>
</head>
<body>
<#include "header.ftl">
<div class="container">
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-8 site article-list">
<h2>
${category.categoryTitle}
(${category.categoryTagCnt})<small> ${category.categoryDescription}</small>
</h2>
<#include "article-list.ftl">
</div>
<div class="col-sm-2"></div>
</div>
</div>
<#include "footer.ftl">
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -15,6 +15,19 @@
<div class="col-sm-2"></div>
<div class="col-sm-8 site">
<h2>${categoryLabel}</h2>
<ul>
<#list mostUsedCategories as category>
<li>
<a href="${servePath}/category/${category.categoryURI}">
<span>${category.categoryTitle}</span>
(<b>${category.categoryTagCnt}</b>)</a>
</a>
</li>
</#list>
</ul>
<h2>${tagsLabel}</h2>
<ul>
<#list tags as tag>
<li>