bulma-clean-theme 0.8.1 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +61 -0
  3. data/_includes/callouts.html +2 -2
  4. data/_includes/footer.html +1 -1
  5. data/_includes/gallery.html +25 -0
  6. data/_includes/head.html +2 -1
  7. data/_includes/header.html +3 -3
  8. data/_includes/hero.html +1 -1
  9. data/_includes/image-modal.html +18 -0
  10. data/_includes/menubar.html +2 -2
  11. data/_includes/notification.html +10 -0
  12. data/_includes/post-card.html +5 -1
  13. data/_includes/showcase.html +1 -1
  14. data/_includes/tabs.html +1 -1
  15. data/_includes/youtube.html +8 -0
  16. data/_layouts/default.html +1 -0
  17. data/_layouts/product-category.html +1 -1
  18. data/_posts/2020-10-17-post-with-summary.md +23 -0
  19. data/_sass/_layout.scss +14 -0
  20. data/_sass/_main.scss +2 -0
  21. data/node_modules/bulma-block-list/docs/Gemfile +3 -0
  22. data/node_modules/bulma-block-list/docs/_config.yml +15 -0
  23. data/node_modules/bulma-block-list/docs/_data/menu.yaml +20 -0
  24. data/node_modules/bulma-block-list/docs/_sass/_block-list.scss +92 -0
  25. data/node_modules/bulma-block-list/docs/_sass/_main.scss +20 -0
  26. data/node_modules/bulma-block-list/docs/assets/css/app.scss +7 -0
  27. data/node_modules/bulma-block-list/docs/favicon.ico +0 -0
  28. data/node_modules/bulma-block-list/docs/index.html +249 -261
  29. data/node_modules/bulma-block-list/node_modules/bulma/CHANGELOG.md +1390 -0
  30. data/node_modules/bulma-block-list/node_modules/bulma/LICENSE +21 -0
  31. data/node_modules/bulma-block-list/node_modules/bulma/README.md +130 -0
  32. data/node_modules/bulma-block-list/node_modules/bulma/bulma.sass +9 -0
  33. data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css +10855 -0
  34. data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css.map +1 -0
  35. data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.min.css +1 -0
  36. data/node_modules/bulma-block-list/node_modules/bulma/package.json +77 -0
  37. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/_all.sass +5 -0
  38. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/generic.sass +142 -0
  39. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/helpers.sass +281 -0
  40. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/minireset.sass +79 -0
  41. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/_all.sass +15 -0
  42. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/breadcrumb.sass +75 -0
  43. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/card.sass +79 -0
  44. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/dropdown.sass +81 -0
  45. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/level.sass +77 -0
  46. data/node_modules/{bulma → bulma-block-list/node_modules/bulma}/sass/components/list.sass +0 -0
  47. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/media.sass +50 -0
  48. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/menu.sass +57 -0
  49. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/message.sass +99 -0
  50. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/modal.sass +113 -0
  51. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/navbar.sass +441 -0
  52. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/pagination.sass +150 -0
  53. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/panel.sass +119 -0
  54. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/tabs.sass +151 -0
  55. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/_all.sass +15 -0
  56. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/box.sass +24 -0
  57. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/button.sass +323 -0
  58. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/container.sass +24 -0
  59. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/content.sass +155 -0
  60. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/form.sass +1 -0
  61. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/icon.sass +21 -0
  62. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/image.sass +71 -0
  63. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/notification.sass +43 -0
  64. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/other.sass +39 -0
  65. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/progress.sass +67 -0
  66. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/table.sass +127 -0
  67. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/tag.sass +128 -0
  68. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/title.sass +70 -0
  69. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/_all.sass +8 -0
  70. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/checkbox-radio.sass +21 -0
  71. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/file.sass +180 -0
  72. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/input-textarea.sass +64 -0
  73. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/select.sass +85 -0
  74. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/shared.sass +55 -0
  75. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/tools.sass +205 -0
  76. data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/_all.sass +4 -0
  77. data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/columns.sass +504 -0
  78. data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/tiles.sass +34 -0
  79. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/_all.sass +5 -0
  80. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/footer.sass +9 -0
  81. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/hero.sass +145 -0
  82. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/section.sass +13 -0
  83. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/_all.sass +8 -0
  84. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/animations.sass +5 -0
  85. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/controls.sass +50 -0
  86. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/derived-variables.sass +106 -0
  87. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/functions.sass +110 -0
  88. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/initial-variables.sass +77 -0
  89. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/mixins.sass +261 -0
  90. data/node_modules/bulma-block-list/package.json +10 -10
  91. data/node_modules/bulma-block-list/src/block-list.scss +24 -1
  92. data/node_modules/bulma/CHANGELOG.md +95 -0
  93. data/node_modules/bulma/README.md +3 -2
  94. data/node_modules/bulma/bulma.sass +2 -1
  95. data/node_modules/bulma/css/bulma-rtl.css +11624 -0
  96. data/node_modules/bulma/css/bulma-rtl.css.map +1 -0
  97. data/node_modules/bulma/css/bulma-rtl.min.css +1 -0
  98. data/node_modules/bulma/css/bulma.css +7233 -6464
  99. data/node_modules/bulma/css/bulma.css.map +1 -1
  100. data/node_modules/bulma/css/bulma.min.css +1 -1
  101. data/node_modules/bulma/package.json +21 -18
  102. data/node_modules/bulma/sass/base/_all.sass +1 -1
  103. data/node_modules/bulma/sass/base/generic.sass +2 -1
  104. data/node_modules/bulma/sass/base/helpers.sass +1 -281
  105. data/node_modules/bulma/sass/base/minireset.sass +1 -1
  106. data/node_modules/bulma/sass/components/_all.sass +1 -1
  107. data/node_modules/bulma/sass/components/breadcrumb.sass +3 -3
  108. data/node_modules/bulma/sass/components/card.sass +5 -1
  109. data/node_modules/bulma/sass/components/dropdown.sass +3 -3
  110. data/node_modules/bulma/sass/components/level.sass +2 -2
  111. data/node_modules/bulma/sass/components/media.sass +10 -8
  112. data/node_modules/bulma/sass/components/menu.sass +2 -2
  113. data/node_modules/bulma/sass/components/message.sass +1 -1
  114. data/node_modules/bulma/sass/components/modal.sass +5 -3
  115. data/node_modules/bulma/sass/components/navbar.sass +12 -10
  116. data/node_modules/bulma/sass/components/panel.sass +2 -2
  117. data/node_modules/bulma/sass/components/tabs.sass +35 -12
  118. data/node_modules/bulma/sass/elements/_all.sass +1 -0
  119. data/node_modules/bulma/sass/elements/button.sass +10 -8
  120. data/node_modules/bulma/sass/elements/container.sass +10 -7
  121. data/node_modules/bulma/sass/elements/content.sass +5 -5
  122. data/node_modules/bulma/sass/elements/notification.sass +10 -3
  123. data/node_modules/bulma/sass/elements/progress.sass +5 -1
  124. data/node_modules/bulma/sass/elements/table.sass +6 -2
  125. data/node_modules/bulma/sass/elements/tag.sass +27 -17
  126. data/node_modules/bulma/sass/form/_all.sass +1 -0
  127. data/node_modules/bulma/sass/form/checkbox-radio.sass +3 -2
  128. data/node_modules/bulma/sass/form/file.sass +5 -3
  129. data/node_modules/bulma/sass/form/input-textarea.sass +3 -1
  130. data/node_modules/bulma/sass/form/select.sass +7 -5
  131. data/node_modules/bulma/sass/form/shared.sass +2 -0
  132. data/node_modules/bulma/sass/form/tools.sass +21 -11
  133. data/node_modules/bulma/sass/grid/_all.sass +1 -0
  134. data/node_modules/bulma/sass/helpers/_all.sass +12 -0
  135. data/node_modules/bulma/sass/helpers/color.sass +37 -0
  136. data/node_modules/bulma/sass/helpers/flexbox.sass +35 -0
  137. data/node_modules/bulma/sass/helpers/float.sass +8 -0
  138. data/node_modules/bulma/sass/helpers/other.sass +11 -0
  139. data/node_modules/bulma/sass/helpers/overflow.sass +2 -0
  140. data/node_modules/bulma/sass/helpers/position.sass +5 -0
  141. data/node_modules/bulma/sass/helpers/spacing.sass +31 -0
  142. data/node_modules/bulma/sass/helpers/typography.sass +98 -0
  143. data/node_modules/bulma/sass/helpers/visibility.sass +122 -0
  144. data/node_modules/bulma/sass/layout/_all.sass +1 -0
  145. data/node_modules/bulma/sass/layout/hero.sass +4 -2
  146. data/node_modules/bulma/sass/utilities/_all.sass +1 -0
  147. data/node_modules/bulma/sass/utilities/derived-variables.sass +2 -1
  148. data/node_modules/bulma/sass/utilities/functions.sass +5 -0
  149. data/node_modules/bulma/sass/utilities/initial-variables.sass +1 -0
  150. data/node_modules/bulma/sass/utilities/mixins.sass +24 -0
  151. data/package-lock.json +13 -6
  152. data/package.json +2 -2
  153. metadata +100 -31
  154. data/node_modules/bulma-block-list/docs/demo.css +0 -7241
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 365edf96f993fdb04ab7a6a17438e902546e21b7
4
- data.tar.gz: 88e83adb658f7cda5708136893e8b0f98f3fc004
2
+ SHA256:
3
+ metadata.gz: d810060e0eec98758c417783dd55371be2a45bb153181abd275d5dd5c652b237
4
+ data.tar.gz: 7dc31995e73b1924ebeca83c2a7ebb3cce43ca6463be9c39539f2b453c64a4d4
5
5
  SHA512:
6
- metadata.gz: 5bad6e57b63ca40367551dba6f41a881db24871bb643dd61de2a9df24f26585adb40c9635356ba65576219b4bb9645ee4fcd2f147b9aeebd67514ec94edb6d6a
7
- data.tar.gz: 3242a63eca3d967ab9902e3f74de37660044a26c4ff56dab6bdf1a2011f68fcb9c51032c11acd69f720939a6c50a9b1eddbedb978152eb3068226c9754aa41a8
6
+ metadata.gz: c853f3b596c4b0a8658251a52e9dd601b4f04c7910cd1b7705f69de0282354ce7a70e805c70ccbd9da255e80f0b67a037205843346b534ea0a6f7cde4e432523
7
+ data.tar.gz: 168f4189d2ef90b0cacc141e1b96a969ae9ccc87c0533c3c474557024a3cf274819a5dfafb55c5871d6fcd0a3f24bb9a8d8e1bd2d728a7ac6abfcf3de251aae9
data/README.md CHANGED
@@ -18,6 +18,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
18
18
  * [Sidebar Visibility](#sidebar-visibility)
19
19
  * [Menubar](#menubar)
20
20
  * [Tabs](#tabs)
21
+ * [Notifications](#notifications)
21
22
  * [Google Analytics](#google-analytics)
22
23
  * [Footer](#footer)
23
24
  * [Products](#products)
@@ -26,6 +27,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
26
27
  * [Favicon](#favicon)
27
28
  * [Showcases](#showcases)
28
29
  * [Sponsors](#sponsors)
30
+ * [Gallery](#gallery)
29
31
  * [Disqus](#disqus)
30
32
  * [Contributing](#contributing)
31
33
  * [Development](#development)
@@ -98,6 +100,19 @@ paginate_path: "/blog/page:num"
98
100
 
99
101
  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
100
102
 
103
+ #### Post Excerpt and Summary
104
+
105
+ By default the blog page and the latest posts will use the automatically generated post excerpt. If you would like to override this you can set the summary in the post's front matter.
106
+
107
+ ```yaml
108
+ layout: post
109
+ title: The post title
110
+ summary: |-
111
+ This is the custom summary for the post.
112
+
113
+ It can be in **markdown format** if required.
114
+ ```
115
+
101
116
  #### Social Share Buttons
102
117
 
103
118
  Share buttons will be displayed on your posts unless you hide them by adding `hide_share_buttons: true` to your config file.
@@ -254,6 +269,13 @@ You can add icons to your tab by passing in the [Font Awesome icon class](https:
254
269
 
255
270
  If you don't wish to show icons then simply omit the option from your yaml file.
256
271
 
272
+ ### Notifications
273
+
274
+ You can include a notification in a page or post using the below include. The message is required but the status defaults to 'is-warning' and the icon defaults to 'fas fa-exclamation-circle', but can be overwritten by setting the values in the includes. The message can also be written in Markdown format.
275
+
276
+ ```liquid
277
+ {% include notification.html message="This is the message for the notification" %}
278
+ ```
257
279
 
258
280
  ### Google Analytics
259
281
 
@@ -516,6 +538,45 @@ title: My Sponsors Page
516
538
  sponsors: my_sponsors
517
539
  ```
518
540
 
541
+ ### Gallery
542
+
543
+ Display a simple image gallery on a page, with image descriptions.
544
+
545
+ #### Create an image gallery data file
546
+
547
+ Start by creating a gallery data file using the below format, for example `my_gallery.yml`.
548
+
549
+ ```yaml
550
+ - title: Image Gallery Title
551
+ images:
552
+ - link: https://via.placeholder.com/800x450
553
+ large_link: https://via.placeholder.com/1200x675
554
+ alt: The alt text for the image
555
+ description: |-
556
+ The image description can be written in **markdown** if required
557
+ ratio: is-16by9
558
+ - link: https://via.placeholder.com/800x600
559
+ large_link: https://via.placeholder.com/1200x675
560
+ alt: The alt text for the image
561
+ description: The image description
562
+ ratio: is-4by3
563
+ ```
564
+
565
+ * If a ratio is not provided it will default to 16 by 9. Use [Bulma image](https://bulma.io/documentation/elements/image/) classes to define the image ratio required.
566
+ * The description can be plain text or it can be markdown if required.
567
+ * The alt will be used as the images alt text.
568
+ * The large_link displays in a modal when the image is clicked
569
+
570
+ #### Displaying the gallery
571
+
572
+ In your pages front matter add a gallery with the datafiles filename without the extension.
573
+
574
+ ```yaml
575
+ layout: page
576
+ title: My Image Gallery
577
+ gallery: my_gallery
578
+ ```
579
+
519
580
  ### Disqus
520
581
 
521
582
  Disqus comments are available for posts. To be able to use them, you need to set your disqus shortname in `_config.yml`. Then you need to set your Jekyll environment to production:
@@ -7,7 +7,7 @@
7
7
  {% for callout in callouts.items %}
8
8
  <div class="column is-4 has-text-centered">
9
9
  {% if callout.icon %}
10
- <div class="icon is-large">
10
+ <div class="icon callout-icon">
11
11
  {% if callout.icon_brand %}
12
12
  <i class="fab {{ callout.icon }} fa-4x"></i>
13
13
  {% else %}
@@ -25,7 +25,7 @@
25
25
  {% endif %}
26
26
 
27
27
  {% if callout.call_to_action_name %}
28
- <a href="{{ callout.call_to_action_link | absolute_url }}" class="button is-primary">
28
+ <a href="{{ callout.call_to_action_link | relative_url }}" class="button is-primary">
29
29
  {{ callout.call_to_action_name }}
30
30
  </a>
31
31
  {% endif %}
@@ -6,7 +6,7 @@
6
6
  {% for item in site.data[site.footer_menu] %}
7
7
  <div class="column has-text-centered">
8
8
  <div>
9
- <a href="{{ item.link | absolute_url }}" class="link">{{ item.name }}</a>
9
+ <a href="{{ item.link | relative_url }}" class="link">{{ item.name }}</a>
10
10
  </div>
11
11
  </div>
12
12
  {% endfor %}
@@ -0,0 +1,25 @@
1
+ {% if page.gallery %}
2
+ {% assign galleries=site.data.[page.gallery] %}
3
+ {% for gallery in galleries %}
4
+ <div class="columns is-multiline">
5
+ <div class="column is-12">
6
+ <p class="title is-3 has-text-centered">{{ gallery.title }}</p>
7
+ </div>
8
+ {% for image in gallery.images %}
9
+ <div class="column is-4-desktop is-6-tablet">
10
+ <div class="card">
11
+ <div class="card-image">
12
+ {% include image-modal.html ratio=image.ratio link=image.link alt=image.alt large_link=image.large_link %}
13
+ </div>
14
+ <div class="card-content">
15
+ <div class="content">
16
+ {{ image.description | markdownify }}
17
+ </div>
18
+
19
+ </div>
20
+ </div>
21
+ </div>
22
+ {% endfor %}
23
+ </div>
24
+ {% endfor %}
25
+ {% endif %}
@@ -4,8 +4,9 @@
4
4
  <title>{{ page.title }} - {{ site.title }}</title>
5
5
  <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
6
6
  <link rel="shortcut icon" type="image/png"
7
- {% if site.favicon %} href="{{ site.favicon | absolute_url }}" {% else %} href="{{ site.baseurl }}/favicon.png" {% endif %}
7
+ {% if site.favicon %} href="{{ site.favicon | relative_url }}" {% else %} href="{{ site.baseurl }}/favicon.png" {% endif %}
8
8
  />
9
+ <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.7.0/dist/alpine.min.js" defer></script>
9
10
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
10
11
  {% unless site.hide_share_buttons %}
11
12
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-social@1/bin/bulma-social.min.css">
@@ -18,15 +18,15 @@
18
18
  {% for item in site.data.navigation %}
19
19
  {% if item.dropdown %}
20
20
  <div class="navbar-item has-dropdown is-hoverable">
21
- <a href="{{ item.link | absolute_url }}" class="navbar-link {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
21
+ <a href="{{ item.link | relative_url }}" class="navbar-link {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
22
22
  <div class="navbar-dropdown">
23
23
  {% for subitem in item.dropdown %}
24
- <a href="{{ subitem.link | absolute_url }}" class="navbar-item {% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a>
24
+ <a href="{{ subitem.link | relative_url }}" class="navbar-item {% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a>
25
25
  {% endfor %}
26
26
  </div>
27
27
  </div>
28
28
  {% else %}
29
- <a href="{{ item.link | absolute_url }}" class="navbar-item {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
29
+ <a href="{{ item.link | relative_url }}" class="navbar-item {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
30
30
  {% endif %}
31
31
  {% endfor %}
32
32
  {% endif %}
@@ -4,7 +4,7 @@
4
4
  <h1 class="title is-2">{{ page.title }}</h1>
5
5
  <p class="subtitle is-3">{{ page.subtitle }}</p>
6
6
  {% if page.hero_link %}
7
- <a href="{{ page.hero_link | absolute_url }}" class="button is-info is-large">{{ page.hero_link_text }}</a>
7
+ <a href="{{ page.hero_link | relative_url }}" class="button is-info is-large">{{ page.hero_link_text }}</a>
8
8
  {% endif %}
9
9
  </div>
10
10
  </div>
@@ -0,0 +1,18 @@
1
+ <div x-data="{ open: false }">
2
+ <a @click="open = true" title="View large image">
3
+ <figure class="image {{ include.ratio | default: is-16by9 }}">
4
+ <img src="{{ include.link | absolute_url }}" alt="{{ include.alt }}">
5
+ </figure>
6
+ </a>
7
+ <div class="modal" :class="{ 'is-active': open }">
8
+ <div class="modal-background" @click="open = false"></div>
9
+ <div class="modal-content">
10
+ {% if include.large_link %}
11
+ <img src="{{ include.large_link | absolute_url }}" alt="{{ include.alt }}">
12
+ {% else %}
13
+ <img src="{{ include.link | absolute_url }}" alt="{{ include.alt }}">
14
+ {% endif %}
15
+ </div>
16
+ <button class="modal-close is-large" aria-label="close" @click="{ open = false }"></button>
17
+ </div>
18
+ </div>
@@ -6,11 +6,11 @@
6
6
  <ul class="menu-list">
7
7
  {% for item in menu.items %}
8
8
  <li>
9
- <a href="{{ item.link | absolute_url }}" class="{% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
9
+ <a href="{{ item.link | relative_url }}" class="{% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
10
10
  {% if item.items %}
11
11
  <ul>
12
12
  {% for subitem in item.items %}
13
- <li><a href="{{ subitem.link | absolute_url }}" class="{% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a></li>
13
+ <li><a href="{{ subitem.link | relative_url }}" class="{% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a></li>
14
14
  {% endfor %}
15
15
  </ul>
16
16
  {% endif %}
@@ -0,0 +1,10 @@
1
+ <div class="notification {{ include.status | default: 'is-warning' }}" markdown="0">
2
+ <article class="media">
3
+ <div class="media-left">
4
+ <span class="icon"><i class="{{ include.icon | default: 'fas fa-exclamation-circle' }} fa-lg"></i></span>
5
+ </div>
6
+ <div class="media-content">
7
+ <div class="content">{{ include.message | markdownify }}</div>
8
+ </div>
9
+ </article>
10
+ </div>
@@ -13,7 +13,11 @@
13
13
  {% if post.image %}
14
14
  <a class="title is-4" href="{{ site.baseurl }}{{ post.url }}">{{ post.title}}</a>
15
15
  {% endif %}
16
- <p>{{ post.excerpt }}</p>
16
+ {% if post.summary %}
17
+ {{ post.summary | markdownify }}
18
+ {% else %}
19
+ <p>{{ post.excerpt }}</p>
20
+ {% endif %}
17
21
  </div>
18
22
  <div class="has-text-centered">
19
23
  <a href="{{ site.baseurl }}{{ post.url }}" class="button is-primary">Read more</a>
@@ -8,7 +8,7 @@
8
8
  {% for item in showcase.items %}
9
9
  <section class="showcase">
10
10
  <figure class="image {% if item.image_ratio %} {{ item.image_ratio }} {% else %} is-16by9 {% endif %}">
11
- <img src="{{ item.image | absolute_url }}" />
11
+ <img src="{{ item.image | relative_url }}" />
12
12
  </figure>
13
13
  <div class="showcase-content">
14
14
  <div class="columns is-centered">
@@ -5,7 +5,7 @@
5
5
  <ul>
6
6
  {% for tab in tabs.items %}
7
7
  <li {% if tab.link == page.url %} class="is-active" {% endif %}>
8
- <a href="{{ tab.link | absolute_url }}">
8
+ <a href="{{ tab.link | relative_url }}">
9
9
  {% if tab.icon %}
10
10
  <span class="icon is-small"><i class="fas {{ tab.icon }}" aria-hidden="true"></i></span>
11
11
  {% endif %}
@@ -0,0 +1,8 @@
1
+ <figure class="image is-16by9">
2
+ <iframe class="has-ratio"
3
+ src="https://www.youtube.com/embed/{{ include.video }}?showinfo=0"
4
+ frameborder="0"
5
+ allowfullscreen
6
+ >
7
+ </iframe>
8
+ </figure>
@@ -26,6 +26,7 @@
26
26
  {% include tabs.html %}
27
27
  {% include showcase.html %}
28
28
  {% include sponsors.html %}
29
+ {% include gallery.html %}
29
30
  {{ content }}
30
31
  </div>
31
32
  {% if site.posts and page.show_sidebar %}
@@ -14,7 +14,7 @@ show_sidebar: false
14
14
  {% for product in sorted_products %}
15
15
  <div class="column is-4-desktop is-6-tablet">
16
16
 
17
- <a href="{{ product.url | absolute_url }}">
17
+ <a href="{{ product.url | relative_url }}">
18
18
 
19
19
  <div class="card">
20
20
 
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: post
3
+ title: Example post with a summary
4
+ summary: |-
5
+ This is the custom summary for the post.
6
+
7
+ It can be in **markdown format** if required.
8
+ ---
9
+
10
+ This is the text for the post. It won't be used as the excerpt as it will use the custom summary set in the post instead.
11
+
12
+ If the summary is not set it will use the default excerpt generated by Jekyll.
13
+
14
+ To use a custom summary, set the `summary` in the post's front matter.
15
+
16
+ ```yaml
17
+ layout: post
18
+ title: Example post with a summary
19
+ summary: |-
20
+ This is the custom summary for the post.
21
+
22
+ It can be in **markdown format** if required.
23
+ ```
@@ -20,4 +20,18 @@ div.highlight {
20
20
 
21
21
  .hero-darken {
22
22
  background-color: rgba($hero-darken, 0.5);
23
+ }
24
+
25
+ .content {
26
+ figure {
27
+ margin: 0;
28
+ }
29
+ }
30
+
31
+ .callout {
32
+ &-icon {
33
+ width: 4rem;
34
+ height: 4rem;
35
+ margin-bottom: 0.75rem;
36
+ }
23
37
  }
@@ -7,6 +7,8 @@ $primary: #188eac !default;
7
7
  $tabs-link-active-color: $primary;
8
8
  $tabs-link-active-border-bottom-color: $primary;
9
9
 
10
+ $modal-content-width: 800px;
11
+
10
12
  @import "../node_modules/bulma/bulma.sass";
11
13
  $hero-darken: $dark !default;
12
14
 
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gem "bulma-clean-theme", '0.8'
3
+ gem 'github-pages', group: :jekyll_plugins
@@ -0,0 +1,15 @@
1
+ title: Bulma Block List
2
+ description: >- # this means to ignore newlines until "baseurl:"
3
+ Bulma Block List is a simple scss package extending Bulma with block style list elements
4
+ baseurl: "/bulma-block-list"
5
+ url: "https://www.csrhymes.com"
6
+ gh_sponsor: chrisrhymes
7
+ favicon: /favicon.ico
8
+ google_analytics: UA-49024852-2
9
+ remote_theme: chrisrhymes/bulma-clean-theme
10
+
11
+ # Build settings
12
+ markdown: kramdown
13
+ plugins:
14
+ - jekyll-feed
15
+ - github-pages
@@ -0,0 +1,20 @@
1
+ - label: Docs
2
+ items:
3
+ - name: How To Use
4
+ link: '/#how-to-use'
5
+ - name: Alignment
6
+ link: '/#alignment'
7
+ - name: Sizes
8
+ link: '/#sizes'
9
+ - name: Colours
10
+ link: '/#colours'
11
+ - name: Outlined
12
+ link: '/#outlined'
13
+ - name: Has Radius
14
+ link: '/#has-radius'
15
+ - name: Is Highlighted
16
+ link: '/#highlighted'
17
+ - name: List Item Overrides
18
+ link: '/#list-item-overrides'
19
+ - name: Combinations
20
+ link: '/#combinations'
@@ -0,0 +1,92 @@
1
+ @charset "utf-8";
2
+
3
+ $block-list-separator: 0.25rem !default;
4
+ $block-list-highlight-width: 5px !default;
5
+
6
+ .content {
7
+ ul.block-list {
8
+ list-style: none;
9
+ margin-left: 0;
10
+ }
11
+ }
12
+
13
+ .block-list {
14
+ list-style: none;
15
+
16
+ li {
17
+ padding: ($gap / 2);
18
+ background: $light;
19
+ margin-bottom: $block-list-separator;
20
+ }
21
+
22
+ li.is-left,
23
+ &.is-left > li {
24
+ text-align: left;
25
+ }
26
+
27
+
28
+ li.is-centered,
29
+ &.is-centered > li {
30
+ text-align: center;
31
+ }
32
+
33
+ li.is-right,
34
+ &.is-right > li {
35
+ text-align: right;
36
+ }
37
+
38
+ li.is-small,
39
+ &.is-small > li {
40
+ font-size: $small-font-size;
41
+ padding: ($gap / 3);
42
+ }
43
+
44
+ li.is-normal,
45
+ &.is-normal > li {
46
+ font-size: $body-font-size;
47
+ }
48
+
49
+ li.is-large,
50
+ &.is-large > li {
51
+ font-size: $size-large;
52
+ }
53
+
54
+ li.has-radius,
55
+ &.has-radius > li {
56
+ border-radius: $radius;
57
+ }
58
+
59
+ li.is-highlighted,
60
+ &.is-highlighted > li {
61
+ border-left: $block-list-highlight-width $dark solid;
62
+ }
63
+
64
+ @each $name, $pair in $colors {
65
+
66
+ $color: nth($pair, 1);
67
+ $color-invert: nth($pair, 2);
68
+
69
+ li.is-#{$name},
70
+ &.is-#{$name} > li {
71
+ background: $color;
72
+ color: $color-invert;
73
+ }
74
+
75
+ &.is-#{$name} {
76
+ li.is-outlined,
77
+ &.is-outlined > li {
78
+ background: transparent;
79
+ color: $color;
80
+ border: 1px solid $color;
81
+ }
82
+
83
+ li.is-highlighted,
84
+ &.is-highlighted > li {
85
+ background: transparent;
86
+ color: $color;
87
+ border: 1px solid $color;
88
+ border-left: $block-list-highlight-width $color solid;
89
+ }
90
+ }
91
+ }
92
+ }