yoyoyo 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +25 -110
- data/_includes/footer.html +4 -1
- data/_includes/head.html +48 -23
- data/_includes/header.html +6 -10
- data/_includes/pagination.html +26 -34
- data/_includes/post-card.html +16 -8
- data/_layouts/default.html +25 -27
- data/_layouts/home.html +8 -16
- data/_layouts/post.html +39 -21
- data/_sass/footer.scss +45 -0
- data/_sass/header.scss +55 -26
- data/_sass/highlight.scss +159 -0
- data/_sass/main.scss +282 -5
- data/assets/.DS_Store +0 -0
- data/assets/css/styles.scss +1 -2
- data/assets/icon/.DS_Store +0 -0
- data/assets/icon/android-icon-144x144.png +0 -0
- data/assets/icon/android-icon-192x192.png +0 -0
- data/assets/icon/android-icon-36x36.png +0 -0
- data/assets/icon/android-icon-48x48.png +0 -0
- data/assets/icon/android-icon-72x72.png +0 -0
- data/assets/icon/android-icon-96x96.png +0 -0
- data/assets/icon/apple-icon-114x114.png +0 -0
- data/assets/icon/apple-icon-120x120.png +0 -0
- data/assets/icon/apple-icon-144x144.png +0 -0
- data/assets/icon/apple-icon-152x152.png +0 -0
- data/assets/icon/apple-icon-180x180.png +0 -0
- data/assets/icon/apple-icon-57x57.png +0 -0
- data/assets/icon/apple-icon-60x60.png +0 -0
- data/assets/icon/apple-icon-72x72.png +0 -0
- data/assets/icon/apple-icon-76x76.png +0 -0
- data/assets/icon/apple-icon-precomposed.png +0 -0
- data/assets/icon/apple-icon.png +0 -0
- data/assets/icon/arrow_left.svg +1 -0
- data/assets/icon/arrow_left_dark.svg +1 -0
- data/assets/icon/arrow_right.svg +1 -0
- data/assets/icon/arrow_right_dark.svg +1 -0
- data/assets/icon/favicon-16x16.png +0 -0
- data/assets/icon/favicon-32x32.png +0 -0
- data/assets/icon/favicon-96x96.png +0 -0
- data/assets/icon/logo-dark.svg +9 -0
- data/assets/icon/logo.svg +9 -0
- data/assets/icon/ms-icon-144x144.png +0 -0
- data/assets/icon/ms-icon-150x150.png +0 -0
- data/assets/icon/ms-icon-310x310.png +0 -0
- data/assets/icon/ms-icon-70x70.png +0 -0
- data/assets/images/.DS_Store +0 -0
- data/assets/images/default.jpg +0 -0
- data/assets/js/app.js +16 -4504
- data/assets/js/precache-manifest.11bcfbfe6b7dae85e86faa087e0a5e06.js +6 -0
- data/assets/js/precache-manifest.1915fac201dd24dae9507688967c5188.js +6 -0
- data/assets/js/precache-manifest.2065e6686799b73f209ccb8fd864b1b8.js +6 -0
- data/assets/js/precache-manifest.39102f4dc1b24b71a25b460ac941d00b.js +6 -0
- data/assets/js/precache-manifest.a688172c829679a4a1893fe27d269fe6.js +6 -0
- data/assets/js/precache-manifest.a83e5c3f4f128d9750d50cf5abb68afd.js +6 -0
- data/assets/js/precache-manifest.c327e4d6b681a2a6c7a14644cb451ef5.js +6 -0
- data/assets/js/precache-manifest.f1b04314ba8d2ced03f1d0431a7dd77d.js +6 -0
- data/assets/js/sw.js +1 -0
- data/assets/js/workbox-0eb1d4be.js +1 -0
- data/assets/js/workbox-468c4d03.js +1 -0
- data/assets/js/workbox-d9851aed.js +1 -0
- metadata +59 -101
- data/_sass/_alert.scss +0 -51
- data/_sass/_badge.scss +0 -53
- data/_sass/_breadcrumb.scss +0 -41
- data/_sass/_button-group.scss +0 -163
- data/_sass/_buttons.scss +0 -140
- data/_sass/_card.scss +0 -310
- data/_sass/_carousel.scss +0 -198
- data/_sass/_close.scss +0 -44
- data/_sass/_code.scss +0 -48
- data/_sass/_custom-forms.scss +0 -507
- data/_sass/_dropdown.scss +0 -191
- data/_sass/_forms.scss +0 -334
- data/_sass/_functions.scss +0 -86
- data/_sass/_grid.scss +0 -52
- data/_sass/_images.scss +0 -42
- data/_sass/_input-group.scss +0 -193
- data/_sass/_jumbotron.scss +0 -16
- data/_sass/_list-group.scss +0 -121
- data/_sass/_media.scss +0 -8
- data/_sass/_mixins.scss +0 -41
- data/_sass/_modal.scss +0 -186
- data/_sass/_nav.scss +0 -120
- data/_sass/_navbar.scss +0 -299
- data/_sass/_pagination.scss +0 -78
- data/_sass/_popover.scss +0 -183
- data/_sass/_print.scss +0 -141
- data/_sass/_progress.scss +0 -34
- data/_sass/_reboot.scss +0 -462
- data/_sass/_root.scss +0 -19
- data/_sass/_spinners.scss +0 -53
- data/_sass/_tables.scss +0 -187
- data/_sass/_toasts.scss +0 -43
- data/_sass/_tooltip.scss +0 -115
- data/_sass/_transitions.scss +0 -22
- data/_sass/_type.scss +0 -125
- data/_sass/_utilities.scss +0 -16
- data/_sass/_variables.scss +0 -1091
- data/_sass/body.scss +0 -22
- data/_sass/bootstrap-grid.scss +0 -29
- data/_sass/bootstrap-reboot.scss +0 -12
- data/_sass/bootstrap.scss +0 -44
- data/_sass/mixins/_alert.scss +0 -13
- data/_sass/mixins/_background-variant.scss +0 -21
- data/_sass/mixins/_badge.scss +0 -11
- data/_sass/mixins/_border-radius.scss +0 -35
- data/_sass/mixins/_box-shadow.scss +0 -5
- data/_sass/mixins/_breakpoints.scss +0 -123
- data/_sass/mixins/_buttons.scss +0 -111
- data/_sass/mixins/_caret.scss +0 -62
- data/_sass/mixins/_clearfix.scss +0 -7
- data/_sass/mixins/_float.scss +0 -11
- data/_sass/mixins/_forms.scss +0 -198
- data/_sass/mixins/_gradients.scss +0 -45
- data/_sass/mixins/_grid-framework.scss +0 -66
- data/_sass/mixins/_grid.scss +0 -51
- data/_sass/mixins/_hover.scss +0 -37
- data/_sass/mixins/_image.scss +0 -36
- data/_sass/mixins/_list-group.scss +0 -21
- data/_sass/mixins/_lists.scss +0 -7
- data/_sass/mixins/_nav-divider.scss +0 -10
- data/_sass/mixins/_pagination.scss +0 -22
- data/_sass/mixins/_reset-text.scss +0 -17
- data/_sass/mixins/_resize.scss +0 -6
- data/_sass/mixins/_screen-reader.scss +0 -33
- data/_sass/mixins/_size.scss +0 -6
- data/_sass/mixins/_table-row.scss +0 -39
- data/_sass/mixins/_text-emphasis.scss +0 -14
- data/_sass/mixins/_text-hide.scss +0 -13
- data/_sass/mixins/_text-truncate.scss +0 -8
- data/_sass/mixins/_transition.scss +0 -16
- data/_sass/mixins/_visibility.scss +0 -7
- data/_sass/utilities/_align.scss +0 -8
- data/_sass/utilities/_background.scss +0 -19
- data/_sass/utilities/_borders.scss +0 -63
- data/_sass/utilities/_clearfix.scss +0 -3
- data/_sass/utilities/_display.scss +0 -38
- data/_sass/utilities/_embed.scss +0 -39
- data/_sass/utilities/_flex.scss +0 -51
- data/_sass/utilities/_float.scss +0 -9
- data/_sass/utilities/_overflow.scss +0 -5
- data/_sass/utilities/_position.scss +0 -32
- data/_sass/utilities/_screenreaders.scss +0 -11
- data/_sass/utilities/_shadows.scss +0 -6
- data/_sass/utilities/_sizing.scss +0 -20
- data/_sass/utilities/_spacing.scss +0 -73
- data/_sass/utilities/_text.scss +0 -67
- data/_sass/utilities/_visibility.scss +0 -11
- data/assets/js/app.js.map +0 -1
- data/assets/ts/app.ts +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 075a3338b3e9d6cea546c551720b91ac5c54d581141d88814d58fcb9b6ddae30
|
4
|
+
data.tar.gz: b206054fe73522159dffbfba0cd434d38950184f5e7241df3f83b0c8a3bd3b29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b166fbbc43d19927e5b8005f651655a2533770717904d2be5475f78b1febbd54a6b2eb9a0cc46f98ea669a0509b9bda53c7786cb9430912b70fed38a33fe228
|
7
|
+
data.tar.gz: 523a1ef471218b607fb8e5c3a0d4ddb5c8e8e6c4a072626707490044a6ba77f088005c130bc38423ca79d2e7b33792e1931acac3a111e82463dde5fcb2ed648d
|
data/README.md
CHANGED
@@ -1,116 +1,31 @@
|
|
1
|
-
![
|
2
|
-
![Gem](https://img.shields.io/gem/v/yoyoyo.svg)
|
3
|
-
![Gem](https://img.shields.io/gem/dt/yoyoyo.svg?color=%23e9573f&label=Gem%E4%B8%8B%E8%BD%BD%E6%80%BB%E6%AC%A1%E6%95%B0)
|
4
|
-
![GitHub issues](https://img.shields.io/github/issues/hertzZhang/yoyoyo.svg)
|
5
|
-
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/hertzZhang/yoyoyo.svg)
|
6
|
-
![GitHub](https://img.shields.io/github/license/hertzZhang/yoyoyo.svg)
|
7
|
-
![Website](https://img.shields.io/website-up-down-green-red/https/zhanghe.org/yoyoyo/.svg)
|
8
|
-
![Twitter Follow](https://img.shields.io/twitter/follow/hertzZhang.svg?style=social)
|
9
|
-
|
10
|
-
# YOYOYO Jekyll 主题
|
11
|
-
|
12
|
-
一个漂亮的、自适应的、适合程序员的 Jekyll 主题。
|
13
|
-
|
14
|
-
## Getting Started
|
15
|
-
|
16
|
-
[Get started in 5 minutes.](https://github.com/hertzZhang/yoyoyo/wiki/Quickstart)
|
17
|
-
|
18
|
-
### Prerequisites
|
19
|
-
|
20
|
-
What things you need to install the software and how to install them
|
21
|
-
|
22
|
-
```
|
23
|
-
Give examples
|
24
|
-
```
|
25
|
-
|
26
|
-
### Installing
|
27
|
-
|
28
|
-
A step by step series of examples that tell you how to get a development env running
|
29
|
-
|
30
|
-
Say what the step will be
|
31
|
-
|
32
|
-
```
|
33
|
-
Give the example
|
34
|
-
```
|
35
|
-
|
36
|
-
And repeat
|
37
|
-
|
38
|
-
```
|
39
|
-
until finished
|
40
|
-
```
|
41
|
-
|
42
|
-
End with an example of getting some data out of the system or using it for a little demo
|
43
|
-
|
44
|
-
## Running the tests
|
45
|
-
|
46
|
-
Explain how to run the automated tests for this system
|
47
|
-
|
48
|
-
### Break down into end to end tests
|
1
|
+
[![yoyoyo](https://socialify.git.ci/zhanghecool/yoyoyo/image?description=1&language=1&logo=https%3A%2F%2Fyoyoyo.zhanghe.cool%2Fassets%2Ficon%2Fms-icon-310x310.png&owner=1&pattern=Brick%20Wall&theme=Light)](https://yoyoyo.zhanghe.cool/)
|
49
2
|
|
50
|
-
|
3
|
+
<p align="center">
|
4
|
+
采用 `kramdown` 文档编写的 GitHub Pages 模版主题。
|
5
|
+
图片链接建议用自己的CDN加速服务,如果没有的话使用`https://cdn.jsdelivr.net/gh/GitHub的用户名/你的仓库名@发布的版本号/文件路径`进行文件加速服务。
|
6
|
+
<br>
|
7
|
+
<a href="https://yoyoyo.zhanghe.cool/"><strong>例子 »</strong></a>
|
8
|
+
<br>
|
9
|
+
<br>
|
10
|
+
</p>
|
51
11
|
|
52
|
-
|
53
|
-
Give an example
|
54
|
-
```
|
12
|
+
## Status
|
55
13
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
Add additional notes about how to deploy this on a live system
|
67
|
-
|
68
|
-
## Built With
|
69
|
-
|
70
|
-
* [Dropwizard](http://www.dropwizard.io/1.0.2/docs/) - The web framework used
|
71
|
-
* [Maven](https://maven.apache.org/) - Dependency Management
|
72
|
-
* [ROME](https://rometools.github.io/rome/) - Used to generate RSS Feeds
|
73
|
-
|
74
|
-
## Contributing
|
75
|
-
|
76
|
-
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.
|
77
|
-
|
78
|
-
## Versioning
|
79
|
-
|
80
|
-
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
|
81
|
-
|
82
|
-
## Authors
|
83
|
-
|
84
|
-
* **Hertz Zhang** - *Initial work* - [PurpleBooth](https://github.com/PurpleBooth)
|
85
|
-
|
86
|
-
See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.
|
87
|
-
|
88
|
-
## License
|
89
|
-
|
90
|
-
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|
91
|
-
|
92
|
-
## Acknowledgments
|
14
|
+
![ci](https://github.com/zhanghecool/yoyoyo/workflows/ci/badge.svg)
|
15
|
+
![Gem](https://img.shields.io/gem/v/yoyoyo.svg)
|
16
|
+
![Gem](https://img.shields.io/gem/dt/yoyoyo.svg?color=%23e9573f&label=Gem%E4%B8%8B%E8%BD%BD%E6%80%BB%E6%AC%A1%E6%95%B0)
|
17
|
+
![GitHub issues](https://img.shields.io/github/issues/zhanghecool/yoyoyo.svg)
|
18
|
+
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/zhanghecool/yoyoyo.svg)
|
19
|
+
![GitHub](https://img.shields.io/github/license/zhanghecool/yoyoyo.svg)
|
20
|
+
![Website](https://img.shields.io/website-up-down-green-red/https/zhanghe.org/yoyoyo/.svg)
|
21
|
+
![Twitter Follow](https://img.shields.io/twitter/follow/zhanghecool.svg?style=social)
|
22
|
+
|
23
|
+
## Quick start
|
93
24
|
|
94
|
-
|
95
|
-
* Inspiration
|
96
|
-
* etc
|
25
|
+
Several quick start options are available:
|
97
26
|
|
98
|
-
|
27
|
+
- Clone the repo: `git clone https://github.com/zhanghecool/yoyoyo.git`
|
28
|
+
- Install with [rubygems](https://rubygems.org/gems/yoyoyo): `gem install yoyoyo`
|
29
|
+
- GEMFILE: `gem 'yoyoyo', '~> 0.0.9'`
|
99
30
|
|
100
|
-
|
101
|
-
- [x] HTML
|
102
|
-
- [x] CSS
|
103
|
-
- [x] JavaScript
|
104
|
-
- [x] MarkDown
|
105
|
-
- [ ] 首页基础布局
|
106
|
-
- [ ] 顶部导航
|
107
|
-
- [ ] 底部页脚
|
108
|
-
- [ ] 最新文章列表
|
109
|
-
- [ ] 标签文章列表
|
110
|
-
- [ ] 分类文章列表
|
111
|
-
- [ ] 文章详情页面布局
|
112
|
-
- [ ] 开场动画
|
113
|
-
- [ ] 进场动画和离场动画
|
114
|
-
- [ ] 联系我功能
|
115
|
-
- [ ] 评论功能
|
116
|
-
- [ ] 订阅功能
|
31
|
+
Read the [Getting started page](https://github.com/zhanghecool/yoyoyo/wiki/Quickstart) for information on the framework contents, templates and examples, and more.
|
data/_includes/footer.html
CHANGED
data/_includes/head.html
CHANGED
@@ -1,15 +1,33 @@
|
|
1
|
-
<meta charset="utf-8" />
|
1
|
+
<meta charset="utf-8" /> <meta name="renderer" content="webkit" />
|
2
|
+
<!-- 用在360中 -->
|
3
|
+
<meta name="force-rendering" content="webkit" />
|
4
|
+
<!-- 用在其它 -->
|
2
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
+
<!-- 针对 IE 浏览器 -->
|
7
|
+
<meta http-equiv="Cache-Control" content="no-transform" />
|
8
|
+
<!-- 针对百度搜索 -->
|
9
|
+
<meta name="format-detection" content="telephone=no,email=no,adress=no" />
|
6
10
|
<meta
|
7
|
-
name="
|
8
|
-
content="
|
11
|
+
name="viewport"
|
12
|
+
content="width=device-width, initial-scale=1,
|
13
|
+
shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
|
9
14
|
/>
|
10
|
-
<meta name="
|
15
|
+
<meta name="author" content="{{ site.metaAuthor}}" />
|
16
|
+
<meta name="robots" content="index,follow" />
|
17
|
+
<meta name="referrer" content="origin-when-cross-origin" />
|
18
|
+
<meta name="theme-color" content="{{ site.themeColor }}" />
|
19
|
+
<meta name="color-scheme" content="dark light" />
|
20
|
+
<meta name="application-name" content="{{site.blogName}}" />
|
11
21
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
12
22
|
<meta name="apple-mobile-web-app-status-bar-style" content="white" />
|
23
|
+
<meta name="apple-mobile-web-app-title" content="{{site.appTitle}}" />
|
24
|
+
<meta name="msapplication-tooltip" content="{{site.description}}" />
|
25
|
+
<meta name="msapplication-TileColor" content="{{ site.themeColor }}" />
|
26
|
+
<meta
|
27
|
+
name="msapplication-TileImage"
|
28
|
+
content="{{ site.baseurl }}/assets/icon/apple-icon-144x144.png"
|
29
|
+
/>
|
30
|
+
<link rel="dns-prefetch" href="{{ site.url }}" />
|
13
31
|
<link
|
14
32
|
rel="shortcut icon"
|
15
33
|
href="{{ site.baseurl }}/favicon.ico"
|
@@ -18,74 +36,77 @@ shrink-to-fit=no, user-scalable=no", viewport-fit=cover" />
|
|
18
36
|
<link
|
19
37
|
rel="apple-touch-icon"
|
20
38
|
sizes="57x57"
|
21
|
-
href="{{ site.baseurl }}/apple-icon-57x57.png"
|
39
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-57x57.png"
|
22
40
|
/>
|
23
41
|
<link
|
24
42
|
rel="apple-touch-icon"
|
25
43
|
sizes="60x60"
|
26
|
-
href="{{ site.baseurl }}/apple-icon-60x60.png"
|
44
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-60x60.png"
|
27
45
|
/>
|
28
46
|
<link
|
29
47
|
rel="apple-touch-icon"
|
30
48
|
sizes="72x72"
|
31
|
-
href="{{ site.baseurl }}/apple-icon-72x72.png"
|
49
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-72x72.png"
|
32
50
|
/>
|
33
51
|
<link
|
34
52
|
rel="apple-touch-icon"
|
35
53
|
sizes="76x76"
|
36
|
-
href="{{ site.baseurl }}/apple-icon-76x76.png"
|
54
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-76x76.png"
|
37
55
|
/>
|
38
56
|
<link
|
39
57
|
rel="apple-touch-icon"
|
40
58
|
sizes="114x114"
|
41
|
-
href="{{ site.baseurl }}/apple-icon-114x114.png"
|
59
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-114x114.png"
|
42
60
|
/>
|
43
61
|
<link
|
44
62
|
rel="apple-touch-icon"
|
45
63
|
sizes="120x120"
|
46
|
-
href="{{ site.baseurl }}/apple-icon-120x120.png"
|
64
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-120x120.png"
|
47
65
|
/>
|
48
66
|
<link
|
49
67
|
rel="apple-touch-icon"
|
50
68
|
sizes="144x144"
|
51
|
-
href="{{ site.baseurl }}/apple-icon-144x144.png"
|
69
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-144x144.png"
|
52
70
|
/>
|
53
71
|
<link
|
54
72
|
rel="apple-touch-icon"
|
55
73
|
sizes="152x152"
|
56
|
-
href="{{ site.baseurl }}/apple-icon-152x152.png"
|
74
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-152x152.png"
|
57
75
|
/>
|
58
76
|
<link
|
59
77
|
rel="apple-touch-icon"
|
60
78
|
sizes="180x180"
|
61
|
-
href="{{ site.baseurl }}/apple-icon-180x180.png"
|
79
|
+
href="{{ site.baseurl }}/assets/icon/apple-icon-180x180.png"
|
62
80
|
/>
|
63
81
|
<link
|
64
82
|
rel="icon"
|
65
83
|
type="image/png"
|
66
84
|
sizes="192x192"
|
67
|
-
href="{{ site.baseurl }}/android-icon-192x192.png"
|
85
|
+
href="{{ site.baseurl }}/assets/icon/android-icon-192x192.png"
|
68
86
|
/>
|
69
87
|
<link
|
70
88
|
rel="icon"
|
71
89
|
type="image/png"
|
72
90
|
sizes="32x32"
|
73
|
-
href="{{ site.baseurl }}/favicon-32x32.png"
|
91
|
+
href="{{ site.baseurl }}/assets/icon/favicon-32x32.png"
|
74
92
|
/>
|
75
93
|
<link
|
76
94
|
rel="icon"
|
77
95
|
type="image/png"
|
78
96
|
sizes="96x96"
|
79
|
-
href="{{ site.baseurl }}/favicon-96x96.png"
|
97
|
+
href="{{ site.baseurl }}/assets/icon/favicon-96x96.png"
|
80
98
|
/>
|
81
99
|
<link
|
82
100
|
rel="icon"
|
83
101
|
type="image/png"
|
84
102
|
sizes="16x16"
|
85
|
-
href="{{ site.baseurl }}/favicon-16x16.png"
|
103
|
+
href="{{ site.baseurl }}/assets/icon/favicon-16x16.png"
|
86
104
|
/>
|
87
105
|
<link rel="manifest" href="{{ site.baseurl }}/manifest.json" />
|
88
|
-
|
106
|
+
<link
|
107
|
+
href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.css"
|
108
|
+
rel="stylesheet"
|
109
|
+
/>
|
89
110
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/styles.css" />
|
90
111
|
{% seo %}
|
91
112
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
@@ -98,7 +119,11 @@ shrink-to-fit=no, user-scalable=no", viewport-fit=cover" />
|
|
98
119
|
function gtag() {
|
99
120
|
dataLayer.push(arguments);
|
100
121
|
}
|
101
|
-
gtag(
|
122
|
+
gtag('js', new Date());
|
102
123
|
|
103
|
-
gtag(
|
124
|
+
gtag('config', '{{ site.ga.userid }}');
|
104
125
|
</script>
|
126
|
+
<!--[if lt IE 9]>
|
127
|
+
<script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
128
|
+
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
|
129
|
+
<![endif]-->
|
data/_includes/header.html
CHANGED
@@ -1,13 +1,9 @@
|
|
1
1
|
<header class="yoyoyo-header">
|
2
|
+
<div class="header-description">{{ site.description }}</div>
|
3
|
+
<a
|
4
|
+
class="yoyoyo-header-logo"
|
5
|
+
title="{{ site.title }}"
|
6
|
+
href="{{ site.baseurl }}/"
|
7
|
+
></a>
|
2
8
|
{% include navigation.html %}
|
3
|
-
<a class="yoyoyo-header-logo" href="{{ site.baseurl }}/">YOYOYO</a>
|
4
|
-
<div class="header-contact">
|
5
|
-
<a
|
6
|
-
href="https://github.com/hertzZhang"
|
7
|
-
target="_blank"
|
8
|
-
rel="noopener noreferrer"
|
9
|
-
>Github</a
|
10
|
-
>
|
11
|
-
<a href="mailto:{{ site.email }}">Email</a>
|
12
|
-
</div>
|
13
9
|
</header>
|
data/_includes/pagination.html
CHANGED
@@ -1,41 +1,33 @@
|
|
1
|
-
{% if paginator.next_page %}
|
2
|
-
<div class="posts__pagination">
|
3
|
-
<span class="posts__next">Load More</span>
|
4
|
-
</div>
|
5
|
-
{% endif %}
|
6
|
-
|
7
1
|
{% if paginator.total_pages > 1 %}
|
8
|
-
|
9
|
-
<div class="pagination">
|
2
|
+
<div class="list-pagination">
|
10
3
|
{% if paginator.previous_page %}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
4
|
+
<a
|
5
|
+
class="pagination-arrow arrow-left"
|
6
|
+
href="{{ paginator.previous_page_path | relative_url }}"
|
7
|
+
>
|
8
|
+
上一页
|
9
|
+
</a>
|
16
10
|
{% endif %}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
</a>
|
25
|
-
{% else %}
|
26
|
-
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">
|
27
|
-
{{ page }}
|
28
|
-
</a>
|
29
|
-
{% endif %}
|
30
|
-
{% endfor %}
|
31
|
-
|
32
|
-
{% if paginator.next_page %}
|
33
|
-
<a href="{{ paginator.next_page_path | relative_url }}">
|
34
|
-
Next »
|
35
|
-
</a>
|
11
|
+
<!-- {% for page in (1..paginator.total_pages) %} {% if page ==
|
12
|
+
paginator.page %}
|
13
|
+
<em>{{ page }}</em>
|
14
|
+
{% elsif page == 1 %}
|
15
|
+
<a href="{{ paginator.previous_page_path | relative_url }}">
|
16
|
+
{{ page }}
|
17
|
+
</a>
|
36
18
|
{% else %}
|
37
|
-
|
19
|
+
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">
|
20
|
+
{{ page }}
|
21
|
+
</a>
|
22
|
+
{% endif %} {% endfor %} -->
|
23
|
+
{% if paginator.next_page %}
|
24
|
+
<a
|
25
|
+
class="pagination-arrow arrow-right"
|
26
|
+
href="{{ paginator.next_page_path | relative_url }}"
|
27
|
+
>
|
28
|
+
下一页
|
29
|
+
</a>
|
38
30
|
{% endif %}
|
39
31
|
</div>
|
40
32
|
|
41
|
-
{% endif %}
|
33
|
+
{% endif %}
|
data/_includes/post-card.html
CHANGED
@@ -1,12 +1,20 @@
|
|
1
|
-
<div class="
|
2
|
-
<a class="
|
1
|
+
<div class="post-item" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
|
2
|
+
<a class="post-item-body posts-link" href="{{ post.url | prepend: site.baseurl }}" itemprop="url">
|
3
3
|
{% if post.image %}
|
4
|
-
<
|
5
|
-
<img src="{{ post.image }}" alt="{{ post.title }}" data-aos="fade-in" itemprop="image"/>
|
6
|
-
</figure>
|
4
|
+
<div class="posts-image" data-aos="fade-in" itemprop="image" title="{{ post.title }}" style="background-image: url({{ post.image }})"></div>
|
7
5
|
{% endif %}
|
8
|
-
<div>
|
9
|
-
<
|
6
|
+
<div class="posts-content">
|
7
|
+
<div class="posts-body">
|
8
|
+
<h2 class="posts-title" itemprop="name">{{ post.title }}</h2>
|
9
|
+
{% if post.description %}
|
10
|
+
<p class="posts-description" itemprop="description">{{ post.description }}</p itemprop="description">
|
11
|
+
{% endif %}
|
12
|
+
<p class="posts-author">
|
13
|
+
{{ post.date | date_to_string }} {% assign author = site.authors | where:
|
14
|
+
'short_name', post.author | first %} {% if author %} - {{ author.name }}
|
15
|
+
{% endif %}
|
16
|
+
</p>
|
17
|
+
</div>
|
10
18
|
</div>
|
11
19
|
</a>
|
12
|
-
</div>
|
20
|
+
</div>
|
data/_layouts/default.html
CHANGED
@@ -1,30 +1,28 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="{{ site.lang }}">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
</script>
|
29
|
-
</body>
|
3
|
+
<head>
|
4
|
+
{% include head.html %}
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
{% include header.html %}
|
8
|
+
<main>{{ content }}</main>
|
9
|
+
{% include footer.html %}
|
10
|
+
<script src="{{ site.baseurl }}/assets/js/app.js"></script>
|
11
|
+
<script type="application/ld+json">
|
12
|
+
{
|
13
|
+
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
|
14
|
+
"@id": "{{ site.url }}{{ site.baseurl }}{{ page.url }}",
|
15
|
+
"appid": "{{ site.baidu.appid }}",
|
16
|
+
{% if page.title %}
|
17
|
+
"title": "{{ page.title }}",
|
18
|
+
{% else %}
|
19
|
+
"title": "{{ site.title }}",
|
20
|
+
{% endif%}
|
21
|
+
"images": [
|
22
|
+
"{{ site.url }}{{ site.baseurl }}{{ page.previewimg}}"
|
23
|
+
],
|
24
|
+
"pubDate": "{{ page.date | date_to_xmlschema }}"
|
25
|
+
}
|
26
|
+
</script>
|
27
|
+
</body>
|
30
28
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -4,19 +4,11 @@ title: Home
|
|
4
4
|
pagination:
|
5
5
|
enabled: true
|
6
6
|
---
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<div class="grid">
|
16
|
-
{% for post in paginator.posts %}
|
17
|
-
{% include post-card.html %}
|
18
|
-
{% endfor %}
|
19
|
-
</div>
|
20
|
-
{{content}}
|
21
|
-
<!-- {% include pagination.html %} -->
|
22
|
-
</main>
|
7
|
+
|
8
|
+
<div class="home-list">
|
9
|
+
{% for post in paginator.posts %} {% include post-card.html %} {% endfor %}
|
10
|
+
</div>
|
11
|
+
{{ content }}
|
12
|
+
<div class="home-pagination">
|
13
|
+
{% include pagination.html %}
|
14
|
+
</div>
|
data/_layouts/post.html
CHANGED
@@ -2,24 +2,42 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
5
|
+
<section class="post-item post-header">
|
6
|
+
<div class="post-item-body posts-link">
|
7
|
+
{% if page.image %}
|
8
|
+
<div
|
9
|
+
class="posts-image"
|
10
|
+
data-aos="fade-in"
|
11
|
+
title="{{ page.title }}"
|
12
|
+
style="background-image: url({{ page.image }})"
|
13
|
+
></div>
|
14
|
+
{% endif %}
|
15
|
+
<div class="posts-content">
|
16
|
+
<div class="posts-body">
|
17
|
+
<h2 class="posts-title" itemprop="name">{{ page.title }}</h2>
|
18
|
+
{% if page.description %}
|
19
|
+
<p class="posts-description">{{ page.description }}</p>
|
20
|
+
{% endif %}
|
21
|
+
<p class="posts-author">
|
22
|
+
{{ page.date | date_to_string }} {% assign author = site.authors |
|
23
|
+
where: 'short_name', page.author | first %} {% if author %} - {{
|
24
|
+
author.name }} {% endif %}
|
25
|
+
</p>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</section>
|
30
|
+
<section class="post-main">
|
31
|
+
{{ content }}
|
32
|
+
</section>
|
33
|
+
<section class="post-utteranc">
|
34
|
+
<script
|
35
|
+
src="https://utteranc.es/client.js"
|
36
|
+
repo="{{ site.repo }}"
|
37
|
+
issue-term="pathname"
|
38
|
+
label="comment"
|
39
|
+
theme="github-light"
|
40
|
+
crossorigin="anonymous"
|
41
|
+
async
|
42
|
+
></script>
|
43
|
+
</section>
|
data/_sass/footer.scss
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
footer {
|
2
|
+
padding: 0 80px;
|
3
|
+
position: relative;
|
4
|
+
background-color: v(body-background-color);
|
5
|
+
overflow: hidden;
|
6
|
+
|
7
|
+
.footer-nav {
|
8
|
+
padding: 64px 0;
|
9
|
+
text-align: center;
|
10
|
+
|
11
|
+
nav {
|
12
|
+
display: flex;
|
13
|
+
align-items: center;
|
14
|
+
|
15
|
+
a {
|
16
|
+
padding: 0 8px;
|
17
|
+
font-size: 16px;
|
18
|
+
line-height: 32px;
|
19
|
+
color: v(footer-text-color);
|
20
|
+
opacity: 0.4;
|
21
|
+
transition: all ease-in-out 380ms;
|
22
|
+
|
23
|
+
&:hover {
|
24
|
+
text-decoration: none;
|
25
|
+
opacity: 1;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.current {
|
29
|
+
opacity: 1;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
@media (max-width: 768px) {
|
38
|
+
footer {
|
39
|
+
padding: 0 20px;
|
40
|
+
|
41
|
+
.footer-nav {
|
42
|
+
padding: 24px 0;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|