├── .gitignore
├── screenshot.png
├── mobilescreenshot.png
├── page.php
├── LICENSE
├── page-search.php
├── page-archive.php
├── README.md
├── footer.php
├── functions.php
├── index.php
├── archive.php
├── sidebar.php
├── header.php
├── comments.php
├── post.php
└── css
├── customui.min.css
└── customui.css
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | css/highlight.css
3 | css/highlight.min.css
4 | .idea/
--------------------------------------------------------------------------------
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spiritree/typecho-theme-amaze/HEAD/screenshot.png
--------------------------------------------------------------------------------
/mobilescreenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spiritree/typecho-theme-amaze/HEAD/mobilescreenshot.png
--------------------------------------------------------------------------------
/page.php:
--------------------------------------------------------------------------------
1 |
2 | need('header.php'); ?>
3 |
4 |
5 |
6 |
7 |
8 |
title() ?>
9 |
10 |
11 | content(); ?>
12 |
13 |
14 |
15 | need('comments.php'); ?>
16 |
17 |
18 |
19 |
20 |
21 |
22 | need('footer.php'); ?>
23 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017-present, spiritree
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/page-search.php:
--------------------------------------------------------------------------------
1 | need('header.php');
9 | ?>
10 |
12 | widget('Widget_Contents_Post_Recent', 'pageSize='.$stat->publishedPostsNum)->to($archives);
15 | $year=0; $mon=0; $i=0; $j=0;
16 | $output = '
';
17 | while($archives->next()){
18 | $year_tmp = date('Y',$archives->created);
19 | $mon_tmp = date('m',$archives->created);
20 | $y=$year; $m=$mon;
21 | if ($year > $year_tmp || $mon > $mon_tmp) {
22 | $output .= '
';
23 | }
24 | if ($year != $year_tmp || $mon != $mon_tmp) {
25 | $year = $year_tmp;
26 | $mon = $mon_tmp;
27 | $output .= '';
28 | }
29 | $output .= '
';
30 | }
31 | $output .= '
';
32 | echo $output;
33 | ?>
34 |
35 |
36 | need('footer.php'); ?>
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | [](http://typecho.org/)
3 | [](https://raw.githubusercontent.com/spiritree/typecho-theme-amaze/master/LICENSE)
4 | ## Amaze Theme
5 | > 这是一个简洁风格的主题,参考了AmazeUI和[Typecho-Theme-Meizi](https://github.com/tlerbao/Typecho-Theme-Meizi)还有Jekyll的主题Project-pages和[小专栏](https://xiaozhuanlan.com/),可以说是AmazeUI、Project-pages、小专栏混搭风格。
6 |
7 | 主题讨论地址:https://spiritree.me/archives/typecho-theme-amaze.html
8 |
9 | ## 概述
10 |
11 | - 作者:spiritree
12 | - 版本:2.0.0
13 |
14 | ## 主题预览
15 | 
16 |
17 | 
18 |
19 | 预览地址:**[spiritree.me](https://spiritree.me)**
20 |
21 | ## 主题亮点
22 | - 基于AmazeUI v3.0.0 alpha.beta框架
23 | - 支持设置顶栏背景图片自定义
24 | - 支持个人社交按钮自定义
25 | - 响应式设计
26 | - 简洁
27 |
28 | ## 主题框架
29 | - JQuery
30 | - AmazeUI
31 | - Highlight.js
32 |
33 | ## 安装
34 | Github本页面下载,点击"Download ZIP"下载,将主题文件夹改名为amaze,放到Typecho的`usr/themes/`目录下,并后台开启主题。
35 |
36 | ## 主题自定义
37 | 登陆到管理后台,控制台=>外观=>设置外观
38 |
39 | ## 设置独立页面
40 | 开启归档和搜索页面
41 |
42 | 控制台=>管理=>独立页面=>新增=>选择模板=>自定义模板
43 |
44 | **搜索页面要设置隐藏并且在设置外观中输入搜索页面的网址**
45 | ## TODO
46 | - [x] 美化navbar在移动端的表现效果
47 | - [x] 修改文章详情界面样式
48 | - [x] 美化评论组件
49 | - [x] 首页侧边栏重构
50 | - [x] 首页文章详情重构
51 | - [x] 增加搜索功能
52 | - [x] 文章自动生成目录
53 |
54 | ## LICENSE
55 |
56 | MIT
57 |
58 | Copyright (c) 2017-present, spiritree
--------------------------------------------------------------------------------
/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
15 |
18 |
26 | footer(); ?>
27 |