jekyll-theme-minimax 0.6.0 → 0.6.1

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: 622f48f2f9b939654b3e72a8432b872f5fb325bb949ec079d13863e5122ca459
4
- data.tar.gz: 5028eb04a25d2ebfe615a5ffce32f4f8976e39d07900b868cd8eee8408b00697
3
+ metadata.gz: 380555826607ce4d77b56ecc887056ecb6a34da8dfc24c9df0214b2cbb12660d
4
+ data.tar.gz: ef97cd9407dda66facfe7f0fd95a8e6367ff00edb12bfe513bcc816fc714876f
5
5
  SHA512:
6
- metadata.gz: 985dccffd3ab2e3c3663f7da698a7014d0bc293d11ad24b42fa351327af2e3ea93c63ea620a362ff1351443ec5e73d4ce275948220a228ab1bf747ca70eed6ac
7
- data.tar.gz: dae4cdb03741ff7e61a9186ab7cc89650953c1491aaa65b0749923166e509ba617959658a25bd40ac54384ea1b7715cf2c67784fc11b27bfc8cfc86d4640e8fb
6
+ metadata.gz: d65a476db9c83379dbca2e328a9e0364f97b9ffc27e5be7ca323bf631508f7fa446986fbb6510ae23c4c72746a0a79604d6d2b9d617cd8dcc1fba5d366100c64
7
+ data.tar.gz: e54090f1f0e18ff6083891b21b4207eb64b994aadc07614ed16c9f9020d8d910ade1b5e3e30c21b8ff961b8aff7a9febc94222cc9d78bb8457927fe5d7376731
data/LICENSE.txt CHANGED
@@ -1,22 +1,22 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016-present Parker Moore and the minima contributors
4
- Copyright (c) 2019 songzivuong
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016-present Parker Moore and the minima contributors
4
+ Copyright (c) 2019 songzivuong
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,67 +1,78 @@
1
- # jekyll-theme-minimax
2
-
3
- Minimax is a Jekyll theme based on [Minima](https://github.com/jekyll/minima) with a little extension.
4
-
5
- ## Installation
6
-
7
- Add this line to your Jekyll site's `Gemfile`:
8
-
9
- ```ruby
10
- gem "jekyll-theme-minimax"
11
- ```
12
-
13
- And add this line to your Jekyll site's `_config.yml`:
14
-
15
- ```yaml
16
- theme: jekyll-theme-minimax
17
- ```
18
-
19
- And then execute:
20
-
21
- $ bundle
22
-
23
- Or install it yourself as:
24
-
25
- $ gem install jekyll-theme-minimax
26
-
27
- ## Usage
28
-
29
- - [Tag Cloud](#tag-cloud)
30
- - [Mathjax](#mathjax)
31
-
32
- ### Tag Cloud
33
-
34
- In anywhere you want to show the tag cloud, insert `{% include tag_cloud.html %}`.
35
-
36
- You can manually write a page for each tag to list all posts that are labeled with the tag. For example, you want to show all posts labeled with `jekyll`, then create a page `tag/jekyll.md`:
37
-
38
- ```
39
- ---
40
- layout: tag_page
41
- tag: jekyll
42
- ---
43
- ```
44
-
45
- *Want free your hands*? Run a [script](scripts/tag-generator.py) to generate all tag pages automatically: `python scripts/tag-generator.py`.
46
-
47
- ### Mathjax
48
-
49
- 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).
50
-
51
- ## Contributing
52
-
53
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
54
-
55
- ## Development
56
-
57
- To set up your environment to develop this theme, run `bundle install`.
58
-
59
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
60
-
61
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
62
- To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-minimax.gemspec` accordingly.
63
-
64
- ## License
65
-
66
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
67
-
1
+ # jekyll-theme-minimax
2
+
3
+ Minimax is a Jekyll theme based on [Minima](https://github.com/jekyll/minima) with a little extension.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "jekyll-theme-minimax"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: jekyll-theme-minimax
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install jekyll-theme-minimax
26
+
27
+ ## Usage
28
+
29
+ - [Tag Cloud](#tag-cloud)
30
+ - [Mathjax](#mathjax)
31
+ - [Table of Contents](#table-of-contents)
32
+
33
+ ### Tag Cloud
34
+
35
+ In anywhere you want to show the tag cloud, insert `{% include tag_cloud.html %}`.
36
+
37
+ You can manually write a page for each tag to list all posts that are labeled with the tag. For example, you want to show all posts labeled with `jekyll`, then create a page `tag/jekyll.md`:
38
+
39
+ ```
40
+ ---
41
+ layout: tag_page
42
+ tag: jekyll
43
+ ---
44
+ ```
45
+
46
+ *Want free your hands*? Run a [script](scripts/tag-generator.py) to generate all tag pages automatically: `python scripts/tag-generator.py`.
47
+
48
+ ### Mathjax
49
+
50
+ 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).
51
+
52
+ ### Table of Contents
53
+
54
+ You can insert `{% include toc.html %}` at anywhere you want to automatically generate a table of contents. Don't forget specify the below lines in `_config.yml`.
55
+
56
+ ```
57
+ markdown: kramdown
58
+ kramdown:
59
+ parse_block_html: true
60
+ ```
61
+
62
+ ## Contributing
63
+
64
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
65
+
66
+ ## Development
67
+
68
+ To set up your environment to develop this theme, run `bundle install`.
69
+
70
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
71
+
72
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
73
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-minimax.gemspec` accordingly.
74
+
75
+ ## License
76
+
77
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
78
+
@@ -1,6 +1,6 @@
1
- <script type="text/x-mathjax-config">
2
- MathJax.Hub.Config({
3
- tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
4
- });
5
- </script>
6
- <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
1
+ <script type="text/x-mathjax-config">
2
+ MathJax.Hub.Config({
3
+ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
4
+ });
5
+ </script>
6
+ <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
@@ -1,11 +1,11 @@
1
- <div class="tag-cloud">
2
- {% assign tags = site.tags | sort %}
3
- {% for tag in tags %}
4
- <span class="site-tag">
5
- <a href="/tag/{{ tag | first | slugify }}/"
6
- style="font-size: {{ tag | last | size | times: 4 | plus: 80 }}%">
7
- {{ tag[0] | replace:'-', ' ' }}
8
- </a><sup>{{ tag | last | size }}</sup>
9
- </span>&nbsp;
10
- {% endfor %}
1
+ <div class="tag-cloud">
2
+ {% assign tags = site.tags | sort %}
3
+ {% for tag in tags %}
4
+ <span class="site-tag">
5
+ <a href="/tag/{{ tag | first | slugify }}.html"
6
+ style="font-size: {{ tag | last | size | times: 4 | plus: 80 }}%">
7
+ {{ tag[0] | replace:'-', ' ' }}
8
+ </a><sup>{{ tag | last | size }}</sup>
9
+ </span>&nbsp;
10
+ {% endfor %}
11
11
  </div>
data/_includes/toc.html CHANGED
@@ -1,5 +1,5 @@
1
- <nav>
2
- <h4>Table of Contents</h4>
3
- * this unordered seed list will be replaced by toc as unordered list
4
- {:toc}
1
+ <nav>
2
+ <h4>Table of Contents</h4>
3
+ * this unordered seed list will be replaced by toc as unordered list
4
+ {:toc}
5
5
  </nav>
@@ -1,14 +1,14 @@
1
- ---
2
- layout: default
3
- ---
4
- <div class="post">
5
- <h1>Tag: {{ page.tag }}</h1>
6
- <ul>
7
- {% for post in site.tags[page.tag] %}
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>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post">
5
+ <h1>Tag: {{ page.tag }}</h1>
6
+ <ul>
7
+ {% for post in site.tags[page.tag] %}
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
14
  <hr>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-minimax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Songzi Vuong
@@ -132,8 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
- rubyforge_project:
136
- rubygems_version: 2.7.6
135
+ rubygems_version: 3.0.1
137
136
  signing_key:
138
137
  specification_version: 4
139
138
  summary: Minimax is a Jekyll theme based on Minima with a little extension.