minima-rock 0.4.0 → 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: 63f86af5450a0871f2000cf03668a9b9d0f5a241a5e7c03229fd68b73c63c673
4
- data.tar.gz: 0feb30dbfc1f9ded2074375a54a3822ab417d63bee96ea24480f9f925d5db7eb
3
+ metadata.gz: 1772bb03b5a67ed58d326352cf3fbb01ebe3be6aff9135c4d1069627c56ba8fb
4
+ data.tar.gz: dd59367c664d74e70ddd12bc9daab251efa2b1d13fac773af2368417783bccdc
5
5
  SHA512:
6
- metadata.gz: a6b7ce0c7faa5abb75e95abfd88af6ee0290e592295c04800133d3fec95b1e121796994c95a1a467a010336f02ee4b75150544cf77ec6d1ef2ee06250b12d229
7
- data.tar.gz: 8e06ba7c0362e4b9fc2806412afb6c51aad16f28a4d260a7d1fbe126b37847205c257ea47886f11d79c2d0f88cf3b3d25cdac1a04257dcc6e6c5cf55e3a6f69d
6
+ metadata.gz: '081106992a858eb178c495492a2d15799f34613a19ae5d4896886a277dae248550ed98677f3051ea09cba1856d2bb73ed46bf842b2babbdfaa038a052cd6068c'
7
+ data.tar.gz: 91fbac7733309c7e7d5feb635254395746459fdda071798eac13001a0a85e589c773dca243b011c5def1cdc9b14c73b919150df0cdf53e0c87191a3bb8aaea8d
data/_includes/head.html CHANGED
@@ -5,6 +5,9 @@
5
5
  {%- seo -%}
6
6
  <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
7
7
  <script type="text/javascript" src="{{ site.baseurl }}/assets/js/color.js"></script>
8
+ {%- if page.math -%}
9
+ {%- include mathjax.html -%}
10
+ {%- endif -%}
8
11
  {%- feed_meta -%}
9
12
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
10
13
  {%- include google-analytics.html -%}
@@ -0,0 +1,14 @@
1
+ {% if page.assets %}
2
+ {% capture imagePath %}{{ page.assets | slugify }}/{{ include.name }}{% endcapture %}
3
+ {% else %}
4
+ {% capture imagePath %}{{ page.title | slugify }}/{{ include.name }}{% endcapture %}
5
+ {% endif %}
6
+
7
+ {% if include.caption %}
8
+ <figure>
9
+ <img src="/assets/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
10
+ <figcaption>{{ include.caption }}</figcaption>
11
+ </figure>
12
+ {% else %}
13
+ <img src="/assets/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
14
+ {% endif %}
@@ -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/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
@@ -0,0 +1,5 @@
1
+ <nav>
2
+ <h2>Table of Contents</h2>
3
+ * this unordered seed list will be replaced by toc as unordered list
4
+ {:toc}
5
+ </nav>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minima-rock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Glovier
@@ -100,11 +100,14 @@ files:
100
100
  - _includes/google-analytics.html
101
101
  - _includes/head.html
102
102
  - _includes/header.html
103
+ - _includes/image.html
104
+ - _includes/mathjax.html
103
105
  - _includes/share_bar.html
104
106
  - _includes/social.html
105
107
  - _includes/tags_archive.html
106
108
  - _includes/tags_bar.html
107
109
  - _includes/tags_cloud.html
110
+ - _includes/toc.html
108
111
  - _layouts/default.html
109
112
  - _layouts/home.html
110
113
  - _layouts/page.html
@@ -117,6 +120,7 @@ files:
117
120
  - assets/css/style.scss
118
121
  - assets/js/color.js
119
122
  - assets/minima-social-icons.svg
123
+ - assets/posts/test-image/sexy-girl.png
120
124
  homepage: https://github.com/alxdhuang/minima-rock
121
125
  licenses:
122
126
  - MIT