jekyll-theme-hext 0.2.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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +71 -0
- data/_includes/assets.html +14 -0
- data/_includes/comment/disqus.html +14 -0
- data/_includes/comment/static/comment.html +39 -0
- data/_includes/comment/static/comments.html +18 -0
- data/_includes/comment/static/new_comment.html +50 -0
- data/_includes/comments.html +6 -0
- data/_includes/contact.html +7 -0
- data/_includes/footer.html +5 -0
- data/_includes/head.html +10 -0
- data/_includes/header.html +24 -0
- data/_includes/header_nav.html +14 -0
- data/_includes/icons.html +47 -0
- data/_includes/icons/bell.html +1 -0
- data/_includes/icons/codepen.html +1 -0
- data/_includes/icons/ellipsis.html +5 -0
- data/_includes/icons/facebook.html +2 -0
- data/_includes/icons/github.html +3 -0
- data/_includes/icons/instagram.html +5 -0
- data/_includes/icons/left.html +3 -0
- data/_includes/icons/link.html +4 -0
- data/_includes/icons/linkedin.html +5 -0
- data/_includes/icons/mail.html +4 -0
- data/_includes/icons/right.html +3 -0
- data/_includes/icons/rss.html +5 -0
- data/_includes/icons/smile.html +6 -0
- data/_includes/icons/twitter.html +3 -0
- data/_includes/icons/user.html +4 -0
- data/_includes/icons/weibo.html +3 -0
- data/_includes/loading.html +4 -0
- data/_includes/pagination.html +29 -0
- data/_includes/slides.html +53 -0
- data/_includes/smiley.html +12 -0
- data/_includes/status.html +4 -0
- data/_includes/summary.html +30 -0
- data/_includes/title.html +7 -0
- data/_layouts/404.html +8 -0
- data/_layouts/archive.html +44 -0
- data/_layouts/blog.html +38 -0
- data/_layouts/book.html +28 -0
- data/_layouts/chapter.html +32 -0
- data/_layouts/default.html +7 -0
- data/_layouts/home.html +28 -0
- data/_layouts/page.html +17 -0
- data/_layouts/post.html +42 -0
- data/_layouts/slides.html +6 -0
- data/assets/css/tomorrow.css +72 -0
- data/assets/js/highlight.js +2 -0
- data/assets/main.css +1 -0
- data/assets/main.js +141 -0
- metadata +94 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1077a8384998ac82d628af2661c507a66e21ee0eed04f0abde2fbe8aeca1f4af
|
4
|
+
data.tar.gz: f5dd00892025c750b0792c44cab889ae735ed4e6bf964a33c23598276e123cb5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8b0b03117916a47a709567345557dcbc3dbf27914ea486fec78aaedaa76aa9245829b75d5ee92f002d9d2002f5a7f808568af67dabf56d1267265b9cc1feedeb
|
7
|
+
data.tar.gz: 2632da2b88a4ae6dfcabb76ffaaeed0cc25b14650a9f16c30d7bcd1f518ca1e48355f8400654500f036d7fee9b1b9070f7578aa50b9a5f934d5bb3b449ca4099
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 zhangshiyu
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# jekyll-theme-hext
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/jekyll-theme-hext)
|
4
|
+
|
5
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
|
6
|
+
|
7
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
8
|
+
|
9
|
+
[DEMO with full functions.](https://erl.im)
|
10
|
+
|
11
|
+
[A simple blog demo](https://en.erl.im)
|
12
|
+
|
13
|
+
## Demo
|
14
|
+
|
15
|
+
|  |  |
|
16
|
+
| ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
17
|
+
| `layout: home` [Demo](https://en.erl.im/blog/) | `layout: blog` [Demo](https://erl.im/blog) |
|
18
|
+
|  |  |
|
19
|
+
| `layout: post` [Demo](https://erl.im/blog/the-jekyll-comment-system) | `layout: page` [Demo](https://erl.im/about) |
|
20
|
+
|  |  |
|
21
|
+
| `layout: archive` [Demo](https://erl.im/archive) | <strong style="color: red">\*</strong> `layout: slides` [Demo](https://erl.im) |
|
22
|
+
|  |  |
|
23
|
+
| <strong style="color: red">\*</strong> `layout: book` [Demo](https://erl.im/corner) | <strong style="color: red">\*</strong> `layout: chapter` [Demo](https://erl.im/corner/1) |
|
24
|
+
|
25
|
+
The layout with red \* relied on a jekyll books generator plugin: [`jekyll-books`](https://github.com/erlzhang/jekyll-books)
|
26
|
+
|
27
|
+
## Installation
|
28
|
+
|
29
|
+
Add this line to your Jekyll site's `Gemfile`:
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
gem "jekyll-theme-hext"
|
33
|
+
```
|
34
|
+
|
35
|
+
And add this line to your Jekyll site's `_config.yml`:
|
36
|
+
|
37
|
+
```yaml
|
38
|
+
theme: jekyll-theme-hext
|
39
|
+
```
|
40
|
+
|
41
|
+
And then execute:
|
42
|
+
|
43
|
+
$ bundle
|
44
|
+
|
45
|
+
Or install it yourself as:
|
46
|
+
|
47
|
+
$ gem install jekyll-theme-hext
|
48
|
+
|
49
|
+
## Usage
|
50
|
+
|
51
|
+
- [Settings](/_config.yml)
|
52
|
+
- [Layouts](/docs/layouts.md)
|
53
|
+
- [Comments](/docs/comments.md)
|
54
|
+
- [`jekyll-books` generator](/docs/books.md)
|
55
|
+
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/erlzhang/jekyll-theme-hext. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
59
|
+
|
60
|
+
## Development
|
61
|
+
|
62
|
+
To set up your environment to develop this theme, run `bundle install`.
|
63
|
+
|
64
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
65
|
+
|
66
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
67
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-hext.gemspec` accordingly.
|
68
|
+
|
69
|
+
## License
|
70
|
+
|
71
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<link rel="stylesheet" href="{{ "/assets/main.css?v=0.2.6" | relative_url }}" />
|
2
|
+
<script src="{{ "/assets/main.js?v=0.2.6" | relative_url }}" defer></script>
|
3
|
+
{%- if "chapter,post,page" contains page.layout -%}
|
4
|
+
{%- if site.theme_setting.code or page.code -%}
|
5
|
+
<link rel="stylesheet" href="{{ "/assets/css/tomorrow.css" | relative_url }}" />
|
6
|
+
<script src="{{ "/assets/js/highlight.js" | relative_url }}"></script>
|
7
|
+
{%- endif -%}
|
8
|
+
{%- if site.theme_setting.math or page.math -%}
|
9
|
+
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
|
10
|
+
{%- endif -%}
|
11
|
+
{%- if site.theme_setting.mermaid or page.mermaid -%}
|
12
|
+
<script src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js" defer></script>
|
13
|
+
{%- endif -%}
|
14
|
+
{%- endif -%}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div id="disqus_thread"></div>
|
2
|
+
<script>
|
3
|
+
var disqus_config = function () {
|
4
|
+
this.page.url = "{{ page.url | absolute_url }}";
|
5
|
+
this.page.identifier = "{{ page.slug }}";
|
6
|
+
};
|
7
|
+
(function() { // DON'T EDIT BELOW THIS LINE
|
8
|
+
var d = document, s = d.createElement('script');
|
9
|
+
s.src = 'https://{{ site.comment.disqus.name }}.disqus.com/embed.js';
|
10
|
+
s.setAttribute('data-timestamp', +new Date());
|
11
|
+
(d.head || d.body).appendChild(s);
|
12
|
+
})();
|
13
|
+
</script>
|
14
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<div class="comment" id="comment-{{index}}">
|
2
|
+
<div class="comment-main clearfix">
|
3
|
+
<div class="comment-left">
|
4
|
+
<div class="comment__avatar"><img src="https://www.gravatar.com/avatar/{{ email }}?d=mm&s=45"></div>
|
5
|
+
</div>
|
6
|
+
<div class="comment-right">
|
7
|
+
<div class="comment__meta">
|
8
|
+
{%- if url and url != "" -%}
|
9
|
+
<a class="comment__author" href="{% if url contains "http" -%}{{ url }}{% else %}{{ url | prepend: "http://" }}{% endif %}" target="_blank" rel="nofollow">{{ name }}</a>
|
10
|
+
{%- else -%}
|
11
|
+
<span class="comment__author">{{ name }}</span>
|
12
|
+
{%- endif -%}
|
13
|
+
{%- if parent != "" and parent_name -%}
|
14
|
+
<span class="comment__reply_to">@{{ parent_name }}</span>
|
15
|
+
{%- endif -%}
|
16
|
+
<span class="comment__date">{{ date | date: "%Y-%m-%d %H:%M"}}</span>
|
17
|
+
</div>
|
18
|
+
<div class="comment__content">
|
19
|
+
{{ message | smiley | markdownify }}
|
20
|
+
</div>
|
21
|
+
<div class="comment__reply">
|
22
|
+
<a href="#commentContainer" class="reply-btn" data-reply-to="{{ index }}" data-reply-id="{{ email }}">{{ site.theme_setting.lang.comment.reply | default: "Reply" }}</a>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
{%- capture i -%}{{ include.index }}{% endcapture -%}
|
27
|
+
{%- assign replies = site.data.comments[page.slug] | sort | where_exp: 'comment', 'comment[1].parent == i' -%}
|
28
|
+
{%- for reply in replies -%}
|
29
|
+
{%- assign index = forloop.index | prepend: '-' | prepend: include.index -%}
|
30
|
+
{%- assign parent_name = include.name -%}
|
31
|
+
{%- assign parent = reply[1].parent -%}
|
32
|
+
{%- assign email = reply[1].email -%}
|
33
|
+
{%- assign name = reply[1].name -%}
|
34
|
+
{%- assign url = reply[1].url -%}
|
35
|
+
{%- assign date = reply[1].date -%}
|
36
|
+
{%- assign message = reply[1].message -%}
|
37
|
+
{%- include comment/static/comment.html index=index parent=parent email=email name=name url=url date=date message=message parent_name=parent_name -%}
|
38
|
+
{%- endfor -%}
|
39
|
+
</div>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div id="commentContainer" class="comment-container">
|
2
|
+
{%- include comment/static/new_comment.html -%}
|
3
|
+
<div class="comment__list" id="commentsList">
|
4
|
+
{%- if site.data.comments[page.slug] -%}
|
5
|
+
{%- assign comments = site.data.comments[page.slug] | sort | where_exp: 'comment', 'comment[1].parent == ""' -%}
|
6
|
+
{%- for comment in comments -%}
|
7
|
+
{%- assign index = forloop.index -%}
|
8
|
+
{%- assign email = comment[1].email -%}
|
9
|
+
{%- assign name = comment[1].name -%}
|
10
|
+
{%- assign url = comment[1].url -%}
|
11
|
+
{%- assign date = comment[1].date -%}
|
12
|
+
{%- assign message = comment[1].message -%}
|
13
|
+
{%- assign parent = comment[1].parent -%}
|
14
|
+
{% include comment/static/comment.html index=index email=email name=name url=url date=date message=message -%}
|
15
|
+
{%- endfor -%}
|
16
|
+
{%- endif -%}
|
17
|
+
</div>
|
18
|
+
</div>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<form method="POST" action="{{ site.comment.static.postUrl }}" class="comment__form clearfix" id="newComment">
|
2
|
+
<input name="options[slug]" type="hidden" value="{{ page.slug }}">
|
3
|
+
<input name="options[title]" type="hidden" value="{{ page.title }}">
|
4
|
+
<input name="options[url]" type="hidden" value="{{ page.url | absolute_url }}">
|
5
|
+
<input name="options[replyTo]" type="hidden" value="">
|
6
|
+
<input name="fields[parent]" type="hidden" value="">
|
7
|
+
<div class="comment-left">
|
8
|
+
<div class="comment__avatar">
|
9
|
+
<img src="https://www.gravatar.com/avatar/?d=mm&s=54" id="visitorAvatar"/>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<div class="comment-right new-comment-right">
|
13
|
+
<div class="comment__box">
|
14
|
+
<div class="comment__box_top hide" id="visitorInfo">
|
15
|
+
<div class="input-group">
|
16
|
+
<input type="text" name="fields[name]" placeholder="*{{ site.theme_setting.lang.comment.user | default: 'Name' }}" class="form-control form-control-name" required autocomplete="true">
|
17
|
+
<label class="input-label">
|
18
|
+
{%- include icons/user.html -%}
|
19
|
+
</label>
|
20
|
+
</div>
|
21
|
+
<div class="input-group">
|
22
|
+
<input type="text" placeholder="*{{ site.theme_setting.lang.comment.email | default: 'Email' }}" class="form-control" type="email" required name="fields[email]" autocomplete="true">
|
23
|
+
<label class="input-label">
|
24
|
+
{%- include icons/mail.html -%}
|
25
|
+
</label>
|
26
|
+
</div>
|
27
|
+
<div class="input-group">
|
28
|
+
<input type="text" placeholder="{{ site.theme_setting.lang.comment.url | default: 'Your Site' }}" class="form-control" type="url" name="fields[url]" autocomplete="true">
|
29
|
+
<label class="input-label">
|
30
|
+
{%- include icons/link.html -%}
|
31
|
+
</label>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<div class="comment__box_center">
|
35
|
+
<textarea name="fields[message]" class="form-control message-text" placeholder="{{ site.theme_setting.lang.comment.message | default: 'Something to say...' }}"></textarea>
|
36
|
+
<span class="message-arrow"></span>
|
37
|
+
</div>
|
38
|
+
<div class="comment__box_bottom">
|
39
|
+
{%- if site.smiley.enabled --%}
|
40
|
+
{%- include smiley.html -%}
|
41
|
+
{%- endif --%}
|
42
|
+
<div class="comment__hint" id="commentHint">
|
43
|
+
</div>
|
44
|
+
<button type="submit" class="submit-btn" id="submitBtn">
|
45
|
+
enmmm..
|
46
|
+
</button>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
</form>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<aside class="post__contact">
|
2
|
+
{%- assign about_page_path = site.theme_setting.about_page | default: "index.md" %}
|
3
|
+
{%- assign about_page = site.pages | where: "path", about_page_path | first -%}
|
4
|
+
<h4><a href="{{ about_page.url | relative_url }}">{{ site.author | default: site.title }}</a></h4>
|
5
|
+
{{ site.description | markdownify }}
|
6
|
+
{%- include icons.html -%}
|
7
|
+
</aside>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<footer class="site-footer">
|
2
|
+
© {{ site.time | date: "%Y" }}<a href="{{ "/" | relative_url }}">{{ site.title }}</a>.
|
3
|
+
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
4
|
+
<span id="busuanzi_container_site_pv">本站总访问量<span id="busuanzi_value_site_pv"></span>次</span>
|
5
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
4
|
+
<meta name="author" content="{{ site.author.name }}">
|
5
|
+
{%- include title.html -%}
|
6
|
+
{{ site.head_code }}
|
7
|
+
<meta name="keywords" content="{{ page.keywords }}">
|
8
|
+
<meta name="description" content="{{ page.description }}">
|
9
|
+
{%- include assets.html -%}
|
10
|
+
</head>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<a href="{{ "/" | relative_url }}" class="logo">
|
2
|
+
{%- if site.logo -%}
|
3
|
+
<img src="{{ site.logo | img_url_prefix }}" class="logo_img">
|
4
|
+
{%- endif -%}
|
5
|
+
<h1>{{ site.title }}</h1>
|
6
|
+
</a>
|
7
|
+
{%- if "slides,chapter,book" contains page.layout and site.theme_setting.archive_page -%}
|
8
|
+
{%- assign archive_page = site.pages | where: "path", site.theme_setting.archive_page | first -%}
|
9
|
+
<a href="{{ archive_page.url | relative_url }}" class="sidebar__toggler">
|
10
|
+
<span class="sidebar__toggler_top"></span>
|
11
|
+
<span class="sidebar__toggler_middle"></span>
|
12
|
+
<span class="sidebar__toggler_bottom"></span>
|
13
|
+
</a>
|
14
|
+
{%- endif %}
|
15
|
+
{%- if page.layout == "chapter" -%}
|
16
|
+
<div class="book-header" role="navigation">
|
17
|
+
<a href="#" id="summaryToggler" class="summary__toggler">
|
18
|
+
{% include icons/ellipsis.html%}
|
19
|
+
</a>
|
20
|
+
<h1>
|
21
|
+
{{ page.title }} - {{ page.book.title }}
|
22
|
+
</h1>
|
23
|
+
</div>
|
24
|
+
{%- endif -%}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{%- if site.theme_setting.nav_pages -%}
|
2
|
+
<nav class="top-nav">
|
3
|
+
{% for page_path in site.theme_setting.nav_pages %}
|
4
|
+
{%- if page_path.url -%}
|
5
|
+
{%- assign my_page = page_path -%}
|
6
|
+
{%- else -%}
|
7
|
+
{%- assign my_page = site.pages | where: "path", page_path | first -%}
|
8
|
+
{%- endif -%}
|
9
|
+
{% if my_page.title %}
|
10
|
+
<a href="{{ my_page.url | relative_url}}" class="nav-link {% if page.url == my_page.url %}active{% endif %}">{{ my_page.title}}</a>
|
11
|
+
{% endif %}
|
12
|
+
{% endfor %}
|
13
|
+
</nav>
|
14
|
+
{%- endif -%}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<div class="icon__list">
|
2
|
+
{%- if site.email -%}
|
3
|
+
<a href="mailto:{{ site.email }}" class="icon__link" target="_blank">
|
4
|
+
{%- include icons/mail.html -%}
|
5
|
+
</a>
|
6
|
+
{%- endif -%}
|
7
|
+
{%- if site.social.github -%}
|
8
|
+
<a href="https://github.com/{{ site.social.github | cgi_escape | escape }}" class="icon__link" target="_blank">
|
9
|
+
{%- include icons/github.html -%}
|
10
|
+
</a>
|
11
|
+
{%- endif -%}
|
12
|
+
{%- if site.social.twitter -%}
|
13
|
+
<a href="https://twitter.com/{{ site.social.twitter | cgi_escape | escape }}" class="icon__link" target="_blank">
|
14
|
+
{%- include icons/twitter.html -%}
|
15
|
+
</a>
|
16
|
+
{%- endif -%}
|
17
|
+
{%- if site.social.facebook -%}
|
18
|
+
<a href="https://www.facebook.com/{{ site.social.facebook | cgi_escape | escape }}" class="icon__link" target="_blank">
|
19
|
+
{%- include icons/facebook.html -%}
|
20
|
+
</a>
|
21
|
+
{%- endif -%}
|
22
|
+
{%- if site.social.instagram -%}
|
23
|
+
<a href="https://www.instagram.com/{{ site.social.instagram | cgi_escape | escape }}" class="icon__link" target="_blank">
|
24
|
+
{%- include icons/instagram.html -%}
|
25
|
+
</a>
|
26
|
+
{%- endif -%}
|
27
|
+
{%- if site.social.linkedin -%}
|
28
|
+
<a href="https://www.linkedin.com/in/{{ site.social.linkedin | cgi_escape | escape }}" class="icon__link" target="_blank">
|
29
|
+
{%- include icons/linkedin.html -%}
|
30
|
+
</a>
|
31
|
+
{%- endif -%}
|
32
|
+
{%- if site.social.weibo -%}
|
33
|
+
<a href="https://weibo.com/{{ site.social.weibo | cgi_escape | escape }}" class="icon__link" target="_blank">
|
34
|
+
{%- include icons/weibo.html -%}
|
35
|
+
</a>
|
36
|
+
{%- endif -%}
|
37
|
+
{%- if site.social.codepen -%}
|
38
|
+
<a href="https://codepen.io/{{ site.social.codepen | cgi_escape | escape }}" class="icon__link" target="_blank">
|
39
|
+
{%- include icons/codepen.html -%}
|
40
|
+
</a>
|
41
|
+
{%- endif -%}
|
42
|
+
{%- if site.rss -%}
|
43
|
+
<a href="{{ site.rss | relative_url }}" class="icon__link">
|
44
|
+
{%- include icons/rss.html -%}
|
45
|
+
</a>
|
46
|
+
{%- endif -%}
|
47
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line></svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
2
|
+
<circle cx="12" cy="12" r="1"></circle>
|
3
|
+
<circle cx="19" cy="12" r="1"></circle>
|
4
|
+
<circle cx="5" cy="12" r="1"></circle>
|
5
|
+
</svg>
|
@@ -0,0 +1,2 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke">
|
2
|
+
<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg viewBox="0 0 64 64" class="icon__fill">
|
2
|
+
<path stroke-width="0" d="M32 0 C14 0 0 14 0 32 0 53 19 62 22 62 24 62 24 61 24 60 L24 55 C17 57 14 53 13 50 13 50 13 49 11 47 10 46 6 44 10 44 13 44 15 48 15 48 18 52 22 51 24 50 24 48 26 46 26 46 18 45 12 42 12 31 12 27 13 24 15 22 15 22 13 18 15 13 15 13 20 13 24 17 27 15 37 15 40 17 44 13 49 13 49 13 51 20 49 22 49 22 51 24 52 27 52 31 52 42 45 45 38 46 39 47 40 49 40 52 L40 60 C40 61 40 62 42 62 45 62 64 53 64 32 64 14 50 0 32 0 Z" />
|
3
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke">
|
2
|
+
<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect>
|
3
|
+
<path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path>
|
4
|
+
<line x1="17.5" y1="6.5" x2="17.5" y2="6.5"></line>
|
5
|
+
</svg>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
2
|
+
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
|
3
|
+
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
4
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="stroke__icon">
|
2
|
+
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path>
|
3
|
+
<rect x="2" y="9" width="4" height="12"></rect>
|
4
|
+
<circle cx="4" cy="4" r="2"></circle>
|
5
|
+
</svg>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
2
|
+
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
|
3
|
+
<polyline points="22,6 12,13 2,6"></polyline>
|
4
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
2
|
+
<path d="M4 11a9 9 0 0 1 9 9"></path>
|
3
|
+
<path d="M4 4a16 16 0 0 1 16 16"></path>
|
4
|
+
<circle cx="5" cy="19" r="1"></circle>
|
5
|
+
</svg>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke">
|
2
|
+
<circle cx="12" cy="12" r="10"></circle>
|
3
|
+
<path d="M8 14s1.5 2 4 2 4-2 4-2"></path>
|
4
|
+
<line x1="9" y1="9" x2="9.01" y2="9"></line>
|
5
|
+
<line x1="15" y1="9" x2="15.01" y2="9"></line>
|
6
|
+
</svg>
|