jekyll-theme-minimax 0.6.1 → 0.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 380555826607ce4d77b56ecc887056ecb6a34da8dfc24c9df0214b2cbb12660d
4
- data.tar.gz: ef97cd9407dda66facfe7f0fd95a8e6367ff00edb12bfe513bcc816fc714876f
3
+ metadata.gz: 5cad66585926ef611b8f302b7ad0cb079de1f99839f1f31006f97cfa06085144
4
+ data.tar.gz: 06ef9155017a3c0fe8e16c3b825a1d58d4c287d58b869433afc44035c1651633
5
5
  SHA512:
6
- metadata.gz: d65a476db9c83379dbca2e328a9e0364f97b9ffc27e5be7ca323bf631508f7fa446986fbb6510ae23c4c72746a0a79604d6d2b9d617cd8dcc1fba5d366100c64
7
- data.tar.gz: e54090f1f0e18ff6083891b21b4207eb64b994aadc07614ed16c9f9020d8d910ade1b5e3e30c21b8ff961b8aff7a9febc94222cc9d78bb8457927fe5d7376731
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" }} &raquo; <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.6.1
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-21 00:00:00.000000000 Z
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