├── screenshot.jpg
├── images
├── left-bg.jpg
└── touxiang.png
├── page.php
├── js
├── functions.js
├── instantclick.min.js
└── prism.js
├── README.md
├── footer.php
├── index.php
├── page-archives.php
├── archive.php
├── post.php
├── 404.php
├── functions.php
├── header.php
├── comments.php
└── style.css
/screenshot.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/siseboy/junichi/HEAD/screenshot.jpg
--------------------------------------------------------------------------------
/images/left-bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/siseboy/junichi/HEAD/images/left-bg.jpg
--------------------------------------------------------------------------------
/images/touxiang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/siseboy/junichi/HEAD/images/touxiang.png
--------------------------------------------------------------------------------
/page.php:
--------------------------------------------------------------------------------
1 |
2 | need('header.php'); ?>
3 |
4 |
5 |
6 |
7 | title() ?>
8 |
9 | content(); ?>
10 |
11 |
12 | need('comments.php'); ?>
13 |
14 |
15 | need('footer.php'); ?>
--------------------------------------------------------------------------------
/js/functions.js:
--------------------------------------------------------------------------------
1 | var br = {
2 | addEL: function(e, type, fun) {
3 | if (e.addEventListener) {
4 | e.addEventListener(type, fun, false);
5 | } else if (e.attachEvent) {
6 | e.attachEvent('on' + type, fun);
7 | } else {
8 | e['on' + type] = fun;
9 | }
10 | },
11 |
12 | show: function(e, cl) {
13 | var btn = document.getElementById(e),
14 | bd = document.body || document.getElementsByTagName('body')[0];
15 |
16 | br.addEL(btn, 'click', function() {
17 | if (bd.className !== cl) {
18 | bd.className = cl;
19 | } else {
20 | bd.className = null;
21 | }
22 | })
23 | }
24 | }
25 |
26 | br.show('search-toggle', 'search-show');
27 |
28 | br.show('wechat-toggle', 'wechat-show');
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Junichi 是 Typecho 的一套主题模板,Junichi 这个主题的名字由来,是因为博主起名实在没天分,所以就用我宝贝儿子的英文名来命名。
2 |
3 | 主题从2016年11月14日开始制作,现在只是有形无神,正在进一步优化代码和适配功能。
4 |
5 | **下载地址**
6 |
7 | https://github.com/siseboy/junichi
8 |
9 | **主题预览**
10 |
11 | 
12 |
13 | ## 主题特性
14 |
15 | - 无jQuery,无前端框架,轻量级
16 | - InstantClick实现PJAX无刷新操作
17 | - Prismjs代码高亮集成
18 | - 响应式设计
19 | - 支持图片CDN
20 | - 支持社交按钮
21 |
22 | ## 主题使用
23 |
24 | 下载后,重命名文件夹为junichi,然后放到typecho里的theme目录内,进入typecho后台,外观,启用即可。
25 |
26 | ## 外观设置
27 |
28 | 进入主题外观设置
29 |
30 | 依次是标语,开启Pjax和的社交链接
31 |
32 | 然后是图片CDN,推荐使用七牛云镜像
33 |
34 | 主题背景图和头像请直接替换images目录下的图片
35 |
36 | 缩略名命名为about,建立关于单页,
37 |
38 | 选择 Archives 的页面模板,缩略名命名为archives,建立归档页,
39 |
40 | 建立缩略名命名为 links 的友链页面。
41 |
42 | **最后一次更新(2019年11月1日)**
43 |
44 | 友链页面内容,可按照下面示例获得和我一样的友链效果。
45 |
46 | ```html
47 |
48 | - 有意
49 | IT 民工的折腾记录
50 |
51 | - 有意
52 | IT 民工的折腾记录
53 |
54 |
55 | ```
56 |
--------------------------------------------------------------------------------
/footer.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | footer(); ?>
7 |
8 |
9 | options->search_form) && in_array('Pjax', $this->options->search_form)): ?>
10 |
11 |
12 |
21 |
22 |
23 |
24 |