jekyll-theme-minimax 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -4
- data/_includes/category_archive.html +12 -0
- data/_layouts/category_page.html +14 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cad66585926ef611b8f302b7ad0cb079de1f99839f1f31006f97cfa06085144
|
4
|
+
data.tar.gz: 06ef9155017a3c0fe8e16c3b825a1d58d4c287d58b869433afc44035c1651633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7966264f884d0b0ed10608747e5efc1097575c295e9d481435deb60de84c5043097008b9180de9c16885320bae83bd89f912229c34b1e8d1128901368035d7a
|
7
|
+
data.tar.gz: 4f0e729ba3a658ca84ad3c9621bb9849e2006e0f31faa8014188fe86145d5357ab4a7b001eae2e33c85580b5d9f7ad5bc88f2d629c6cf4e124d2dc2a823ba292
|
data/README.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
Minimax is a Jekyll theme based on [Minima](https://github.com/jekyll/minima) with a little extension.
|
4
4
|
|
5
|
+
- [jekyll-theme-minimax](#jekyll-theme-minimax)
|
6
|
+
- [Installation](#installation)
|
7
|
+
- [Usage](#usage)
|
8
|
+
- [Tag Cloud](#tag-cloud)
|
9
|
+
- [Category Archive](#category-archive)
|
10
|
+
- [Mathjax](#mathjax)
|
11
|
+
- [Table of Contents](#table-of-contents)
|
12
|
+
- [Contributing](#contributing)
|
13
|
+
- [Development](#development)
|
14
|
+
- [License](#license)
|
15
|
+
|
5
16
|
## Installation
|
6
17
|
|
7
18
|
Add this line to your Jekyll site's `Gemfile`:
|
@@ -26,10 +37,6 @@ Or install it yourself as:
|
|
26
37
|
|
27
38
|
## Usage
|
28
39
|
|
29
|
-
- [Tag Cloud](#tag-cloud)
|
30
|
-
- [Mathjax](#mathjax)
|
31
|
-
- [Table of Contents](#table-of-contents)
|
32
|
-
|
33
40
|
### Tag Cloud
|
34
41
|
|
35
42
|
In anywhere you want to show the tag cloud, insert `{% include tag_cloud.html %}`.
|
@@ -45,6 +52,10 @@ tag: jekyll
|
|
45
52
|
|
46
53
|
*Want free your hands*? Run a [script](scripts/tag-generator.py) to generate all tag pages automatically: `python scripts/tag-generator.py`.
|
47
54
|
|
55
|
+
### Category Archive
|
56
|
+
|
57
|
+
`{% include category_archive.html %}`
|
58
|
+
|
48
59
|
### Mathjax
|
49
60
|
|
50
61
|
Minimax support Mathjax. You can write mathematical formulas in your posts if you set the `math` front matter to be `true` in these posts. [Example](_posts/2019-02-21-test-mathjax.md).
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="category-archive">
|
2
|
+
{% assign categories = site.categories | sort %}
|
3
|
+
<ul>
|
4
|
+
{% for category in categories %}
|
5
|
+
<li>
|
6
|
+
<a href="/category/{{ category | first | slugify }}.html">
|
7
|
+
{{ category[0] | replace: '-', ' ' }}
|
8
|
+
</a>({{ category | last | size }})
|
9
|
+
</li>
|
10
|
+
{% endfor %}
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="post">
|
5
|
+
<h1>Category: {{ page.category }}</h1>
|
6
|
+
<ul>
|
7
|
+
{% for post in site.categories[page.category] %}
|
8
|
+
<li>
|
9
|
+
{{ post.date | date: "%Y-%m-%d" }} » <a href="{{ post.url }}">{{ post.title }}</a>
|
10
|
+
</li>
|
11
|
+
{% endfor %}
|
12
|
+
</ul>
|
13
|
+
</div>
|
14
|
+
<hr>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-minimax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Songzi Vuong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -89,6 +89,7 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- LICENSE.txt
|
91
91
|
- README.md
|
92
|
+
- _includes/category_archive.html
|
92
93
|
- _includes/disqus_comments.html
|
93
94
|
- _includes/footer.html
|
94
95
|
- _includes/google-analytics.html
|
@@ -102,6 +103,7 @@ files:
|
|
102
103
|
- _includes/social.html
|
103
104
|
- _includes/tag_cloud.html
|
104
105
|
- _includes/toc.html
|
106
|
+
- _layouts/category_page.html
|
105
107
|
- _layouts/default.html
|
106
108
|
- _layouts/home.html
|
107
109
|
- _layouts/page.html
|