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
data/_includes/article.html
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
<article class="markdown-body my-4 mx-auto p-4 pb-8 max-w-acg rounded-lg shadow-xl text-black bg-{{ color }}-50 bg-opacity-75">
|
2
|
-
<h1>{{ page.title }}</h1>
|
3
|
-
|
4
|
-
<!-- Jekyll TOC -->
|
5
|
-
{% include toc.html html=content %}
|
6
|
-
<!-- Jekyll TOC End -->
|
7
|
-
{{ content }}
|
8
|
-
</article>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
{% capture workspace %}
|
2
|
-
{% assign color = page.color | default: site.color %}
|
3
|
-
{% assign name = include.name | default: "CATEGORY" %}
|
4
|
-
{% assign count = include.count | default: 0 %}
|
5
|
-
{% assign href = "/categories/" | append: name | relative_url %}
|
6
|
-
{% assign zoom = include.zoom | default: false %}
|
7
|
-
|
8
|
-
{% if zoom %}
|
9
|
-
{% assign textClass = "text-2xl text-color-50 text-opacity-75 " | replace: "color", color %}
|
10
|
-
{% assign svgClass = "h-8 w-8" %}
|
11
|
-
{% assign countClass = "text-color-50 text-opacity-50" | replace: "color", color %}
|
12
|
-
{% else %}
|
13
|
-
{% assign textClass = "text-sm text-color-500 text-opacity-75" | replace: "color", color %}
|
14
|
-
{% assign svgClass = "h-4 w-4" %}
|
15
|
-
{% assign countClass = "text-color-500 text-opacity-50" | replace: "color", color %}
|
16
|
-
{% endif %}
|
17
|
-
|
18
|
-
{% endcapture %}
|
19
|
-
|
20
|
-
<a class="mx-px {{ textClass }} text-opacity-75 flex items-center" href="{{ href }}">
|
21
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="{{ svgClass }}" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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" /></svg>
|
22
|
-
<span class="inline-block p-1">{{ name }}</span>
|
23
|
-
{% if count > 0 %}
|
24
|
-
<span class="inline-block p-1 {{ countClass }}">{{ count }}</span>
|
25
|
-
{% endif %}
|
26
|
-
</a>
|
data/_includes/item-date.html
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
{% capture workspace %}
|
2
|
-
{% assign color = page.color | default: site.color %}
|
3
|
-
{% assign date = include.date | date: "%Y-%m-%d" %}
|
4
|
-
"%Y-%m-%d %H:%M"
|
5
|
-
{% endcapture %}
|
6
|
-
|
7
|
-
<a class="mx-px text-sm text-{{ color }}-500 text-opacity-75 flex items-center" href="{{ href }}">
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="inline-block h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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" /></svg>
|
9
|
-
<span class="inline-block p-1 whitespace-nowrap">{{ date }}</span>
|
10
|
-
</a>
|
data/_includes/item-pin.html
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
{% assign color = page.color | default: site.color %}
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="absolute -left-2 -top-2 h-6 w-6 text-{{ color }}-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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"></svg>
|
data/_includes/item-tag.html
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
{% capture workspace %}
|
2
|
-
{% capture color %}{{ page.color | default: site.color }}{% endcapture %}
|
3
|
-
|
4
|
-
{% capture name %}{{ include.name | default: "TAG" }}{% endcapture %}
|
5
|
-
{% assign count = include.count | default: 0 %}
|
6
|
-
|
7
|
-
{% capture href %}{{ "/tags/" | append: name | relative_url }}{% endcapture %}
|
8
|
-
|
9
|
-
{% assign zoom = include.zoom | default: false %}
|
10
|
-
|
11
|
-
{% if zoom %}
|
12
|
-
{% assign textClass = "text-2xl text-color-50 text-opacity-75 " | replace: "color", color %}
|
13
|
-
{% assign svgClass = "h-8 w-8" %}
|
14
|
-
{% assign countClass = "text-color-50 text-opacity-50" | replace: "color", color %}
|
15
|
-
{% else %}
|
16
|
-
{% assign textClass = "text-sm text-color-500 text-opacity-75" | replace: "color", color %}
|
17
|
-
{% assign svgClass = "h-4 w-4" %}
|
18
|
-
{% assign countClass = "text-color-500 text-opacity-50" | replace: "color", color %}
|
19
|
-
{% endif %}
|
20
|
-
|
21
|
-
{% endcapture %}
|
22
|
-
|
23
|
-
<a class="mx-px {{ textClass }} flex items-center" href="{{ href }}">
|
24
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="inline-block {{ svgClass }}" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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" /></svg>
|
25
|
-
<span class="inline-block p-1">{{ name }}</span>
|
26
|
-
{% if count > 0 %}
|
27
|
-
<span class="inline-block p-1 {{ countClass }}">{{ count }}</span>
|
28
|
-
{% endif %}
|
29
|
-
</a>
|
data/_includes/style.html
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
{% assign color = page.color | default: site.color %}
|
2
|
-
{% capture output %}
|
3
|
-
:root {
|
4
|
-
--theme-50: var(--{{ color }}-50);
|
5
|
-
--theme-100: var(--{{ color }}-100);
|
6
|
-
--theme-200: var(--{{ color }}-200);
|
7
|
-
--theme-300: var(--{{ color }}-300);
|
8
|
-
--theme-400: var(--{{ color }}-400);
|
9
|
-
--theme-500: var(--{{ color }}-500);
|
10
|
-
--theme-600: var(--{{ color }}-600);
|
11
|
-
--theme-700: var(--{{ color }}-700);
|
12
|
-
--theme-800: var(--{{ color }}-800);
|
13
|
-
--theme-900: var(--{{ color }}-900);
|
14
|
-
}
|
15
|
-
.bg-image {
|
16
|
-
background-image: url("{{ page.background | default: site.background | relative_url }}");
|
17
|
-
}
|
18
|
-
{% endcapture %}
|
19
|
-
|
20
|
-
{%- comment -%}{%- endcomment -%}
|
21
|
-
<{{ "style" }}>{{ output }}</{{ "style" }}>
|
22
|
-
{%- comment -%}{%- endcomment -%}
|
data/_layouts/categories.html
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{% assign color = page.color | default: site.color %}
|
5
|
-
|
6
|
-
{% assign categoryList = "" | split: "" %}
|
7
|
-
{% for item in site.categories %}
|
8
|
-
{% assign categoryName = item[0] %}
|
9
|
-
{% assign categoryList = categoryList | push: categoryName %}
|
10
|
-
{% endfor %}
|
11
|
-
{% assign categoryList = categoryList | sort %}
|
12
|
-
|
13
|
-
<div class="min-h-screen py-16 flex flex-wrap justify-center items-center content-center select-none">
|
14
|
-
<div class="w-full py-8 font-serif text-4xl text-{{ color }}-50 text-center">{{ site.CATEGORIES | default: "CATEGORIES" }}</div>
|
15
|
-
{% for categoryName in categoryList %}
|
16
|
-
{% assign categoryCount = site.categories[categoryName].size %}
|
17
|
-
<div class="m-1 px-2 bg-{{ color }}-50 bg-opacity-75 rounded">
|
18
|
-
{% include item-category.html name=categoryName count=categoryCount %}
|
19
|
-
</div>
|
20
|
-
{% endfor %}
|
21
|
-
</div>
|
data/_layouts/category.html
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{% assign color = page.color | default: site.color %}
|
5
|
-
{% assign title = page.title | capitalize %}
|
6
|
-
|
7
|
-
<div class="w-acg min-h-screen">
|
8
|
-
<div class="w-full mt-16 p-16 flex justify-center">
|
9
|
-
{% include item-category.html name=page.title zoom=true %}
|
10
|
-
</div>
|
11
|
-
<div class="w-full m-auto p-4 flex flex-col space-y-4">
|
12
|
-
{% include posts.html posts=page.posts %}
|
13
|
-
</div>
|
14
|
-
</div>
|
data/_layouts/default.html
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="{{ page.lang | default: site.lang | default: "en-US" }}" class="min-h-screen bg-image bg-cover bg-center bg-fixed">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
|
7
|
-
{% seo %}<!-- Begin Jekyll Feed -->
|
8
|
-
{% feed_meta %}
|
9
|
-
<!-- End Jekyll Feed -->
|
10
|
-
|
11
|
-
<!-- Tailwind Style -->
|
12
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tailwindcss@2/dist/tailwind.min.css">
|
13
|
-
<!-- Primer Markdown Style -->
|
14
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/primer-markdown@4.0.0/build/build.css">
|
15
|
-
<!-- HighlightJS -->
|
16
|
-
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.0.1/build/highlight.min.js"></script>
|
17
|
-
<script>hljs.highlightAll();</script>
|
18
|
-
<!-- HighlightJS Theme VS2015 Style -->
|
19
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.0.1/styles/vs2015.css">
|
20
|
-
<!-- Theme Style -->
|
21
|
-
<link rel="stylesheet" href="{{ "assets/css/style.css" | relative_url }}">
|
22
|
-
{% include style.html %}
|
23
|
-
</head>
|
24
|
-
<body class="flex flex-col items-center bg-black bg-opacity-50">
|
25
|
-
{% include header.html %}
|
26
|
-
{{ content }}
|
27
|
-
{% include footer.html %}
|
28
|
-
</body>
|
29
|
-
</html>
|
data/_layouts/home.html
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{% assign color = page.color | default: site.color %}
|
5
|
-
{% assign title = page.title | default: site.title %}
|
6
|
-
{% assign description = page.description | default: site.description %}
|
7
|
-
|
8
|
-
<div class="w-full h-screen flex flex-col justify-center items-center select-none text-{{ color }}-50">
|
9
|
-
<div class="font-serif text-4xl w-3/4 text-center py-4">{{ title }}</div>
|
10
|
-
<div class="font-sans text-base w-2/3 text-center">{{ description }}</div>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
{% comment %}
|
14
|
-
paginator.page The number of the current page
|
15
|
-
paginator.per_page Number of posts per page
|
16
|
-
paginator.posts Posts available for the current page
|
17
|
-
paginator.total_posts Total number of posts
|
18
|
-
paginator.total_pages Total number of pages
|
19
|
-
paginator.previous_page The number of the previous page, or nil if no previous page exists
|
20
|
-
paginator.previous_page_path The path to the previous page, or nil if no previous page exists
|
21
|
-
paginator.next_page The number of the next page, or nil if no subsequent page exists
|
22
|
-
paginator.next_page_path The path to the next page, or nil if no subsequent page exists
|
23
|
-
{% endcomment %}
|
24
|
-
<div class="w-full max-w-acg m-auto p-4 grid gap-6 grid-cols-1">
|
25
|
-
{% include posts.html posts=site.posts%}
|
26
|
-
|
27
|
-
|
28
|
-
<!-- Paginator -->
|
29
|
-
<div class="flex justify-between items-center">
|
30
|
-
<!-- Prev -->
|
31
|
-
<a href="{{ paginator.previous_page_path | relative_url }}" class="flex justify-center items-center m-2 w-8 h-8 rounded-full bg-{{ color }}-50 bg-opacity-75 hover:bg-{{ color }}-100 hover:bg-opacity-75 hover:text-{{ color }}-400">
|
32
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 flex-shrink-0 text-{{ color }}-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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" /></svg>
|
33
|
-
</a>
|
34
|
-
<!-- Pages -->
|
35
|
-
<div class="flex flex-wrap items-center justify-center">
|
36
|
-
<!-- paginator.total_pages -->
|
37
|
-
{%- for pageCount in (1..paginator.total_pages) -%}
|
38
|
-
{% assign pagePath = site.paginate_path | replace: ":num", pageCount %}
|
39
|
-
<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-black text-opacity-75 border border-transparent hover:bg-{{ color }}-100 hover:bg-opacity-75 hover:text-{{ color }}-400 {%- if pageCount == paginator.page %} text-{{ color }}-400 select-none{% endif -%}"
|
40
|
-
|
41
|
-
{% if pageCount != paginator.page %}
|
42
|
-
{% if pageCount == 1 %}href={{ "/" | relative_url }}{% else %}href="{{ pagePath | relative_url }}"{% endif %}
|
43
|
-
{% endif %}
|
44
|
-
|
45
|
-
><span class="block">{{ pageCount }}</span></a>
|
46
|
-
{%- endfor -%}
|
47
|
-
</div>
|
48
|
-
<!-- Next -->
|
49
|
-
<a href="{{ paginator.next_page_path | relative_url }}" class="flex justify-center items-center m-2 w-8 h-8 rounded-full bg-{{ color }}-50 bg-opacity-75 hover:bg-{{ color }}-100 hover:bg-opacity-75 hover:text-{{ color }}-400">
|
50
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 flex-shrink-0 text-{{ color }}-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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" /></svg>
|
51
|
-
</a>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
</div>
|
data/_layouts/post.html
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{% assign color = page.color | default: site.color %}
|
5
|
-
{% assign title = page.title | default: site.title %}
|
6
|
-
{% assign description = page.description | default: site.description %}
|
7
|
-
|
8
|
-
<div class="w-full mt-16 p-16 flex flex-col justify-center items-center select-none text-{{ color }}-50">
|
9
|
-
<div class="w-3/4 py-4 text-center font-serif text-4xl">{{ title }}</div>
|
10
|
-
<div class="w-2/3 py-1 text-center font-sans text-base">{{ description }}</div>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
{% include article.html %}
|
14
|
-
|
15
|
-
<div class="mx-auto flex justify-between w-acg space-x-4">
|
16
|
-
<a class="w-1/2 p-4 flex items-center rounded-lg shadow-xl flex-grow bg-{{ color }}-50 bg-opacity-75 {% unless page.next.id %}opacity-0{% endunless %}" {% if page.next.id %}href="{{ page.next.id | relative_url }}"{% endif %}>
|
17
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 flex-shrink-0 text-{{ color }}-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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" /></svg>
|
18
|
-
<span class="ml-4">{{ page.next.title | default: "" }}</span>
|
19
|
-
</a>
|
20
|
-
<a class="w-1/2 p-4 flex items-center flex-row-reverse rounded-lg shadow-xl flex-grow bg-{{ color }}-50 bg-opacity-75 {% unless page.previous.id %}opacity-0{% endunless %}" {% if page.previous.id %}href="{{ page.previous.id | relative_url }}"{% endif %}>
|
21
|
-
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 flex-shrink-0 text-{{ color }}-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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" /></svg>
|
22
|
-
<span class="mr-4">{{ page.previous.title | default: "" }}</span>
|
23
|
-
</a>
|
24
|
-
</div>
|
data/_layouts/tag.html
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{% assign color = page.color | default: site.color %}
|
5
|
-
{% assign title = page.title | capitalize %}
|
6
|
-
|
7
|
-
<div class="w-acg min-h-screen">
|
8
|
-
<div class="w-full mt-16 p-16 flex justify-center">
|
9
|
-
{% include item-tag.html name=page.title zoom=true %}
|
10
|
-
</div>
|
11
|
-
<div class="w-full m-auto p-4 flex flex-col space-y-4">
|
12
|
-
{% include posts.html posts=page.posts %}
|
13
|
-
</div>
|
14
|
-
</div>
|
data/_layouts/tags.html
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{% assign color = page.color | default: site.color %}
|
5
|
-
{% assign tagList = "" | split: "" %}
|
6
|
-
{% for item in site.tags %}
|
7
|
-
{% assign tagName = item[0] %}
|
8
|
-
{% assign tagList = tagList | push: tagName %}
|
9
|
-
{% endfor %}
|
10
|
-
{% assign tagList = tagList | sort %}
|
11
|
-
|
12
|
-
<div class="min-h-screen py-16 flex flex-wrap justify-center items-center content-center select-none">
|
13
|
-
<div class="w-full py-8 font-serif text-4xl text-{{ color }}-50 text-center">{{ site.tagtitle | default: "TAGS" }}</div>
|
14
|
-
|
15
|
-
{% for tagName in tagList %}
|
16
|
-
{% assign tagCount = site.tags[tagName].size %}
|
17
|
-
<div class="m-1 px-2 bg-{{ color }}-50 bg-opacity-75 rounded">
|
18
|
-
{% include item-tag.html name=tagName count=tagCount %}
|
19
|
-
</div>
|
20
|
-
{% endfor %}
|
21
|
-
</div>
|