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
@@ -0,0 +1,3 @@
|
|
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">
|
2
|
+
<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
|
3
|
+
</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="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
3
|
+
<circle cx="12" cy="7" r="4"></circle>
|
4
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg viewBox="0 0 1024 1024" class="icon__fill">
|
2
|
+
<path d="M385.718857 733.696c16.018286-26.294857 7.424-56.576-19.419428-67.986286-25.709714-10.861714-60.013714 0.585143-75.995429 25.709715-16.566857 25.709714-8.557714 55.990857 17.152 67.986285 26.294857 11.995429 61.696 0.585143 78.299429-25.709714z m53.723429-69.12c5.705143-10.276571 2.304-21.723429-8.009143-25.709714a24.941714 24.941714 0 0 0-28.562286 10.861714c-5.705143 10.276571-2.852571 21.138286 7.424 25.709714a24.356571 24.356571 0 0 0 29.147429-10.861714z m99.401143 61.147429c-34.304 77.714286-133.705143 119.990857-218.294858 92.562285-81.700571-26.294857-116.004571-106.861714-80.566857-179.419428 35.437714-70.838857 126.281143-110.848 206.848-90.294857 84.004571 21.723429 126.281143 100.571429 92.013715 177.152z m178.285714-91.428572c-10.861714-111.433143-157.147429-188.013714-326.838857-171.446857-169.728 17.152-297.728 120.576-286.866286 232.009143s157.147429 188.013714 326.838857 171.446857c169.728-17.152 297.728-120.576 286.866286-232.009143z m176.018286 2.267429c0 128.585143-185.161143 290.304-463.433143 290.304C217.161143 926.866286 0 824.027429 0 654.299429c0-88.576 55.990857-190.866286 152.576-287.414858 129.133714-129.133714 279.442286-187.428571 336.018286-130.852571 25.161143 24.576 27.428571 67.986286 11.446857 119.442286-8.009143 26.294857 24.576 11.446857 24.576 11.995428 104.009143-43.995429 194.852571-46.299429 227.986286 1.133715 17.700571 25.161143 16.018286 60.562286 0 101.705142-7.424 18.870857 2.304 21.723429 16.566857 26.294858 58.843429 18.285714 124.013714 62.281143 124.013714 139.995428z m-42.276572-356.571429a131.401143 131.401143 0 0 1 27.428572 129.133714 33.572571 33.572571 0 1 1-64-20.553142c6.838857-21.723429 2.304-45.714286-13.714286-63.414858s-39.424-24.576-61.147429-20.004571c-18.285714 3.986286-36.571429-7.424-40.009143-25.709714a33.462857 33.462857 0 0 1 25.709715-40.009143 130.669714 130.669714 0 0 1 125.696 40.557714z m103.424-93.147428c67.437714 74.276571 85.138286 175.981714 56.576 265.142857-6.838857 20.553143-28.562286 32-49.152 25.161143s-32-28.562286-25.709714-49.152c20.553143-63.414857 8.009143-136.009143-40.009143-188.562286a192.804571 192.804571 0 0 0-183.442286-59.428572c-21.138286 4.571429-42.276571-9.142857-46.848-30.281142s9.142857-41.728 30.281143-46.299429c92.013714-19.419429 190.866286 8.557714 258.304 83.419429z" stroke-width="0"></path>
|
3
|
+
</svg>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div class="paginiation">
|
2
|
+
{%- if paginator.previous_page -%}
|
3
|
+
<li>
|
4
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagi__icon prev" id="btnPrev">
|
5
|
+
<svg width="40" height="40">
|
6
|
+
<circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
|
7
|
+
</svg>
|
8
|
+
<span class="pagi__icon_arrow"></span>
|
9
|
+
</a>
|
10
|
+
</li>
|
11
|
+
{%- endif -%}
|
12
|
+
{%- if paginator.page_trail -%}
|
13
|
+
{%- for trail in paginator.page_trail -%}
|
14
|
+
<li>
|
15
|
+
<a href="{{ trail.path | prepend: site.baseurl }}" title="{{trail.title}}" class="pagi__link{% if page.url == trail.path %} active{% endif %}">{{ trail.num }}</a>
|
16
|
+
</li>
|
17
|
+
{%- endfor -%}
|
18
|
+
{%- endif -%}
|
19
|
+
{%- if paginator.next_page -%}
|
20
|
+
<li>
|
21
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagi__icon next" id="btnNext">
|
22
|
+
<svg width="40" height="40">
|
23
|
+
<circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
|
24
|
+
</svg>
|
25
|
+
<span class="pagi__icon_arrow"></span>
|
26
|
+
</a>
|
27
|
+
</li>
|
28
|
+
{%- endif -%}
|
29
|
+
</div>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<main class="slide" id="sectionContainer">
|
2
|
+
{%- assign count = site.theme_setting.slides_count | default: 4 -%}
|
3
|
+
{%- for book in site.books limit: count -%}
|
4
|
+
{%- assign is_odd = forloop.index | modulo: 2 -%}
|
5
|
+
<div class="slide__section">
|
6
|
+
{%- if is_odd == 1 -%}
|
7
|
+
<div class="slide__img">
|
8
|
+
<a href="{{ book.url | relative_url }}" class="slide__link" title="{{ book.title }}"></a>
|
9
|
+
<div class="slide__img_placehold"></div>
|
10
|
+
<img src="{{ book.img | img_url_prefix }}" class="slide__img_entity" alt="{{ book.title }}">
|
11
|
+
</div>
|
12
|
+
{%- endif -%}
|
13
|
+
<div class="slide__text {% if is_odd == 1 %}slide__text_right{% else %}slide__text_left{% endif %}">
|
14
|
+
<a href="{{ book.url | relative_url }}" class="slide__link" title="{{ book.title }}"></a>
|
15
|
+
<div class="slide__title">
|
16
|
+
<div class="slide__title_inner">
|
17
|
+
<h2 class="slide__title_text">{{ book.title }}</h2>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="slide__time">
|
21
|
+
<div class="slide__time_inner">
|
22
|
+
<p class="slide__time_text">{{ book.date }}</p>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
{%- if is_odd == 0 -%}
|
27
|
+
<div class="slide__img">
|
28
|
+
<a href="{{ book.url | relative_url }}" class="slide__link" title="{{ book.title }}"></a>
|
29
|
+
<div class="slide__img_placehold"></div>
|
30
|
+
<img src="{{ book.img | img_url_prefix }}" alt="{{ book.title }}">
|
31
|
+
</div>
|
32
|
+
{%- endif -%}
|
33
|
+
</div>
|
34
|
+
{%- endfor -%}
|
35
|
+
</main>
|
36
|
+
|
37
|
+
<ul class="slide__controls">
|
38
|
+
<div class="slide__control__icon slide__control_top" id="prevBtn">
|
39
|
+
<svg width="40" height="40">
|
40
|
+
<circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
|
41
|
+
</svg>
|
42
|
+
<span class="slide__control_arrow slide__control_up"></span>
|
43
|
+
</div>
|
44
|
+
{%- for book in site.books limit: count -%}
|
45
|
+
<li class="slide__control {% if forloop.index == 1 %}current{% endif %}"></li>
|
46
|
+
{%- endfor -%}
|
47
|
+
<div class="slide__control__icon slide__control_bottom" id="nextBtn">
|
48
|
+
<svg width="40" height="40">
|
49
|
+
<circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
|
50
|
+
</svg>
|
51
|
+
<span class="slide__control_arrow slide__control_down"></span>
|
52
|
+
</div>
|
53
|
+
</ul>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="comment__smileys" id="smileyContainer">
|
2
|
+
<div class="comment__smileys_box" id="smileyBox">
|
3
|
+
{%- for smiley in site.smileys -%}
|
4
|
+
<a href="#" data-smiley="{{ smiley[1]['slug'] }}" data-src="{{ smiley[1]['img'] }}" class="comment__smiley">
|
5
|
+
<img src="{{ smiley[1]['img'] }}" alt="{{ smiley[0] }}" />
|
6
|
+
</a>
|
7
|
+
{%- endfor -%}
|
8
|
+
</div>
|
9
|
+
<div class="comment__smileys_toggler">
|
10
|
+
{%- include icons/smile.html -%}
|
11
|
+
</div>
|
12
|
+
</div>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<div class="book-summary" id="bookSummary">
|
2
|
+
<nav role="navigation">
|
3
|
+
<ul class="summary">
|
4
|
+
<li class="chapter {% if page.book.index.url == page.url -%}active{% endif -%}">
|
5
|
+
<a href="{{ page.book.url | relative_url }}" class="custom-link">{{ page.book.title }}</a>
|
6
|
+
</li>
|
7
|
+
<li class="divider"></li>
|
8
|
+
{%- for part in page.book.parts -%}
|
9
|
+
<li class="chapter {% if part.url == page.url -%}active{% endif -%}">
|
10
|
+
{%- if part.url -%}
|
11
|
+
<a href="{{ part.url | relative_url }}">{{ part.title }}</a>
|
12
|
+
{%- else -%}
|
13
|
+
<span>{{ part.title }}</span>
|
14
|
+
{%- endif -%}
|
15
|
+
|
16
|
+
{%- if part.parts.size > 0 -%}
|
17
|
+
<ul class="articles">
|
18
|
+
{%- for part in part.parts -%}
|
19
|
+
|
20
|
+
<li class="chapter {% if part.url == page.url -%}active{% endif -%}">
|
21
|
+
<a href="{{ part.url | relative_url }}">{{ part.title }}</a>
|
22
|
+
</li>
|
23
|
+
{%- endfor -%}
|
24
|
+
</ul>
|
25
|
+
{%- endif -%}
|
26
|
+
</li>
|
27
|
+
{%- endfor -%}
|
28
|
+
</ul>
|
29
|
+
</nav>
|
30
|
+
</div>
|
data/_layouts/404.html
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- include header.html -%}
|
6
|
+
<main class="archive">
|
7
|
+
<div class="archive__header">
|
8
|
+
<h1>
|
9
|
+
{%- assign about_page_path = site.theme_setting.about_page | default:
|
10
|
+
"index.md" %} {%- assign about_page = site.pages | where: "path",
|
11
|
+
about_page_path | first -%}
|
12
|
+
<a href="{{ about_page.url | relative_url }}"
|
13
|
+
>{{ site.author | default: site.title }}</a
|
14
|
+
>
|
15
|
+
</h1>
|
16
|
+
<div class="archive__header_intro">
|
17
|
+
{{ site.description | markdownify }}
|
18
|
+
</div>
|
19
|
+
<div class="archive__header_nav">{%- include header_nav.html -%}</div>
|
20
|
+
{%- include icons.html -%}
|
21
|
+
</div>
|
22
|
+
<div class="archive__content">
|
23
|
+
<div class="archive__list">
|
24
|
+
<ul>
|
25
|
+
{%- assign pages = site[page.pages] | default: site.posts -%} {%- for
|
26
|
+
page in pages -%}
|
27
|
+
<li class="archive__item">
|
28
|
+
<a
|
29
|
+
href="{{ page.url | relative_url }}"
|
30
|
+
class="archive__link clearfix"
|
31
|
+
>
|
32
|
+
<span class="archive__time"
|
33
|
+
>{%- if page.layout == 'book' -%}{{ page.date }}{%- else -%}{{
|
34
|
+
page.date | date: "%Y-%m-%d" }}{%- endif -%}</span
|
35
|
+
>
|
36
|
+
<span class="archive__title">{{ page.title }}</span>
|
37
|
+
</a>
|
38
|
+
</li>
|
39
|
+
{%- endfor -%}
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
{%- include footer.html -%}
|
44
|
+
</main>
|
data/_layouts/blog.html
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include header.html %}
|
6
|
+
|
7
|
+
<main class="post__archive" id="postArchive">
|
8
|
+
{%- include header_nav.html -%}
|
9
|
+
{%- if site.status -%}
|
10
|
+
{%- include status.html -%}
|
11
|
+
{%- endif -%}
|
12
|
+
{%- if site.categories.size > 0 -%}
|
13
|
+
<nav class="blog__categories">
|
14
|
+
<a href="#all" data-category="all" class="category active nav-link">{{ site.theme_setting.lang.category_all | default: "All" }}</a>
|
15
|
+
{%- for category in site.categories %}
|
16
|
+
<a href="#{{ category[0] }}" class="category nav-link" data-category="{{ category[0] }}">{{ category[0] }}</a>
|
17
|
+
{%- endfor %}
|
18
|
+
</nav>
|
19
|
+
{%- endif -%}
|
20
|
+
<div class="post__list archive__list">
|
21
|
+
{%- assign years = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
|
22
|
+
{%- for year in years %}
|
23
|
+
<h3 class="post__list_title">{{ year.name }}</h3>
|
24
|
+
{%- assign posts = year.items %}
|
25
|
+
<ul>
|
26
|
+
{%- for post in posts %}
|
27
|
+
<li class="post__list_item" data-category="{{ post.categories | join: ';' }}" {% if post.img %}data-img="{{ post.img | img_url_prefix }}"{% endif %}>
|
28
|
+
<a href="{{ post.url | relative_url }}">
|
29
|
+
<span class="archive__time">{{ post.date | date: "%Y-%m-%d" }}</span>
|
30
|
+
<span class="archive__title">{{ post.title }}</span>
|
31
|
+
</a>
|
32
|
+
</li>
|
33
|
+
{%- endfor %}
|
34
|
+
</ul>
|
35
|
+
{%- endfor %}
|
36
|
+
</div>
|
37
|
+
</main>
|
38
|
+
{%- include footer.html -%}
|
data/_layouts/book.html
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="book sidebar-right">
|
5
|
+
{%- include header.html -%}
|
6
|
+
<div class="book__cover">
|
7
|
+
<img src="{{ page.img | img_url_prefix }}" class="book__img" alt="{{ page.title }}"/>
|
8
|
+
</div>
|
9
|
+
<div class="book__content">
|
10
|
+
<div class="book__content_inner">
|
11
|
+
<h1 class="book__title">{{ page.title }}</h1>
|
12
|
+
<div class="book__desc">
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
{%- if page.next -%}
|
16
|
+
<a href="{{ page.next.url | relative_url }}" class="book__more">
|
17
|
+
<div class="book__icon">
|
18
|
+
<svg width="80" height="80">
|
19
|
+
<circle class="circle-progress" r="36" cy="40" cx="40" stroke-linejoin="round" stroke-linecap="round" />
|
20
|
+
</svg>
|
21
|
+
<span class="book__icon_arrow"></span>
|
22
|
+
</div>
|
23
|
+
</a>
|
24
|
+
{%- endif -%}
|
25
|
+
</div>
|
26
|
+
{%- include footer.html -%}
|
27
|
+
</div>
|
28
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="book__wrapper sidebar-right" id="bookMain">
|
5
|
+
{%- include summary.html -%}
|
6
|
+
<div class="book__body">
|
7
|
+
<div class="body__inner">
|
8
|
+
{%- include header.html -%}
|
9
|
+
<main class="chapter__wrapper" tabindex="-1" role="main">
|
10
|
+
<div class="chapter__inner">
|
11
|
+
<article class="chapter__content content">
|
12
|
+
{{ content | img_prefix }}
|
13
|
+
</article>
|
14
|
+
</div>
|
15
|
+
{%- include footer.html -%}
|
16
|
+
</main>
|
17
|
+
</div>
|
18
|
+
{%- if page.prev -%}
|
19
|
+
<a href="{{ page.prev.url | relative_url }}" class="navigation navigation-prev" aria-label="Previous page: {{ page.prev.title }}">
|
20
|
+
{%- include icons/left.html -%}
|
21
|
+
</a>
|
22
|
+
{%- endif -%}
|
23
|
+
{%- if page.next -%}
|
24
|
+
<a href="{{ page.next.url | relative_url }}" class="navigation navigation-next" aria-label="Next page: {{ page.next.title }}">
|
25
|
+
{%- include icons/right.html -%}
|
26
|
+
</a>
|
27
|
+
{%- endif -%}
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
{%- if page.code -%}
|
31
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
32
|
+
{%- endif -%}
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
{%- include header.html -%}
|
5
|
+
<main class="post__archive">
|
6
|
+
{%- include header_nav.html -%}
|
7
|
+
{%- if paginator -%}
|
8
|
+
{%- assign posts=paginator.posts -%}
|
9
|
+
{%- else -%}
|
10
|
+
{%- assign posts=site.posts -%}
|
11
|
+
{%- endif -%}
|
12
|
+
{%- for post in posts -%}
|
13
|
+
<article class="post__entry">
|
14
|
+
<a href="{{ post.url | relative_url }}" class="post__entry__link">
|
15
|
+
<h2>{{ post.title }}</h2>
|
16
|
+
<div class="post__meta">
|
17
|
+
<time>{{ post.date | date: "%Y-%m-%d" }}</time>
|
18
|
+
</div>
|
19
|
+
<div class="post__excerpt">
|
20
|
+
{{ post.excerpt | markdownify | strip_html | truncate: 100 }}
|
21
|
+
</div>
|
22
|
+
<div class="post__more_arrow"></div>
|
23
|
+
</a>
|
24
|
+
</article>
|
25
|
+
{%- endfor -%}
|
26
|
+
{%- include pagination.html -%}
|
27
|
+
</main>
|
28
|
+
{%- include footer.html -%}
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
{%- include header.html -%}
|
5
|
+
<main class="post__wrapper">
|
6
|
+
{%- include header_nav.html -%}
|
7
|
+
<article class="post">
|
8
|
+
<header class="post__header">
|
9
|
+
<h1 class="post__title page__title">{{ page.title | escape }}</h1>
|
10
|
+
</header>
|
11
|
+
<div class="post__content content">
|
12
|
+
{{ content | img_prefix }}
|
13
|
+
</div>
|
14
|
+
</article>
|
15
|
+
{%- include contact.html -%}
|
16
|
+
</main>
|
17
|
+
{%- include footer.html -%}
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
{%- include header.html -%}
|
5
|
+
<main class="post__wrapper">
|
6
|
+
{%- include header_nav.html -%}
|
7
|
+
<div class="post__top_navs clearfix">
|
8
|
+
<nav class="post__archive_path">
|
9
|
+
{%- assign blog_page_path = site.theme_setting.blog_page | default: "index.md" %}
|
10
|
+
{%- assign blog_page = site.pages | where: "path", blog_page_path | first -%}
|
11
|
+
<a href="{{ blog_page.url | relative_url }}" id="archiveBtn">
|
12
|
+
<div class="post__archive_icon">
|
13
|
+
<svg width="40" height="40">
|
14
|
+
<circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
|
15
|
+
</svg>
|
16
|
+
<span class="post__archive_icon"></span>
|
17
|
+
</div>
|
18
|
+
{{ site.theme_setting.lang.blog_title | default: site.title }}
|
19
|
+
</a>
|
20
|
+
</nav>
|
21
|
+
</div>
|
22
|
+
<article class="post">
|
23
|
+
<header class="post__header">
|
24
|
+
<h1 class="post__title">{{ page.title | escape }}</h1>
|
25
|
+
<div class="post__meta">
|
26
|
+
<time>{{ page.date | date: "%Y-%m-%d %H:%M" }}</time>
|
27
|
+
</div>
|
28
|
+
</header>
|
29
|
+
<div class="post__content content">
|
30
|
+
{{ content | toc | img_prefix }}
|
31
|
+
</div>
|
32
|
+
</article>
|
33
|
+
{%- if site.comment.enabled -%}
|
34
|
+
{% include comments.html -%}
|
35
|
+
{%- else -%}
|
36
|
+
{% include contact.html -%}
|
37
|
+
{%- endif -%}
|
38
|
+
</main>
|
39
|
+
{%- if site.theme_setting.code or page.code -%}
|
40
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
41
|
+
{%- endif -%}
|
42
|
+
{%- include footer.html -%}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
2
|
+
|
3
|
+
/* Tomorrow Comment */
|
4
|
+
.hljs-comment,
|
5
|
+
.hljs-quote {
|
6
|
+
color: #8e908c;
|
7
|
+
}
|
8
|
+
|
9
|
+
/* Tomorrow Red */
|
10
|
+
.hljs-variable,
|
11
|
+
.hljs-template-variable,
|
12
|
+
.hljs-tag,
|
13
|
+
.hljs-name,
|
14
|
+
.hljs-selector-id,
|
15
|
+
.hljs-selector-class,
|
16
|
+
.hljs-regexp,
|
17
|
+
.hljs-deletion {
|
18
|
+
color: #c82829;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* Tomorrow Orange */
|
22
|
+
.hljs-number,
|
23
|
+
.hljs-built_in,
|
24
|
+
.hljs-builtin-name,
|
25
|
+
.hljs-literal,
|
26
|
+
.hljs-type,
|
27
|
+
.hljs-params,
|
28
|
+
.hljs-meta,
|
29
|
+
.hljs-link {
|
30
|
+
color: #f5871f;
|
31
|
+
}
|
32
|
+
|
33
|
+
/* Tomorrow Yellow */
|
34
|
+
.hljs-attribute {
|
35
|
+
color: #eab700;
|
36
|
+
}
|
37
|
+
|
38
|
+
/* Tomorrow Green */
|
39
|
+
.hljs-string,
|
40
|
+
.hljs-symbol,
|
41
|
+
.hljs-bullet,
|
42
|
+
.hljs-addition {
|
43
|
+
color: #718c00;
|
44
|
+
}
|
45
|
+
|
46
|
+
/* Tomorrow Blue */
|
47
|
+
.hljs-title,
|
48
|
+
.hljs-section {
|
49
|
+
color: #4271ae;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* Tomorrow Purple */
|
53
|
+
.hljs-keyword,
|
54
|
+
.hljs-selector-tag {
|
55
|
+
color: #8959a8;
|
56
|
+
}
|
57
|
+
|
58
|
+
.hljs {
|
59
|
+
display: block;
|
60
|
+
overflow-x: auto;
|
61
|
+
background: white;
|
62
|
+
color: #4d4d4c;
|
63
|
+
padding: 0.5em;
|
64
|
+
}
|
65
|
+
|
66
|
+
.hljs-emphasis {
|
67
|
+
font-style: italic;
|
68
|
+
}
|
69
|
+
|
70
|
+
.hljs-strong {
|
71
|
+
font-weight: bold;
|
72
|
+
}
|