jekyll-theme-minimax 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fcaa03a3e07c8caea29dad1a0b9cd4fc930eebe9cb0fcdce67eef225c72b732
4
- data.tar.gz: 38cd1667dfc7ce27f7641e4977a87bc75f41a9319d5fbf7e78d54d65e0d52334
3
+ metadata.gz: a129d58959f4fcce899c91ac4d1b8c3fa2759ed8475d8ea5fda10a776a580afe
4
+ data.tar.gz: 8ef0a1a946447460bb25a9dd4f0df3b3db554614c2fd452c7182f50e251385fe
5
5
  SHA512:
6
- metadata.gz: 06a3d1187ee5ed498e26b7cdb90680ce5998791cfa314327c9a16cb132fe02f4758685a2d53bf11d4e6775a5a15afabde91b640bce4dd088d7da6e4887f58f62
7
- data.tar.gz: f619539fc44a7fa2ae9909ed7d6882d010c6e6a02043c41f3e89e69ca9cd382baf2619e17783db68b275d2c0b834ccf34e40e8c797ff14d042f577e78a70860b
6
+ metadata.gz: 5254b2ee81f0710c0fc8a4d736cefbd518eb872118f3dcd21990e1a9cb88e7cd58411027bafc69c7d6ebbcba403e99abcbc619c233a6457839864f52b8197946
7
+ data.tar.gz: d073739ec1873c4943075ba1a2fb2fe13f6b4e095f8e1987d30d812f33267a0b30795ddea94fb7fa59630c563dad863ab29f37945f522c751ad0f1d18593454a
data/README.md CHANGED
@@ -26,7 +26,26 @@ Or install it yourself as:
26
26
 
27
27
  ## Usage
28
28
 
29
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
29
+ - [Tag Cloud](#tag-cloud)
30
+
31
+ ### Tag Cloud
32
+
33
+ In anywhere you want to show the tag cloud, insert `{% include tag_cloud.html %}`.
34
+
35
+ 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`:
36
+
37
+ ```
38
+ ---
39
+ layout: tag_page
40
+ tag: jekyll
41
+ ---
42
+ ```
43
+
44
+ *Want free your hands*? Run a [script](scripts/tag-generator.py) to generate all tag pages automatically: `python scripts/tag-generator.py`.
45
+
46
+ ### Mathjax
47
+
48
+ 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).
30
49
 
31
50
  ## Contributing
32
51
 
data/_includes/head.html CHANGED
@@ -8,4 +8,7 @@
8
8
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
9
9
  {%- include google-analytics.html -%}
10
10
  {%- endif -%}
11
+ {%- if page.math -%}
12
+ {%- include mathjax.html -%}
13
+ {%- endif -%}
11
14
  </head>
@@ -0,0 +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>
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.1
4
+ version: 0.5.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-20 00:00:00.000000000 Z
11
+ date: 2019-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -98,6 +98,7 @@ files:
98
98
  - _includes/icon-github.svg
99
99
  - _includes/icon-twitter.html
100
100
  - _includes/icon-twitter.svg
101
+ - _includes/mathjax.html
101
102
  - _includes/social.html
102
103
  - _includes/tag_cloud.html
103
104
  - _layouts/default.html