Skip to content

Commit

Permalink
移植完毕
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Aug 14, 2018
0 parents commit e753832
Show file tree
Hide file tree
Showing 20 changed files with 1,641 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<h1><a href="#" target="_blank">Story-Halo</a></h1>

> 一款Halo的主题,简约,小清新。
## 说明

该主题的原作者为[Trii Hsia](https://github.com/txperl),非常感谢做出这么优秀的主题。

原主题地址:[https://github.com/txperl/Story-for-Typecho](https://github.com/txperl/Story-for-Typecho)

## 预览截图

![](screenshots/index.png)

![](screenshots/option.png)

## 预览地址

[森の色](https://yumoe.com/)

## 注意

该主题能渲染`首页(/)``文章页(/archives/${postUrl})``标签页(/tags)``分类目录(/categories)``归档(/archives)``友情链接(/links)``自定义页面(/p/${postUrl})`

## 使用方法

克隆或者[下载](https://github.com/ruibaby/story-halo/releases),将文件夹名改为`story`,压缩为zip压缩包之后在后台的主题设置直接上传即可使用。

58 changes: 58 additions & 0 deletions archives.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<#--
归档页面
@package custom
-->
<#include "header.ftl">
<@header title="Archive - ${options.blog_title?default('Story')}" desc="${options.seo_desc?default('Story')}" keywords="${options.seo_keywords?default('Story')}"></@header>
<div class="container-fluid">
<div class="row">
<div id="main" class="col-12 clearfix" role="main">
<article class="posti" itemscope itemtype="http://schema.org/BlogPosting">
<!-- 总分类&标签 -->
<h3>Something</h3>
<div class="post-tags">
<!-- 分类 -->
<h4>Category</h4>
<ul>
<@commonTag method="categories">
<#if categories?size gt 0>
<#list categories as cate>
<li rel="tag"><a href="/categories/${cate.cateUrl}/">${cate.cateName}</a></li>
</#list>
</#if>
</@commonTag>
</ul>
<!-- 标签 -->
<h4>Tag</h4>
<ul>
<@commonTag method="tags">
<#if categories?size gt 0>
<#list tags as tag>
<li rel="tag"><a href="/tags/${tag.tagUrl}/">${tag.tagName}</a></li>
</#list>
</#if>
</@commonTag>
</ul>
</div>

<h3>Post</h3>
<div id="archives">
<@articleTag method="archivesLess">
<#list archivesLess as archive>
<h4>${archive.year} 年</h4>
<ul>
<#list archive.posts?sort_by("postDate")?reverse as post>
<li>${post.postDate?string('MM月dd日')}
<a href="/archives/${post.postUrl}">${post.postTitle}</a>
</li>
</#list>
</ul>
</#list>
</@articleTag>
</div>
</article>
</div>
</div>
</div>
<#include "footer.ftl">
Loading

0 comments on commit e753832

Please sign in to comment.