├── favicon.ico
├── screenshot.jpg
├── images
├── body-bg.png
├── default.cur
├── favicon.ico
├── pointer.cur
├── index-post-bg2.png
├── index-header-wave.png
└── index-header-default-bg.jpg
├── fonts
├── FontAwesome.otf
├── fontawesome-webfont.eot
├── fontawesome-webfont.ttf
├── fontawesome-webfont.woff
└── fontawesome-webfont.woff2
├── navigator.php
├── page-footer.php
├── page.php
├── links.php
├── README.md
├── functions.php
├── navigation.php
├── archive.php
├── index.php
├── js
├── highlightjs-line-numbers.js
├── main.js
├── waves.min.js
├── jquery.pjax.js
└── highlight.pack.js
├── css
├── atom-one-light.css
├── waves.min.css
├── adapt.css
├── jquery.fancybox.css
├── font-awesome.min.css
└── layout.css
├── footer.php
├── header.php
├── archive-page.php
├── post.php
└── comments.php
/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/favicon.ico
--------------------------------------------------------------------------------
/screenshot.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/screenshot.jpg
--------------------------------------------------------------------------------
/images/body-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/body-bg.png
--------------------------------------------------------------------------------
/images/default.cur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/default.cur
--------------------------------------------------------------------------------
/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/favicon.ico
--------------------------------------------------------------------------------
/images/pointer.cur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/pointer.cur
--------------------------------------------------------------------------------
/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/images/index-post-bg2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/index-post-bg2.png
--------------------------------------------------------------------------------
/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/images/index-header-wave.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/index-header-wave.png
--------------------------------------------------------------------------------
/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/images/index-header-default-bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/index-header-default-bg.jpg
--------------------------------------------------------------------------------
/navigator.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/page-footer.php:
--------------------------------------------------------------------------------
1 |
5 |
19 | need('page-footer.php'); ?>
20 |
21 | need('footer.php'); ?>
--------------------------------------------------------------------------------
/links.php:
--------------------------------------------------------------------------------
1 |
8 | need('header.php'); ?>
9 |
10 |
24 | need('page-footer.php'); ?>
25 |
26 | need('footer.php'); ?>
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [English](https://github.com/WeicMa/Jian/blob/master/README-EN)
2 |
3 | Note正如其名字一样,是一款适合写作、做笔记的博客主题,设计风格来自我的上一款主题 [《Jian》](https://isweic.com/themes-jian) ,也可以理解为《Jian》的升级版、整容版;
4 |
5 | > 注意:此款主题目前 仍然处于开发阶段,所以会不断地增加新功能和优化,如果你在使用此款主题请密切关注此篇文章或Github
6 |
7 | #### 使用注意
8 |
9 |
10 | 本主题提供免费使用,但是:
11 |
12 | * 不能修改任何代码(不包括媒体文件路径和超链接);
13 | * 不能去除底部版权信息
14 | * 转载请注明项目主页;
15 |
16 | 请务必遵守以上几项,这是对作者最起码的尊重;
17 |
18 | 本主题同时也提供收费服务,其实就是卖个不让免费版干的事(收费服务可以魔改和去除页面底部的版权信息以及更新后能及时收到邮件通知);
19 |
20 |
21 | #### 功能和特色
22 |
23 | * 适合写作的设计;
24 | * 炫酷的侧滑导航栏设计;
25 | * 文章页打赏功能;
26 | * 紧凑的按钮设计;
27 | * 响应式设计;
28 | * Pjax技术;
29 | * 代码高亮;
30 | * 又大又长的首页头图;
31 | * 不丰富的社交按钮,只有4个;
32 | * 文章页图片放大功能;
33 | * 支持嵌入第三方评论;
34 | * 支持Ghost、Typecho、Hexo这三个平台;
35 | * Alpha版本,更多功能和优化请期待,谢谢!
36 |
37 |
38 |
39 | #### 更多信息
40 |
41 | 本页面不写任何更新日志,只在[作者博客](https://isweic.com/themes-note/)发布信息
42 |
--------------------------------------------------------------------------------
/functions.php:
--------------------------------------------------------------------------------
1 | addInput($logoUrl);
7 | $indexBGUrl = new Typecho_Widget_Helper_Form_Element_Text('indexBGUrl', NULL, NULL, _t('首页头图地址'), _t('在这里填入一个图片的URL地址, 以在网站显示你的首页头图'));
8 | $form->addInput($indexBGUrl);
9 | // 赞助图片链接
10 | $weixinUrl = new Typecho_Widget_Helper_Form_Element_Text('weixinUrl', NULL, NULL, _t('微信图片地址'), _t('在这里填入你微信二维码图片的URL地址, 以在网站文章页的赞助模块里显示你的微信二维码'));
11 | $form->addInput($weixinUrl);
12 | $alipayUrl = new Typecho_Widget_Helper_Form_Element_Text('alipayUrl', NULL, NULL, _t('支付宝图片地址'), _t('在这里填入你支付宝二维码图片的URL地址, 以在网站文章页的赞助模块里显示你的支付宝二维码'));
13 | $form->addInput($alipayUrl);
14 | $qqUrl = new Typecho_Widget_Helper_Form_Element_Text('qqUrl', NULL, NULL, _t('QQ图片地址'), _t('在这里填入你QQ二维码图片的URL地址, 以在网站文章页的赞助模块里显示你的QQ二维码'));
15 | $form->addInput($qqUrl);
16 | //备案号
17 | $socialicp = new Typecho_Widget_Helper_Form_Element_Text('socialicp', NULL, NULL, _t('备案号'), _t('在这里输入备案号'));
18 | $form->addInput($socialicp);
19 | }
20 |
--------------------------------------------------------------------------------
/navigation.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 | have()): ?>
10 | next()): ?>
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | excerpt(130, ' ...'); ?>
19 |
20 |
21 |
22 |
23 |
24 |
31 |
32 | need('navigator.php'); ?>
33 |
34 | need('page-footer.php'); ?>
35 |
36 | need('footer.php'); ?>
37 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 | need('header.php');?>
13 |
14 | options->indexBGUrl): ?>
15 |
16 |
30 |
31 |
32 |
33 | next()): ?>
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | excerpt(120, ' ...'); ?>
42 |
43 |
44 |
45 |
46 | need('navigator.php'); ?>
47 |
48 | need('page-footer.php'); ?>
49 |
50 | need('footer.php'); ?>
51 |
--------------------------------------------------------------------------------
/js/highlightjs-line-numbers.js:
--------------------------------------------------------------------------------
1 | (function (w) {
2 | 'use strict';
3 |
4 | if (typeof w.hljs === 'undefined') {
5 | console.error('highlight.js not detected!');
6 | } else {
7 | w.hljs.initLineNumbersOnLoad = initLineNumbersOnLoad;
8 | w.hljs.lineNumbersBlock = lineNumbersBlock;
9 | }
10 |
11 | function initLineNumbersOnLoad () {
12 | if (document.readyState === 'complete') {
13 | documentReady();
14 | } else {
15 | w.addEventListener('DOMContentLoaded', documentReady);
16 | }
17 | }
18 |
19 | function documentReady () {
20 | try {
21 | var blocks = document.querySelectorAll('code.hljs');
22 |
23 | for (var i in blocks) {
24 | if (blocks.hasOwnProperty(i)) {
25 | lineNumbersBlock(blocks[i]);
26 | }
27 | }
28 | } catch (e) {
29 | console.error('LineNumbers error: ', e);
30 | }
31 | }
32 |
33 | function lineNumbersBlock (element) {
34 | if (typeof element !== 'object') return;
35 |
36 | var parent = element.parentNode;
37 | var lines = getCountLines(parent.textContent);
38 |
39 | if (lines > 1) {
40 | var l = '';
41 | for (var i = 0; i < lines; i++) {
42 | l += (i + 1) + '\n';
43 | }
44 |
45 | var linesPanel = document.createElement('code');
46 | linesPanel.className = 'hljs hljs-line-numbers';
47 | linesPanel.style.float = 'left';
48 | linesPanel.textContent = l;
49 |
50 | parent.insertBefore(linesPanel, element);
51 | }
52 | }
53 |
54 | function getCountLines(text) {
55 | if (text.length === 0) return 0;
56 |
57 | var regExp = /\r\n|\r|\n/g;
58 | var lines = text.match(regExp);
59 | lines = lines ? lines.length : 0;
60 |
61 | if (!text[text.length - 1].match(regExp)) {
62 | lines += 1;
63 | }
64 |
65 | return lines;
66 | }
67 | }(window));
--------------------------------------------------------------------------------
/css/atom-one-light.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Atom One Light by Daniel Gamage
4 | Original One Light Syntax theme from https://github.com/atom/one-light-syntax
5 |
6 | base: #fafafa
7 | mono-1: #383a42
8 | mono-2: #686b77
9 | mono-3: #a0a1a7
10 | hue-1: #0184bb
11 | hue-2: #4078f2
12 | hue-3: #a626a4
13 | hue-4: #50a14f
14 | hue-5: #e45649
15 | hue-5-2: #c91243
16 | hue-6: #986801
17 | hue-6-2: #c18401
18 |
19 | */
20 |
21 | .hljs {
22 | display: block;
23 | overflow-x: auto;
24 | padding: 0.5em;
25 | color: #255;
26 | background: #f7f7f7;
27 | /*background: rgb(59, 45, 45);*/
28 | font-size: 10pt;
29 | }
30 |
31 | .hljs-comment,
32 | .hljs-quote {
33 | color: #a0a1a7;
34 | font-style: italic;
35 | }
36 |
37 | .hljs-doctag,
38 | .hljs-keyword,
39 | .hljs-formula {
40 | color: #a626a4;
41 | }
42 |
43 | .hljs-section,
44 | .hljs-name,
45 | .hljs-selector-tag,
46 | .hljs-deletion,
47 | .hljs-subst {
48 | color: #e45649;
49 | }
50 |
51 | .hljs-literal {
52 | color: #0184bb;
53 | }
54 |
55 | .hljs-string,
56 | .hljs-regexp,
57 | .hljs-addition,
58 | .hljs-attribute,
59 | .hljs-meta-string {
60 | color: #50a14f;
61 | }
62 |
63 | .hljs-built_in,
64 | .hljs-class .hljs-title {
65 | color: #c18401;
66 | }
67 |
68 | .hljs-attr,
69 | .hljs-variable,
70 | .hljs-template-variable,
71 | .hljs-type,
72 | .hljs-selector-class,
73 | .hljs-selector-attr,
74 | .hljs-selector-pseudo,
75 | .hljs-number {
76 | color: #986801;
77 | }
78 |
79 | .hljs-symbol,
80 | .hljs-bullet,
81 | .hljs-link,
82 | .hljs-meta,
83 | .hljs-selector-id,
84 | .hljs-title {
85 | color: #4078f2;
86 | }
87 |
88 | .hljs-emphasis {
89 | font-style: italic;
90 | }
91 |
92 | .hljs-strong {
93 | font-weight: bold;
94 | }
95 |
96 | .hljs-link {
97 | text-decoration: underline;
98 | }
99 |
--------------------------------------------------------------------------------
/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | footer(); ?>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
44 |