yoyoyo 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +116 -0
- data/_includes/categories.html +8 -0
- data/_includes/footer.html +3 -0
- data/_includes/head.html +104 -0
- data/_includes/header.html +13 -0
- data/_includes/home-footer.html +3 -0
- data/_includes/home-header.html +4 -0
- data/_includes/home-navigation.html +7 -0
- data/_includes/navigation.html +7 -0
- data/_includes/pagination.html +41 -0
- data/_includes/post-card.html +12 -0
- data/_includes/tags.html +8 -0
- data/_layouts/about.html +6 -0
- data/_layouts/author.html +15 -0
- data/_layouts/default.html +30 -0
- data/_layouts/home.html +22 -0
- data/_layouts/post.html +14 -0
- data/_sass/.DS_Store +0 -0
- data/_sass/_alert.scss +51 -0
- data/_sass/_badge.scss +53 -0
- data/_sass/_breadcrumb.scss +41 -0
- data/_sass/_button-group.scss +163 -0
- data/_sass/_buttons.scss +140 -0
- data/_sass/_card.scss +310 -0
- data/_sass/_carousel.scss +198 -0
- data/_sass/_close.scss +44 -0
- data/_sass/_code.scss +48 -0
- data/_sass/_custom-forms.scss +507 -0
- data/_sass/_dropdown.scss +191 -0
- data/_sass/_forms.scss +334 -0
- data/_sass/_functions.scss +86 -0
- data/_sass/_grid.scss +52 -0
- data/_sass/_images.scss +42 -0
- data/_sass/_input-group.scss +193 -0
- data/_sass/_jumbotron.scss +16 -0
- data/_sass/_list-group.scss +121 -0
- data/_sass/_media.scss +8 -0
- data/_sass/_mixins.scss +41 -0
- data/_sass/_modal.scss +186 -0
- data/_sass/_nav.scss +120 -0
- data/_sass/_navbar.scss +299 -0
- data/_sass/_pagination.scss +78 -0
- data/_sass/_popover.scss +183 -0
- data/_sass/_print.scss +141 -0
- data/_sass/_progress.scss +34 -0
- data/_sass/_reboot.scss +462 -0
- data/_sass/_root.scss +19 -0
- data/_sass/_spinners.scss +53 -0
- data/_sass/_tables.scss +187 -0
- data/_sass/_toasts.scss +43 -0
- data/_sass/_tooltip.scss +115 -0
- data/_sass/_transitions.scss +22 -0
- data/_sass/_type.scss +125 -0
- data/_sass/_utilities.scss +16 -0
- data/_sass/_variables.scss +1091 -0
- data/_sass/body.scss +22 -0
- data/_sass/bootstrap-grid.scss +29 -0
- data/_sass/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap.scss +44 -0
- data/_sass/header.scss +54 -0
- data/_sass/main.scss +22 -0
- data/_sass/mixins/_alert.scss +13 -0
- data/_sass/mixins/_background-variant.scss +21 -0
- data/_sass/mixins/_badge.scss +11 -0
- data/_sass/mixins/_border-radius.scss +35 -0
- data/_sass/mixins/_box-shadow.scss +5 -0
- data/_sass/mixins/_breakpoints.scss +123 -0
- data/_sass/mixins/_buttons.scss +111 -0
- data/_sass/mixins/_caret.scss +62 -0
- data/_sass/mixins/_clearfix.scss +7 -0
- data/_sass/mixins/_float.scss +11 -0
- data/_sass/mixins/_forms.scss +198 -0
- data/_sass/mixins/_gradients.scss +45 -0
- data/_sass/mixins/_grid-framework.scss +66 -0
- data/_sass/mixins/_grid.scss +51 -0
- data/_sass/mixins/_hover.scss +37 -0
- data/_sass/mixins/_image.scss +36 -0
- data/_sass/mixins/_list-group.scss +21 -0
- data/_sass/mixins/_lists.scss +7 -0
- data/_sass/mixins/_nav-divider.scss +10 -0
- data/_sass/mixins/_pagination.scss +22 -0
- data/_sass/mixins/_reset-text.scss +17 -0
- data/_sass/mixins/_resize.scss +6 -0
- data/_sass/mixins/_screen-reader.scss +33 -0
- data/_sass/mixins/_size.scss +6 -0
- data/_sass/mixins/_table-row.scss +39 -0
- data/_sass/mixins/_text-emphasis.scss +14 -0
- data/_sass/mixins/_text-hide.scss +13 -0
- data/_sass/mixins/_text-truncate.scss +8 -0
- data/_sass/mixins/_transition.scss +16 -0
- data/_sass/mixins/_visibility.scss +7 -0
- data/_sass/utilities/_align.scss +8 -0
- data/_sass/utilities/_background.scss +19 -0
- data/_sass/utilities/_borders.scss +63 -0
- data/_sass/utilities/_clearfix.scss +3 -0
- data/_sass/utilities/_display.scss +38 -0
- data/_sass/utilities/_embed.scss +39 -0
- data/_sass/utilities/_flex.scss +51 -0
- data/_sass/utilities/_float.scss +9 -0
- data/_sass/utilities/_overflow.scss +5 -0
- data/_sass/utilities/_position.scss +32 -0
- data/_sass/utilities/_screenreaders.scss +11 -0
- data/_sass/utilities/_shadows.scss +6 -0
- data/_sass/utilities/_sizing.scss +20 -0
- data/_sass/utilities/_spacing.scss +73 -0
- data/_sass/utilities/_text.scss +67 -0
- data/_sass/utilities/_visibility.scss +11 -0
- data/assets/.DS_Store +0 -0
- data/assets/css/styles.scss +6 -0
- data/assets/images/programming_code.svg +1 -0
- data/assets/images/wxmp.png +0 -0
- data/assets/js/app.js +4504 -0
- data/assets/js/app.js.map +1 -0
- data/assets/ts/app.ts +10 -0
- metadata +117 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: faebe380c1a571a11430463643b71fde607bff38
|
|
4
|
+
data.tar.gz: 81f3606a0a565e5f46a132070bf1a44f1605e65c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a60ea47ba7fe0bdc04cd81048191828e8bed6bc0f9f48440a0214d48579628ca637b3793c7f6334eac113fdcf148d15c63161293ff2ad37692bb54b9c76fd160
|
|
7
|
+
data.tar.gz: 714f92787600568a6b6df61c5c8542af96dad5f55b7758e7d50cd1be705cecbfd76a3be93a45befdbd34d9037572314c810626ddf31014eded427cd0fecd2793
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 张赫
|
|
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.
|
data/README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
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
|
|
49
|
+
|
|
50
|
+
Explain what these tests test and why
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
Give an example
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### And coding style tests
|
|
57
|
+
|
|
58
|
+
Explain what these tests test and why
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
Give an example
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Deployment
|
|
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
|
|
93
|
+
|
|
94
|
+
* Hat tip to anyone whose code was used
|
|
95
|
+
* Inspiration
|
|
96
|
+
* etc
|
|
97
|
+
|
|
98
|
+
## Todo List
|
|
99
|
+
|
|
100
|
+
- [x] 基础文件
|
|
101
|
+
- [x] HTML
|
|
102
|
+
- [x] CSS
|
|
103
|
+
- [x] JavaScript
|
|
104
|
+
- [x] MarkDown
|
|
105
|
+
- [ ] 首页基础布局
|
|
106
|
+
- [ ] 顶部导航
|
|
107
|
+
- [ ] 底部页脚
|
|
108
|
+
- [ ] 最新文章列表
|
|
109
|
+
- [ ] 标签文章列表
|
|
110
|
+
- [ ] 分类文章列表
|
|
111
|
+
- [ ] 文章详情页面布局
|
|
112
|
+
- [ ] 开场动画
|
|
113
|
+
- [ ] 进场动画和离场动画
|
|
114
|
+
- [ ] 联系我功能
|
|
115
|
+
- [ ] 评论功能
|
|
116
|
+
- [ ] 订阅功能
|
data/_includes/head.html
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<meta charset="utf-8" />
|
|
2
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1,
|
|
4
|
+
shrink-to-fit=no, user-scalable=no", viewport-fit=cover" />
|
|
5
|
+
<meta name="msapplication-TileColor" content="#4B5CC4" />
|
|
6
|
+
<meta
|
|
7
|
+
name="msapplication-TileImage"
|
|
8
|
+
content="{{ site.baseurl }}/ms-icon-144x144.png"
|
|
9
|
+
/>
|
|
10
|
+
<meta name="theme-color" content="#4B5CC4" />
|
|
11
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
12
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="white" />
|
|
13
|
+
<link
|
|
14
|
+
rel="shortcut icon"
|
|
15
|
+
href="{{ site.baseurl }}/favicon.ico"
|
|
16
|
+
sizes="128x128"
|
|
17
|
+
/>
|
|
18
|
+
<link
|
|
19
|
+
rel="apple-touch-icon"
|
|
20
|
+
sizes="57x57"
|
|
21
|
+
href="{{ site.baseurl }}/apple-icon-57x57.png"
|
|
22
|
+
/>
|
|
23
|
+
<link
|
|
24
|
+
rel="apple-touch-icon"
|
|
25
|
+
sizes="60x60"
|
|
26
|
+
href="{{ site.baseurl }}/apple-icon-60x60.png"
|
|
27
|
+
/>
|
|
28
|
+
<link
|
|
29
|
+
rel="apple-touch-icon"
|
|
30
|
+
sizes="72x72"
|
|
31
|
+
href="{{ site.baseurl }}/apple-icon-72x72.png"
|
|
32
|
+
/>
|
|
33
|
+
<link
|
|
34
|
+
rel="apple-touch-icon"
|
|
35
|
+
sizes="76x76"
|
|
36
|
+
href="{{ site.baseurl }}/apple-icon-76x76.png"
|
|
37
|
+
/>
|
|
38
|
+
<link
|
|
39
|
+
rel="apple-touch-icon"
|
|
40
|
+
sizes="114x114"
|
|
41
|
+
href="{{ site.baseurl }}/apple-icon-114x114.png"
|
|
42
|
+
/>
|
|
43
|
+
<link
|
|
44
|
+
rel="apple-touch-icon"
|
|
45
|
+
sizes="120x120"
|
|
46
|
+
href="{{ site.baseurl }}/apple-icon-120x120.png"
|
|
47
|
+
/>
|
|
48
|
+
<link
|
|
49
|
+
rel="apple-touch-icon"
|
|
50
|
+
sizes="144x144"
|
|
51
|
+
href="{{ site.baseurl }}/apple-icon-144x144.png"
|
|
52
|
+
/>
|
|
53
|
+
<link
|
|
54
|
+
rel="apple-touch-icon"
|
|
55
|
+
sizes="152x152"
|
|
56
|
+
href="{{ site.baseurl }}/apple-icon-152x152.png"
|
|
57
|
+
/>
|
|
58
|
+
<link
|
|
59
|
+
rel="apple-touch-icon"
|
|
60
|
+
sizes="180x180"
|
|
61
|
+
href="{{ site.baseurl }}/apple-icon-180x180.png"
|
|
62
|
+
/>
|
|
63
|
+
<link
|
|
64
|
+
rel="icon"
|
|
65
|
+
type="image/png"
|
|
66
|
+
sizes="192x192"
|
|
67
|
+
href="{{ site.baseurl }}/android-icon-192x192.png"
|
|
68
|
+
/>
|
|
69
|
+
<link
|
|
70
|
+
rel="icon"
|
|
71
|
+
type="image/png"
|
|
72
|
+
sizes="32x32"
|
|
73
|
+
href="{{ site.baseurl }}/favicon-32x32.png"
|
|
74
|
+
/>
|
|
75
|
+
<link
|
|
76
|
+
rel="icon"
|
|
77
|
+
type="image/png"
|
|
78
|
+
sizes="96x96"
|
|
79
|
+
href="{{ site.baseurl }}/favicon-96x96.png"
|
|
80
|
+
/>
|
|
81
|
+
<link
|
|
82
|
+
rel="icon"
|
|
83
|
+
type="image/png"
|
|
84
|
+
sizes="16x16"
|
|
85
|
+
href="{{ site.baseurl }}/favicon-16x16.png"
|
|
86
|
+
/>
|
|
87
|
+
<link rel="manifest" href="{{ site.baseurl }}/manifest.json" />
|
|
88
|
+
{% feed_meta %}
|
|
89
|
+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/styles.css" />
|
|
90
|
+
{% seo %}
|
|
91
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
92
|
+
<script
|
|
93
|
+
async
|
|
94
|
+
src="https://www.googletagmanager.com/gtag/js?id={{ site.ga.userid }}"
|
|
95
|
+
></script>
|
|
96
|
+
<script>
|
|
97
|
+
window.dataLayer = window.dataLayer || [];
|
|
98
|
+
function gtag() {
|
|
99
|
+
dataLayer.push(arguments);
|
|
100
|
+
}
|
|
101
|
+
gtag("js", new Date());
|
|
102
|
+
|
|
103
|
+
gtag("config", "{{ site.ga.userid }}");
|
|
104
|
+
</script>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<header class="yoyoyo-header">
|
|
2
|
+
{% 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
|
+
</header>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{% if paginator.next_page %}
|
|
2
|
+
<div class="posts__pagination">
|
|
3
|
+
<span class="posts__next">Load More</span>
|
|
4
|
+
</div>
|
|
5
|
+
{% endif %}
|
|
6
|
+
|
|
7
|
+
{% if paginator.total_pages > 1 %}
|
|
8
|
+
|
|
9
|
+
<div class="pagination">
|
|
10
|
+
{% if paginator.previous_page %}
|
|
11
|
+
<a href="{{ paginator.previous_page_path | relative_url }}">
|
|
12
|
+
« Prev
|
|
13
|
+
</a>
|
|
14
|
+
{% else %}
|
|
15
|
+
<span>« Prev</span>
|
|
16
|
+
{% endif %}
|
|
17
|
+
|
|
18
|
+
{% for page in (1..paginator.total_pages) %}
|
|
19
|
+
{% if page == paginator.page %}
|
|
20
|
+
<em>{{ page }}</em>
|
|
21
|
+
{% elsif page == 1 %}
|
|
22
|
+
<a href="{{ paginator.previous_page_path | relative_url }}">
|
|
23
|
+
{{ page }}
|
|
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>
|
|
36
|
+
{% else %}
|
|
37
|
+
<span>Next »</span>
|
|
38
|
+
{% endif %}
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
{% endif %}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<div class="grid-item" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
|
|
2
|
+
<a class="grid-item-body posts-link" href="{{ post.url | prepend: site.baseurl }}" itemprop="url">
|
|
3
|
+
{% if post.image %}
|
|
4
|
+
<figure class="posts__img">
|
|
5
|
+
<img src="{{ post.image }}" alt="{{ post.title }}" data-aos="fade-in" itemprop="image"/>
|
|
6
|
+
</figure>
|
|
7
|
+
{% endif %}
|
|
8
|
+
<div>
|
|
9
|
+
<h2 class="posts__text"><strong itemprop="name">{{ post.title }}</strong> — <span itemprop="description">{{ post.content | strip_html | truncatewords: 35, "" }}</span></h2>
|
|
10
|
+
</div>
|
|
11
|
+
</a>
|
|
12
|
+
</div>
|
data/_includes/tags.html
ADDED
data/_layouts/about.html
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
<h1>{{ page.name }}</h1>
|
|
5
|
+
<h2>{{ page.position }}</h2>
|
|
6
|
+
|
|
7
|
+
{{ content }}
|
|
8
|
+
|
|
9
|
+
<h2>Posts</h2>
|
|
10
|
+
<ul>
|
|
11
|
+
{% assign filtered_posts = site.posts | where: 'author', page.short_name %}
|
|
12
|
+
{% for post in filtered_posts %}
|
|
13
|
+
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
|
|
14
|
+
{% endfor %}
|
|
15
|
+
</ul>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="{{ site.lang }}">
|
|
3
|
+
<head>
|
|
4
|
+
{% include head.html %}
|
|
5
|
+
</head>
|
|
6
|
+
<body>
|
|
7
|
+
{% include header.html %}
|
|
8
|
+
<main>
|
|
9
|
+
{{ content }}
|
|
10
|
+
</main>
|
|
11
|
+
{% include footer.html %}
|
|
12
|
+
<script src="{{ site.baseurl }}/assets/js/app.js"></script>
|
|
13
|
+
<script type="application/ld+json">
|
|
14
|
+
{
|
|
15
|
+
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
|
|
16
|
+
"@id": "{{ site.url }}{{ site.baseurl }}{{ page.url }}",
|
|
17
|
+
"appid": "{{ site.baidu.appid }}",
|
|
18
|
+
{% if page.title %}
|
|
19
|
+
"title": "{{ page.title }}",
|
|
20
|
+
{% else %}
|
|
21
|
+
"title": "{{ site.title }}",
|
|
22
|
+
{% endif%}
|
|
23
|
+
"images": [
|
|
24
|
+
"{{ site.url }}{{ site.baseurl }}{{ page.previewimg}}"
|
|
25
|
+
],
|
|
26
|
+
"pubDate": "{{ page.date | date_to_xmlschema }}"
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
data/_layouts/home.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
title: Home
|
|
4
|
+
pagination:
|
|
5
|
+
enabled: true
|
|
6
|
+
---
|
|
7
|
+
<main>
|
|
8
|
+
<div class="yoyoyo-banner">
|
|
9
|
+
<div class="yoyoyo-banner-slogan">
|
|
10
|
+
<h1>YOYOYO</h1>
|
|
11
|
+
<p>all-in-one</p>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="yoyoyo-banner-svg"></div>
|
|
14
|
+
</div>
|
|
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>
|