🚧 #12256 skins
This commit is contained in:
69
next/category-articles.ftl
Normal file
69
next/category-articles.ftl
Normal file
@@ -0,0 +1,69 @@
|
||||
<#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">
|
||||
<main class="main wrapper">
|
||||
<div class="content posts-collapse">
|
||||
<div class="collection-title">
|
||||
<h2>
|
||||
${category.categoryTitle}
|
||||
<small>${categoryLabel}</small>
|
||||
</h2>
|
||||
</div>
|
||||
<#list articles as article>
|
||||
<article>
|
||||
<header class="post-header">
|
||||
<h1>
|
||||
<a class="post-title" href="${servePath}${article.articlePermalink}">
|
||||
<span>${article.articleTitle}</span>
|
||||
<#if article.articlePutTop>
|
||||
<sup>
|
||||
${topArticleLabel}
|
||||
</sup>
|
||||
</#if>
|
||||
<#if article.hasUpdated>
|
||||
<sup>
|
||||
${updatedLabel}
|
||||
</sup>
|
||||
</#if>
|
||||
</a>
|
||||
</h1>
|
||||
<time class="post-time">
|
||||
${article.articleCreateDate?string("MM-dd")}
|
||||
</time>
|
||||
</header>
|
||||
</article>
|
||||
</#list>
|
||||
|
||||
<#if 0 != paginationPageCount>
|
||||
<nav class="pagination">
|
||||
<#if 1 != paginationPageNums?first>
|
||||
<a href="${servePath}${path}/${paginationPreviousPageNum}" class="extend next"><<</a>
|
||||
<a class="page-number" href="${servePath}${path}/1">1</a> ...
|
||||
</#if>
|
||||
<#list paginationPageNums as paginationPageNum>
|
||||
<#if paginationPageNum == paginationCurrentPageNum>
|
||||
<span class="page-number current">${paginationPageNum}</span>
|
||||
<#else>
|
||||
<a class="page-number" href="${servePath}${path}/${paginationPageNum}">${paginationPageNum}</a>
|
||||
</#if>
|
||||
</#list>
|
||||
<#if paginationPageNums?last != paginationPageCount> ...
|
||||
<a href="${servePath}${path}/${paginationPageCount}" class="page-number">${paginationPageCount}</a>
|
||||
<a href="${servePath}${path}/${paginationNextPageNum}" class="extend next">>></a>
|
||||
</#if>
|
||||
</nav>
|
||||
</#if>
|
||||
</div>
|
||||
<#include "side.ftl">
|
||||
</main>
|
||||
<#include "footer.ftl">
|
||||
</body>
|
||||
</html>
|
@@ -10,6 +10,29 @@
|
||||
<body>
|
||||
<#include "header.ftl">
|
||||
<main class="main wrapper">
|
||||
<#if mostUsedCategories?size != 0>
|
||||
<div class="content page-archive">
|
||||
<section class="posts-collapse">
|
||||
<div class="tag-cloud">
|
||||
${sumLabel} ${mostUsedCategories?size} ${categoryLabel}
|
||||
</div>
|
||||
<#list mostUsedCategories as category>
|
||||
<article>
|
||||
<header class="post-header">
|
||||
<h1>
|
||||
<a class="post-title" href="${servePath}/category/${category.categoryURI}">
|
||||
${category.categoryTitle} (${category.categoryTagCnt})</a>
|
||||
<small>${category.categoryDescription}</small>
|
||||
</h1>
|
||||
</header>
|
||||
</article>
|
||||
</#list>
|
||||
</section>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
</#if>
|
||||
<div class="content">
|
||||
<div class="tag-cloud">
|
||||
${sumLabel} ${tags?size} ${tagLabel}
|
||||
|
Reference in New Issue
Block a user