feature(archives): Build a archives page draft
This commit is contained in:
23
module/header.ftl
Normal file
23
module/header.ftl
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<a href="${blog_url!}"><span>无尽光芒</span></a>
|
||||
</div>
|
||||
<div class="description">
|
||||
<p>${settings.sub_title!'the site subtitle'}</p>
|
||||
<div class="socials">
|
||||
<#if settings.github??>
|
||||
<a href="${settings.github}" title="github" target="_blank"><i class="ri-github-line"></i></a>
|
||||
</#if>
|
||||
<#if settings.wechat??>
|
||||
<a href="${settings.wechat}" title="wechat" target="_blank"><i class="ri-wechat-line"></i></a>
|
||||
</#if>
|
||||
<#if settings.bilibili??>
|
||||
<a href="${settings.bilibili}" title="bilibili" target="_blank"><i class="ri-bilibili-line"></i></a>
|
||||
</#if>
|
||||
<#if settings.mail??>
|
||||
<a href="mailto:${settings.mail}" title="mail" target="_blank"><i class="ri-mail-line"></i></a>
|
||||
</#if>
|
||||
<a href="/rss.xml" type="application/rss+xml" title="rss" target="_blank"><i class="ri-rss-line"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -16,7 +16,7 @@
|
||||
<link rel="stylesheet" href="${theme_base!}/source/css/redemption.css"/>
|
||||
</head>
|
||||
<body class="animate__animated animate__fadeInDown">
|
||||
<#-- <#include "menu.ftl"> -->
|
||||
<#include "menu.ftl">
|
||||
|
||||
<#-- 主体 -->
|
||||
<#nested >
|
||||
|
||||
16
module/pagination.ftl
Normal file
16
module/pagination.ftl
Normal file
@@ -0,0 +1,16 @@
|
||||
<#if posts.totalPages gt 1>
|
||||
<@paginationTag method="index" page="${posts.number}" total="${posts.totalPages}" display="3">
|
||||
<div class="pagenav">
|
||||
<#if pagination.hasPrev>
|
||||
<a href="${pagination.prevPageFullPath!}" class="pre">
|
||||
返回上页
|
||||
</a>
|
||||
</#if>
|
||||
<#if pagination.hasNext>
|
||||
<a href="${pagination.nextPageFullPath!}" class="next">
|
||||
更多文章
|
||||
</a>
|
||||
</#if>
|
||||
</div>
|
||||
</@paginationTag>
|
||||
</#if>
|
||||
Reference in New Issue
Block a user