12 |
13 |
14 | need('footer.php'); ?>
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (C) 2020 Dreamer-Paul
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 all
13 | 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 THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Single
2 |
3 | 一个简洁大气,含夜间模式的 Typecho 博客模板。
4 |
5 | ## 使用方法
6 |
7 | 1. `Star` 本项目
8 | 2. 从这里 [下载](https://github.com/Dreamer-Paul/Single/archive/master.zip) 主题源码
9 | 3. 上传本主题,重命名为 `single` 并放置在 `usr/themes/` 目录下
10 | 4. 登录你的 Typecho 后台,选择启用主题即可食用~
11 |
12 | ## 主题故事
13 |
14 | - 开发历程:[Single 主题与单身狗](https://paugram.com/essay/single-theme-and-single-dog.html)
15 | - 帮助文档 & 常见问题:[传送门](https://docs.paul.ren/single)
16 |
17 | ## 主题亮点
18 |
19 | 简洁大气、夜间模式、文章目录、图片灯箱、代码高亮、平滑滚动、无 JQ 库。
20 |
21 | ## 开源协议
22 |
23 | 本项目采用 MIT 开源协议进行授权,并在其基础上须保留原作者的版权注释(CSS、JS 等文件),当然能在页尾写上主题地址就是最好的啦~
24 |
25 | 原创不易!如果喜欢本项目,请 `Star` 它以示对我的支持~
26 |
27 | 同时欢迎前往 [我的博客](https://paugram.com/about.html#donate) 为我提供赞助,谢谢您!
28 |
29 | ## 感谢
30 |
31 | 感谢来自开源社区提供的解决方案,简化了本项目的不少工作!
32 |
33 | - [Kico Style](https://github.com/Dreamer-Paul/Kico-Style)
34 | - [Font Awesome](https://github.com/FortAwesome/Font-Awesome)
35 | - [Prism](https://github.com/PrismJS/prism)
36 |
--------------------------------------------------------------------------------
/archive.php:
--------------------------------------------------------------------------------
1 |
2 | need('header.php'); ?>
3 |
4 |
5 |
commentsNum(_t('没有评论'), _t('只有一条评论 (QwQ)'), _t('已有 %d 条评论')); ?>
49 | comments() -> to($comments); ?> 50 | allow('comment')): ?> 51 |博主关闭了评论...
79 | 80 | 81 | have()): ?> 82 | listComments(['commentStatus' => _t('你的评论正等待审核'), 'before' => '