bulma-clean-theme 0.5.7 → 0.5.8

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
- SHA1:
3
- metadata.gz: 4335d8b6a8d652079788478438805fd03081572d
4
- data.tar.gz: 3fbe6b6916d8ac0ed98141b98a92c8bb6e2ca7fc
2
+ SHA256:
3
+ metadata.gz: e069b6f5f4713ef53a9c89a4e07354aac95fca301a373de6093198b775d29f18
4
+ data.tar.gz: dde5ae8ba40555625f418a87cfe97f4cf50a025883027edae3c120899b3e1eea
5
5
  SHA512:
6
- metadata.gz: bd6135733dea3ab2b66e36eef39944430dcf64c2e218a9f08a7c13a41a00d2b0c68b0a27db2000e0682ae51ad26b3ce4d9b426e1484591b09ac7405d4e70ef38
7
- data.tar.gz: e6827ebf74c9f8bb6b45d798f18fb3a1beae2632fa3d634a2faa51b0d0fc9714a03e79ecdaafa6abd245e1fb192bbb13a1a6aa659635b46dddb5b85a4956a6cf
6
+ metadata.gz: 1dac119dc60f87b25792e3c8684f37ffb35e91cb8ef19e0ac74be6205a7ab9b31533d1462241a1849ca75cd9139d924bc3f5dc00557d324c78460a4aa5fd6317
7
+ data.tar.gz: 185cd417afa785a674734f415aec7f7f352c2a09ba20ac8d6fd321b5029f94ce82fb1eac222e8006eb6087c8c1dad18c643a38a931ee32ca12eade09c4033e3e
data/README.md CHANGED
@@ -10,6 +10,8 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
10
10
  * [Installation](#installation)
11
11
  * [Usage](#usage)
12
12
  * [Pages](#pages)
13
+ * [Page Hero](#page-hero)
14
+ * [Table Of Contents](#table-of-contents)
13
15
  * [Posts](#posts)
14
16
  * [Navigation](#navigation)
15
17
  * [Colours and Styles](#colours-and-styles)
@@ -21,6 +23,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
21
23
  * [Products](#products)
22
24
  * [Scripts](#scripts)
23
25
  * [Callouts](#callouts)
26
+ * [Favicon](#favicon)
24
27
  * [Contributing](#contributing)
25
28
  * [Development](#development)
26
29
  * [Licence](#licence)
@@ -52,26 +55,33 @@ Or install it yourself as:
52
55
 
53
56
  ### Pages
54
57
 
55
- Create your pages as individual markdown files and use the `layout: page` for normal pages. Set the pages title and subtitle in the frontmatter and it will appear in the hero.
58
+ Create your pages as individual markdown files and use the `layout: page` for normal pages. Set the pages title and subtitle in the front matter and it will appear in the hero.
59
+
60
+ #### Page Hero
56
61
 
57
62
  **New in 0.2**
58
- Heros can now display a background image if you provide a `hero_image: /path/to/image.jpg` setting in your page frontmatter, or in the [defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) in your sites `_config.yml`
63
+ Heros can now display a background image if you provide a `hero_image: /path/to/image.jpg` setting in your page front matter, or in the [defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) in your sites `_config.yml`
59
64
 
60
- You can also set the height of the hero by providing a bulma hero height class in your frontmatter, such as `hero_height: is-fullwidth`. If you do not provide this, it will revert to is-medium
65
+ You can also set the height of the hero by providing a bulma hero height class in your front matter, such as `hero_height: is-fullwidth`. If you do not provide this, it will revert to is-medium
61
66
 
62
67
  **New in 0.5.4**
63
- If you would like to add a call to action button in the hero then add `hero_link` and `hero_link_text` to the page's frontmatter.
68
+ If you would like to add a call to action button in the hero then add `hero_link` and `hero_link_text` to the page's front matter.
64
69
 
65
70
  **New in 0.5.7**
66
- If you would like to hide the hero, you can set `hide_hero: true` in the page's frontmatter.
71
+ If you would like to hide the hero, you can set `hide_hero: true` in the page's front matter.
72
+
73
+ #### Table Of Contents
74
+
75
+ **New in 0.5.8**
76
+ If you want to display a table of contents (toc) then add `toc: true` to your page's front matter. You can customise the default table of contents title by setting `toc_title: My Custom Title` in the page's front matter.
67
77
 
68
78
  ### Posts
69
79
 
70
80
  If you want posts, create a `_posts` directory to store your posts as per normal Jekyll usage, with the `layout: post`. Next create a `blog` directory with an index.html file that has `layout: blog`
71
81
 
72
- **New in 0.2** It will now display an image in the blog page if you set `image: /path/to/image.jpg` in your post's or page's frontmatter, or in the [defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) in your sites `_config.yml`
82
+ **New in 0.2** It will now display an image in the blog page if you set `image: /path/to/image.jpg` in your post's or page's front matter, or in the [defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) in your sites `_config.yml`
73
83
 
74
- You can also set the height of the hero by providing a bulma hero height class in your frontmatter, such as `hero_height: is-fullwidth`. If you do not provide this, it will revert to is-medium
84
+ You can also set the height of the hero by providing a Bulma hero height class in your front matter, such as `hero_height: is-fullwidth`. If you do not provide this, it will revert to is-medium
75
85
 
76
86
 
77
87
  ### Navigation
@@ -175,7 +185,7 @@ You may make multiple menus in the same file, separated by the label
175
185
 
176
186
  **New in 0.4**
177
187
 
178
- The tabs gets its content from a data file in your site's `_data` directory. Simply set the name of your data file in the page's menubar setting in the frontmatter.
188
+ The tabs gets its content from a data file in your site's `_data` directory. Simply set the name of your data file in the page's menubar setting in the front matter.
179
189
 
180
190
  ```yaml
181
191
  title: Page with tabs
@@ -384,6 +394,10 @@ subtitle: This is an example landing page
384
394
  callouts: example_callouts
385
395
  ```
386
396
 
397
+ ### Favicon
398
+
399
+ The default favicon path is `{{ site.baseurl }}/favicon.png` but you can overwrite it in the sites `_config.yml` like this `favicon: /path/to/favicon.png`
400
+
387
401
  ## Contributing
388
402
 
389
403
  Bug reports and pull requests are welcome on GitHub at https://github.com/chrisrhymes/bulma-clean-theme. 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.
@@ -3,7 +3,9 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1">
4
4
  <title>{{ page.title }} - {{ site.title }}</title>
5
5
  <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
6
- <link rel="shortcut icon" type="image/png" href="{{ site.baseurl }}/favicon.png" />
6
+ <link rel="shortcut icon" type="image/png"
7
+ {% if site.favicon %} href="{{ site.favicon | prepend: site.baseurl }}" {% else %} href="{{ site.baseurl }}/favicon.png" {% endif %}
8
+ />
7
9
  <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
8
10
  {% seo %}
9
11
  {%- if site.google_analytics -%}
@@ -0,0 +1,82 @@
1
+ {% capture tocWorkspace %}
2
+ {% comment %}
3
+ Version 1.0.8
4
+ https://github.com/allejo/jekyll-toc
5
+ {% endcomment %}
6
+
7
+ {% capture my_toc %}{% endcapture %}
8
+ {% assign orderedList = include.ordered | default: false %}
9
+ {% assign minHeader = include.h_min | default: 1 %}
10
+ {% assign maxHeader = include.h_max | default: 6 %}
11
+ {% assign nodes = include.html | split: '<h' %}
12
+ {% assign firstHeader = true %}
13
+
14
+ {% capture listModifier %}{% if orderedList %}1.{% else %}-{% endif %}{% endcapture %}
15
+
16
+ {% for node in nodes %}
17
+ {% if node == "" %}
18
+ {% continue %}
19
+ {% endif %}
20
+
21
+ {% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
22
+
23
+ {% if headerLevel < minHeader or headerLevel > maxHeader %}
24
+ {% continue %}
25
+ {% endif %}
26
+
27
+ {% if firstHeader %}
28
+ {% assign firstHeader = false %}
29
+ {% assign minHeader = headerLevel %}
30
+ {% endif %}
31
+
32
+ {% assign indentAmount = headerLevel | minus: minHeader %}
33
+ {% assign _workspace = node | split: '</h' %}
34
+
35
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
36
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
37
+ {% assign html_id = _idWorkspace[0] %}
38
+
39
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
40
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
41
+ {% assign html_class = _classWorkspace[0] %}
42
+
43
+ {% if html_class contains "no_toc" %}
44
+ {% continue %}
45
+ {% endif %}
46
+
47
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
48
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
49
+
50
+ {% assign space = '' %}
51
+ {% for i in (1..indentAmount) %}
52
+ {% assign space = space | prepend: ' ' %}
53
+ {% endfor %}
54
+
55
+ {% unless include.item_class == blank %}
56
+ {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
57
+ {% endunless %}
58
+
59
+ {% capture heading_body %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
60
+ {% capture my_toc %}{{ my_toc }}
61
+ {{ space }}{{ listModifier }} {{ listItemClass }} [{{ heading_body | replace: "|", "\|" }}]({% if include.baseurl %}{{ include.baseurl }}{% endif %}#{{ html_id }}){% if include.anchor_class %}{:.{{ include.anchor_class }}}{% endif %}{% endcapture %}
62
+ {% endfor %}
63
+
64
+ {% if include.class %}
65
+ {% capture my_toc %}{:.{{ include.class }}}
66
+ {{ my_toc | lstrip }}{% endcapture %}
67
+ {% endif %}
68
+
69
+ {% if include.id %}
70
+ {% capture my_toc %}{: #{{ include.id }}}
71
+ {{ my_toc | lstrip }}{% endcapture %}
72
+ {% endif %}
73
+ {% endcapture %}{% assign tocWorkspace = '' %}
74
+
75
+ <div class="contents">
76
+ <div class="menu">
77
+ <p class="menu-label">{{ include.contents_title }}</p>
78
+ {{ my_toc | markdownify | strip }}
79
+ </div>
80
+ </div>
81
+
82
+
@@ -2,6 +2,10 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ {% if page.toc %}
6
+ {% assign contentsTitle = page.toc_title | default: 'Contents' %}
7
+ {% include toc.html html=content class='menu-list' h_min=2 h_max=3 contents_title=contentsTitle %}
8
+ {% endif %}
5
9
  <div class="content">
6
10
  {{ content }}
7
11
  </div>
@@ -23,3 +23,9 @@ div.highlight {
23
23
  }
24
24
  }
25
25
  }
26
+
27
+ .contents {
28
+ box-shadow: $box-shadow;
29
+ padding: 1.5rem;
30
+ margin-bottom: 3rem;
31
+ }
@@ -9,4 +9,4 @@ $tabs-link-active-border-bottom-color: $primary;
9
9
 
10
10
  @import "../node_modules/bulma/bulma.sass";
11
11
  @import "layout";
12
- @import "syntax"
12
+ @import "syntax";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-clean-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrisrhymes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-14 00:00:00.000000000 Z
11
+ date: 2019-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -160,6 +160,7 @@ files:
160
160
  - _includes/rating.html
161
161
  - _includes/review.html
162
162
  - _includes/tabs.html
163
+ - _includes/toc.html
163
164
  - _layouts/blog.html
164
165
  - _layouts/default.html
165
166
  - _layouts/page.html
@@ -175,7 +176,6 @@ files:
175
176
  - assets/css/app.scss
176
177
  - assets/js/app.js
177
178
  - blog/index.html
178
- - changelog.txt
179
179
  - favicon.png
180
180
  - node_modules/.yarn-integrity
181
181
  - node_modules/bulma/CHANGELOG.md
@@ -261,9 +261,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  - !ruby/object:Gem::Version
262
262
  version: '0'
263
263
  requirements: []
264
- rubyforge_project:
265
- rubygems_version: 2.5.1
264
+ rubygems_version: 3.0.3
266
265
  signing_key:
267
266
  specification_version: 4
268
- summary: Clean and simple theme using Bulma
267
+ summary: Clean and simple Jekyll theme built using Bulma
269
268
  test_files: []
@@ -1,41 +0,0 @@
1
- # 0.5.7
2
- * Add option to hide hero - pull request #15 from risa2000
3
- * Add ability to override the height of callouts - pull request #14 from agardnerIT
4
-
5
- # 0.5.6
6
- * Explicitly reference shortcut icon - pull request #13 from johannesegger
7
-
8
- # 0.5.5
9
- * Fix bug with navbar dropdown in IE and Edge
10
- * Fix bug with layout where <code> elements were too wide
11
-
12
- # 0.5.4
13
- * Added landing page feature
14
-
15
- # 0.5.3
16
- * Remove extra </a> - pull request #8 from SumitBando
17
-
18
- # 0.5.2
19
- * Add head and footer script partials
20
- * Updated Bulma to 0.7.5
21
-
22
- # 0.5.1
23
- * Fix headings not showing in post
24
-
25
- # 0.5
26
- * Add product page layouts
27
-
28
- # 0.4.1
29
- * Added footer links
30
-
31
- # 0.4
32
- * Added tabs, syntax highlighting and updated Bulma
33
-
34
- # 0.3
35
- * Added menubar
36
-
37
- # 0.2
38
- * Added hero background image, blog page images and Google Analytics
39
-
40
- # 0.1
41
- * Initial release