jekyll-theme-acg 1.0.5 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -19
- data/_config.yml +74 -76
- data/_includes/chip.html +36 -0
- data/_includes/flip.html +25 -0
- data/_includes/footer.html +1 -3
- data/_includes/head.html +46 -0
- data/_includes/header.html +32 -13
- data/_includes/paginator.html +38 -0
- data/_includes/posts.html +45 -44
- data/_includes/svg-category.html +10 -0
- data/_includes/svg-date.html +10 -0
- data/_includes/svg-next.html +10 -0
- data/_includes/svg-pin.html +10 -0
- data/_includes/svg-prev.html +10 -0
- data/_includes/svg-tag.html +10 -0
- data/_includes/{README.md → toc-readme.md} +0 -0
- data/_includes/toc.html +1 -5
- data/_layouts/compress.html +10 -0
- data/_layouts/page.html +119 -7
- data/_sass/markdown.scss +8 -2
- data/_sass/root.scss +0 -3
- data/assets/404.md +3 -0
- data/assets/about.md +0 -3
- data/assets/{categories.html → categories.md} +0 -1
- data/assets/friends.md +6 -0
- data/assets/{tags.html → tags.md} +0 -1
- data/index.html +3 -0
- metadata +57 -57
- data/_includes/article.html +0 -8
- data/_includes/item-category.html +0 -26
- data/_includes/item-date.html +0 -10
- data/_includes/item-pin.html +0 -2
- data/_includes/item-tag.html +0 -29
- data/_includes/style.html +0 -22
- data/_layouts/categories.html +0 -21
- data/_layouts/category.html +0 -14
- data/_layouts/default.html +0 -29
- data/_layouts/home.html +0 -54
- data/_layouts/post.html +0 -24
- data/_layouts/tag.html +0 -14
- data/_layouts/tags.html +0 -21
- data/assets/404.html +0 -6
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
{% capture class %}flex-shrink-0 text-{{ color }}-400{% endcapture %}
|
3
|
+
|
4
|
+
|
5
|
+
<div class="flex justify-between items-center">
|
6
|
+
<!-- Prev -->
|
7
|
+
<a
|
8
|
+
href="{{ paginator.previous_page_path | relative_url }}"
|
9
|
+
class="flex justify-center items-center m-2 ml-0 w-8 h-8 rounded-full bg-{{ color }}-50 bg-opacity-75
|
10
|
+
hover:bg-{{ color }}-100 hover:bg-opacity-75 hover:text-{{ color }}-400"
|
11
|
+
>{% include svg-prev.html class=class %}</a>
|
12
|
+
<!-- Pages -->
|
13
|
+
<div class="flex flex-wrap items-center justify-center">
|
14
|
+
<!-- paginator.total_pages -->
|
15
|
+
{%- for pageCount in (1..paginator.total_pages) -%}
|
16
|
+
{% assign pagePath = site.paginate_path | replace: ":num", pageCount %}
|
17
|
+
<a class="flex justify-center items-center w-8 h-8 m-px rounded-full text-sm font-mono bg-{{ color }}-50 bg-opacity-75 text-opacity-75 border border-transparent hover:bg-{{ color }}-100 hover:bg-opacity-75 hover:text-{{ color }}-400
|
18
|
+
{% if pageCount == paginator.page %}
|
19
|
+
text-{{ color }}-400 select-none
|
20
|
+
{% else %}
|
21
|
+
text-black
|
22
|
+
{% endif %}"
|
23
|
+
|
24
|
+
{% if pageCount != paginator.page %}
|
25
|
+
{% if pageCount == 1 %}href={{ "/" | relative_url }}{% else %}href="{{ pagePath | relative_url }}"{% endif %}
|
26
|
+
{% endif %}
|
27
|
+
|
28
|
+
><span class="block">{{ pageCount }}</span></a>
|
29
|
+
{%- endfor -%}
|
30
|
+
</div>
|
31
|
+
<!-- Next -->
|
32
|
+
<a
|
33
|
+
href="{{ paginator.next_page_path | relative_url }}"
|
34
|
+
class="flex justify-center items-center m-2 mr-0 w-8 h-8 rounded-full bg-{{ color }}-50 bg-opacity-75 hover:bg-{{ color }}-100 hover:bg-opacity-75 hover:text-{{ color }}-400"
|
35
|
+
>
|
36
|
+
{% include svg-next.html class=class %}
|
37
|
+
</a>
|
38
|
+
</div>
|
data/_includes/posts.html
CHANGED
@@ -1,53 +1,54 @@
|
|
1
|
-
{%
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
{% if post.pin %}
|
7
|
-
{% assign posts1 = posts1 | push: post %}
|
8
|
-
{% else %}
|
9
|
-
{% assign posts2 = posts2 | push: post %}
|
10
|
-
{% endif %}
|
11
|
-
{% endfor %}
|
12
|
-
|
13
|
-
{% assign posts = posts1 | concat: posts2 %}
|
14
|
-
|
15
|
-
{% if page.layout == "home" %}
|
16
|
-
{% assign offset = paginator.page | minus: 1 | times: paginator.per_page %}
|
17
|
-
{% assign count = paginator.posts | size | minus: 1 %}
|
18
|
-
{% assign minIndex = offset %}
|
19
|
-
{% assign maxIndex = offset | plus: count %}
|
1
|
+
{% assign posts1 = "" | split: "" %}
|
2
|
+
{% assign posts2 = "" | split: "" %}
|
3
|
+
{% for post in include.posts %}
|
4
|
+
{% if post.pin %}
|
5
|
+
{% assign posts1 = posts1 | push: post %}
|
20
6
|
{% else %}
|
21
|
-
{% assign
|
22
|
-
{% assign maxIndex = posts.size | minus: 1 %}
|
7
|
+
{% assign posts2 = posts2 | push: post %}
|
23
8
|
{% endif %}
|
24
|
-
|
25
|
-
{%
|
26
|
-
|
27
|
-
{%
|
28
|
-
{%
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
9
|
+
{% endfor %}
|
10
|
+
{% assign posts = posts1 | concat: posts2 %}
|
11
|
+
|
12
|
+
{% if page.type == "home" %}
|
13
|
+
{% assign offset = paginator.page | minus: 1 | times: paginator.per_page %}
|
14
|
+
{% assign count = paginator.posts | size | minus: 1 %}
|
15
|
+
{% assign minIndex = offset %}
|
16
|
+
{% assign maxIndex = offset | plus: count %}
|
17
|
+
{% else %}
|
18
|
+
{% assign minIndex = 0 %}
|
19
|
+
{% assign maxIndex = posts.size | minus: 1 %}
|
20
|
+
{% endif %}
|
21
|
+
|
22
|
+
{% for index in (minIndex..maxIndex) %}{% assign post = posts[index] %}
|
39
23
|
<div class="relative p-3 pb-1 rounded-lg flex flex-col justify-between bg-{{ color }}-50 bg-opacity-75 text-black">
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
24
|
+
<!-- post.pin -->
|
25
|
+
{% if post.pin %}
|
26
|
+
{% capture class %}{{ "absolute -left-2 -top-2 text-color-600" | replace: "color", color }}{% endcapture %}
|
27
|
+
{% include svg-pin.html class=class %}
|
28
|
+
{% endif %}
|
29
|
+
<!-- post.title -->
|
30
|
+
<a class="block text-3xl font-serif font-medium" href="{{ post.id | relative_url }}">
|
31
|
+
{{ post.title | default: "NO_TITLE" | escape }}
|
32
|
+
</a>
|
33
|
+
<!-- post.description -->
|
34
|
+
<span class="block p-1 text-sm font-extralight">
|
35
|
+
{{ post.description | default: post.excerpt | strip_html }}
|
36
|
+
</span>
|
44
37
|
<div class="flex flex-wrap select-none">
|
45
|
-
<div class="flex-grow">
|
38
|
+
<div class="flex-grow">
|
39
|
+
<!-- post.date -->
|
40
|
+
{% include chip.html type="date" text=post.date width=4 %}
|
41
|
+
</div>
|
46
42
|
<div class="flex flex-wrap">
|
47
|
-
|
48
|
-
{% for
|
43
|
+
<!-- post.categories -->
|
44
|
+
{% for category in post.categories %}
|
45
|
+
{% include chip.html type="category" text=category width=4 %}
|
46
|
+
{% endfor %}
|
47
|
+
<!-- post.tags -->
|
48
|
+
{% for tag in post.tags %}
|
49
|
+
{% include chip.html type="tag" text=tag width=4 %}
|
50
|
+
{% endfor %}
|
49
51
|
</div>
|
50
52
|
</div>
|
51
53
|
</div>
|
52
|
-
|
53
54
|
{% endfor %}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg
|
2
|
+
class="
|
3
|
+
{{ include.class }}
|
4
|
+
w-{{ include.width | default: include.height | default: 6 }}
|
5
|
+
h-{{ include.height | default: include.width | default: 6 }}
|
6
|
+
"
|
7
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
8
|
+
>
|
9
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z">
|
10
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg
|
2
|
+
class="
|
3
|
+
{{ include.class }}
|
4
|
+
w-{{ include.width | default: include.height | default: 6 }}
|
5
|
+
h-{{ include.height | default: include.width | default: 6 }}
|
6
|
+
"
|
7
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
8
|
+
>
|
9
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z">
|
10
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg
|
2
|
+
class="
|
3
|
+
{{ include.class }}
|
4
|
+
w-{{ include.width | default: include.height | default: 6 }}
|
5
|
+
h-{{ include.height | default: include.width | default: 6 }}
|
6
|
+
"
|
7
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
8
|
+
>
|
9
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z">
|
10
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg
|
2
|
+
class="
|
3
|
+
{{ include.class }}
|
4
|
+
w-{{ include.width | default: include.height | default: 6 }}
|
5
|
+
h-{{ include.height | default: include.width | default: 6 }}
|
6
|
+
"
|
7
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
8
|
+
>
|
9
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13">
|
10
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg
|
2
|
+
class="
|
3
|
+
{{ include.class }}
|
4
|
+
w-{{ include.width | default: include.height | default: 6 }}
|
5
|
+
h-{{ include.height | default: include.width | default: 6 }}
|
6
|
+
"
|
7
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
8
|
+
>
|
9
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 15l-3-3m0 0l3-3m-3 3h8M3 12a9 9 0 1118 0 9 9 0 01-18 0z">
|
10
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg
|
2
|
+
class="
|
3
|
+
{{ include.class }}
|
4
|
+
w-{{ include.width | default: include.height | default: 6 }}
|
5
|
+
h-{{ include.height | default: include.width | default: 6 }}
|
6
|
+
"
|
7
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
8
|
+
>
|
9
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z">
|
10
|
+
</svg>
|
File without changes
|
data/_includes/toc.html
CHANGED
@@ -50,8 +50,4 @@
|
|
50
50
|
{% capture output %}{{ output }}</li>{% if include.ordered %}</ol>{% else %}</ul>{% endif %}{% endcapture %}
|
51
51
|
{% endfor %}
|
52
52
|
|
53
|
-
{% endcapture %}
|
54
|
-
|
55
|
-
{%- comment -%}{%- endcomment -%}
|
56
|
-
{{ output }}
|
57
|
-
{%- comment -%}{%- endcomment -%}
|
53
|
+
{% endcapture %}{{ output }}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.1.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_layouts/page.html
CHANGED
@@ -1,13 +1,125 @@
|
|
1
1
|
---
|
2
|
-
layout:
|
2
|
+
layout: compress
|
3
3
|
---
|
4
|
+
{% capture lang %}{{ page.lang | default: site.lang | default: "en-US" }}{% endcapture %}
|
4
5
|
|
5
|
-
{%
|
6
|
+
{% comment %} color {% endcomment %}
|
7
|
+
{% capture color %}{{ page.color | default: site.color | downcase }}{% endcapture %}
|
8
|
+
{% assign colors = "red, blue, pink, green, yellow, purple, gray, default" | split: ", " %}
|
9
|
+
{% for item in colors %}
|
10
|
+
{% if item == color %}{% break %}{% endif %}
|
11
|
+
{% if item == "default" %}{% assign color = "red" %}{% endif %}
|
12
|
+
{% endfor %}
|
6
13
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
14
|
+
{% comment %} background {% endcomment %}
|
15
|
+
{% capture background %}{{ page.background | default: site.acg.background | default: "https://cdn.jsdelivr.net/gh/coderzhaoziwei/jekyll-theme-acg/assets/images/pixiv86925095.png" | relative_url }}{% endcapture %}
|
16
|
+
|
17
|
+
{% assign title = page.title %}
|
18
|
+
{% assign description = page.description %}
|
19
|
+
{% assign content = content | strip %}
|
20
|
+
|
21
|
+
{% if page.type == "home" %}
|
22
|
+
{% capture title %}{{ site.title }}{% endcapture %}
|
23
|
+
{% capture description %}{{ site.description }}{% endcapture %}
|
24
|
+
{% elsif page.permalink == "/categories.html" %}
|
25
|
+
{% capture title %}{{ site.acg.categories.label }}{% endcapture %}
|
26
|
+
{% capture description %}{{ site.acg.categories.description }}{% endcapture %}
|
27
|
+
{% elsif page.permalink == "/tags.html" %}
|
28
|
+
{% capture title %}{{ site.acg.tags.label }}{% endcapture %}
|
29
|
+
{% capture description %}{{ site.acg.tags.description }}{% endcapture %}
|
30
|
+
{% elsif page.permalink == "/about.html" %}
|
31
|
+
{% capture title %}{{ site.acg.about.label }}{% endcapture %}
|
32
|
+
{% capture description %}{{ site.acg.about.description }}{% endcapture %}
|
33
|
+
{% elsif page.permalink == "/friends.html" %}
|
34
|
+
{% capture title %}{{ site.acg.friends.label }}{% endcapture %}
|
35
|
+
{% capture description %}{{ site.acg.friends.description }}{% endcapture %}
|
36
|
+
{% elsif page.permalink == "/404.html" %}
|
37
|
+
{% capture title %}{{ site.acg.error.label }}{% endcapture %}
|
38
|
+
{% capture description %}{{ site.acg.error.description }}{% endcapture %}
|
39
|
+
{% endif %}
|
40
|
+
|
41
|
+
{% assign list = "" | split: "" %}
|
42
|
+
{% if page.permalink == "/categories.html" %}
|
43
|
+
{% for item in site.categories %}{% assign list = list | push: item[0] %}{% endfor %}
|
44
|
+
{% elsif page.permalink == "/tags.html" %}
|
45
|
+
{% for item in site.tags %}{% assign list = list | push: item[0] %}{% endfor %}
|
46
|
+
{% endif %}
|
47
|
+
{% assign list = list | sort %}
|
48
|
+
|
49
|
+
<!DOCTYPE html>
|
50
|
+
<html lang="{{ lang }}" class="min-h-screen bg-image bg-cover bg-center bg-fixed">
|
51
|
+
{% include head.html %}
|
52
|
+
<body class="flex flex-col items-center bg-black bg-opacity-50">
|
53
|
+
{% include header.html %}
|
54
|
+
<div class="w-acg min-h-screen py-16">
|
55
|
+
<div class="w-full flex flex-col justify-center items-center content-center text-{{ color }}-50
|
56
|
+
{% if page.type == "home" %}h-screen select-none pb-16{% else %}py-32{% endif %}"
|
57
|
+
>
|
58
|
+
<!-- title -->
|
59
|
+
<div class="text-center text-4xl font-serif py-8">
|
60
|
+
{% if page.type == "category" %}
|
61
|
+
{% include chip.html type="category" text=title width=8 larger=true %}
|
62
|
+
{% elsif page.type == "tag" %}
|
63
|
+
{% include chip.html type="tag" text=title width=8 larger=true %}
|
64
|
+
{% else %}
|
65
|
+
{{ title }}
|
66
|
+
{% endif %}
|
67
|
+
</div>
|
68
|
+
<!-- description -->
|
69
|
+
<div class="text-center text-base font-sans py-8">{{ description }}</div>
|
70
|
+
|
71
|
+
<!-- categories.html & tags.html -->
|
72
|
+
<div class="flex flex-wrap justify-center items-center content-center select-none">
|
73
|
+
{% if page.permalink == "/categories.html" %}
|
74
|
+
{% for category in list %}{% assign count = site.categories[category].size %}
|
75
|
+
<div class="m-1 px-2 bg-{{ color }}-50 bg-opacity-75 rounded">
|
76
|
+
{% include chip.html type="category" text=category count=count width=4 %}
|
77
|
+
</div>
|
78
|
+
{% endfor %}
|
79
|
+
{% elsif page.permalink == "/tags.html" %}
|
80
|
+
{% for tag in list %}{% assign count = site.tags[tag].size %}
|
81
|
+
<div class="m-1 px-2 bg-{{ color }}-50 bg-opacity-75 rounded">
|
82
|
+
{% include chip.html type="tag" text=tag count=count width=4 %}
|
83
|
+
</div>
|
84
|
+
{% endfor %}
|
85
|
+
{% endif %}
|
86
|
+
</div>
|
11
87
|
</div>
|
12
|
-
|
88
|
+
|
89
|
+
<!-- article -->
|
90
|
+
{% if page.type == "post" %}
|
91
|
+
<div class="flex flex-wrap">
|
92
|
+
<div class="flex-grow">
|
93
|
+
{% include chip.html type="date" text=page.date width=4 %}
|
94
|
+
</div>
|
95
|
+
<div class="flex flex-wrap">
|
96
|
+
{% for category in page.categories %}
|
97
|
+
{% include chip.html type="category" text=category width=4 %}
|
98
|
+
{% endfor %}
|
99
|
+
{% for tag in page.tags %}
|
100
|
+
{% include chip.html type="tag" text=tag width=4 %}
|
101
|
+
{% endfor %}
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
<article class="w-full my-4 mx-auto p-4 rounded-lg text-black bg-{{ color }}-50 bg-opacity-75 markdown-body">
|
105
|
+
<h1>{{ title }}</h1>
|
106
|
+
{% include toc.html html=content %}
|
107
|
+
{{ content }}
|
108
|
+
</article>
|
109
|
+
{% include flip.html %}
|
110
|
+
{% elsif content != empty %}
|
111
|
+
<article class="w-full my-4 mx-auto p-4 rounded-lg text-black bg-{{ color }}-50 bg-opacity-75 markdown-body">
|
112
|
+
{{ content }}
|
113
|
+
</article>
|
114
|
+
{% endif %}
|
115
|
+
<!-- posts -->
|
116
|
+
{% if page.type == "home" %}
|
117
|
+
<div class="w-full p-4 flex flex-col space-y-4">{% include posts.html posts=site.posts %}</div>
|
118
|
+
<div class="w-full p-4">{% include paginator.html %}</div>
|
119
|
+
{% elsif page.posts %}
|
120
|
+
<div class="w-full p-4 flex flex-col space-y-4">{% include posts.html posts=page.posts %}</div>
|
121
|
+
{% endif %}
|
13
122
|
</div>
|
123
|
+
{% include footer.html %}
|
124
|
+
</body>
|
125
|
+
</html>
|
data/_sass/markdown.scss
CHANGED
@@ -2,13 +2,19 @@
|
|
2
2
|
.markdown-body h2 {
|
3
3
|
border-bottom-color: var(--theme-600);
|
4
4
|
}
|
5
|
+
.markdown-body h4,
|
6
|
+
.markdown-body h5,
|
7
|
+
.markdown-body h6 {
|
8
|
+
color: rgba(0, 0, 0, 0.75);
|
9
|
+
}
|
10
|
+
|
5
11
|
.markdown-body hr {
|
6
12
|
background-color: var(--theme-600);
|
7
13
|
}
|
8
14
|
|
9
15
|
.markdown-body blockquote {
|
10
|
-
color: var(--theme-
|
11
|
-
border-left-color: var(--theme-
|
16
|
+
color: var(--theme-800);
|
17
|
+
border-left-color: var(--theme-800);
|
12
18
|
}
|
13
19
|
|
14
20
|
.markdown-body code:not(.hljs) {
|
data/_sass/root.scss
CHANGED
data/assets/404.md
ADDED
data/assets/about.md
CHANGED
data/assets/friends.md
ADDED
data/index.html
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-acg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Coder Zhao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -34,128 +34,128 @@ dependencies:
|
|
34
34
|
name: kramdown-parser-gfm
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: '0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jekyll-sass-converter
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: '0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: jekyll-feed
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0
|
67
|
+
version: '0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0
|
74
|
+
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: jekyll-seo-tag
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: '0'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: jekyll-gist
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: '0'
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - "
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: '0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: jekyll-paginate
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: '0'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: '0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: jekyll-archives
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: '0'
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - "
|
128
|
+
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: '0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: jekyll-spaceship
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
|
-
- - "
|
135
|
+
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0
|
137
|
+
version: '0'
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
|
-
- - "
|
142
|
+
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0
|
144
|
+
version: '0'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: bundler
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- - "
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
151
|
+
version: '0'
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - "
|
156
|
+
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: '0'
|
159
159
|
description: This a theme for Jekyll, which still under development.
|
160
160
|
email: coderzhaoziwei@outlook.com
|
161
161
|
executables: []
|
@@ -165,33 +165,33 @@ files:
|
|
165
165
|
- LICENSE
|
166
166
|
- README.md
|
167
167
|
- _config.yml
|
168
|
-
- _includes/
|
169
|
-
- _includes/
|
168
|
+
- _includes/chip.html
|
169
|
+
- _includes/flip.html
|
170
170
|
- _includes/footer.html
|
171
|
+
- _includes/head.html
|
171
172
|
- _includes/header.html
|
172
|
-
- _includes/
|
173
|
-
- _includes/item-date.html
|
174
|
-
- _includes/item-pin.html
|
175
|
-
- _includes/item-tag.html
|
173
|
+
- _includes/paginator.html
|
176
174
|
- _includes/posts.html
|
177
|
-
- _includes/
|
175
|
+
- _includes/svg-category.html
|
176
|
+
- _includes/svg-date.html
|
177
|
+
- _includes/svg-next.html
|
178
|
+
- _includes/svg-pin.html
|
179
|
+
- _includes/svg-prev.html
|
180
|
+
- _includes/svg-tag.html
|
181
|
+
- _includes/toc-readme.md
|
178
182
|
- _includes/toc.html
|
179
|
-
- _layouts/
|
180
|
-
- _layouts/category.html
|
181
|
-
- _layouts/default.html
|
182
|
-
- _layouts/home.html
|
183
|
+
- _layouts/compress.html
|
183
184
|
- _layouts/page.html
|
184
|
-
- _layouts/post.html
|
185
|
-
- _layouts/tag.html
|
186
|
-
- _layouts/tags.html
|
187
185
|
- _sass/markdown.scss
|
188
186
|
- _sass/root.scss
|
189
187
|
- _sass/scrollbar.scss
|
190
|
-
- assets/404.
|
188
|
+
- assets/404.md
|
191
189
|
- assets/about.md
|
192
|
-
- assets/categories.
|
190
|
+
- assets/categories.md
|
193
191
|
- assets/css/style.scss
|
194
|
-
- assets/
|
192
|
+
- assets/friends.md
|
193
|
+
- assets/tags.md
|
194
|
+
- index.html
|
195
195
|
homepage: https://github.com/coderzhaoziwei/jekyll-theme-acg
|
196
196
|
licenses:
|
197
197
|
- MIT
|
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: '0'
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
210
|
requirements:
|
211
211
|
- - ">="
|
@@ -215,5 +215,5 @@ requirements: []
|
|
215
215
|
rubygems_version: 3.1.4
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
|
-
summary:
|
218
|
+
summary: Jekyll Theme ACG For Jekyll
|
219
219
|
test_files: []
|