diff --git a/docs/_config.yml b/docs/_config.yml index dddc81b2..2b84565e 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,7 +1,5 @@ # Meta -title: "Bulma: a modern CSS framework based on Flexbox" -description: "Bulma is an open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free." env: "production" # Build diff --git a/docs/_data/meta.json b/docs/_data/meta.json new file mode 100644 index 00000000..add9f18e --- /dev/null +++ b/docs/_data/meta.json @@ -0,0 +1,11 @@ +{ + "title": "Bulma: a modern CSS framework based on Flexbox", + "description": "Bulma is an open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free.", + "documentation": "/documentation/overview/start/", + "download": "https://github.com/jgthms/bulma/releases/download/0.6.2/bulma-0.6.2.zip", + "github": "https://github.com/jgthms/bulma", + "twitter": "https://twitter.com/jgthms", + "version": "0.6.2", + "book_url": "https://bleedingedgepress.com/creating-interfaces-bulma/", + "book_sample": "http://www.bleedingedgepress.com/book_excerpts/01E9D1/creating_interfaces_with_bulma_sample.pdf" +} \ No newline at end of file diff --git a/docs/_includes/book-banner.html b/docs/_includes/book-banner.html new file mode 100644 index 00000000..5e94afab --- /dev/null +++ b/docs/_includes/book-banner.html @@ -0,0 +1,15 @@ +
+
+
+
+
+
+ {% include book-cover.html %} +
+
+ {% include book-content.html %} +
+
+
+
+
\ No newline at end of file diff --git a/docs/_includes/book-content.html b/docs/_includes/book-content.html new file mode 100644 index 00000000..04e4a7a8 --- /dev/null +++ b/docs/_includes/book-content.html @@ -0,0 +1,39 @@ +
+
+ New! +

The official Bulma book! 😲

+

by Jeremy Thomas, creator of Bulma, Oleksii Potiekhin,
Mikko Lauhakari, Aslam Shah and David Berning

+
+
+

A step-by-step guide that teaches you how to build a web interface from scratch using Bulma.

+
+
+
+
+ Formats included: +
+
+
+ PDF + Epub + Mobi +
+
+
+
+
+ +
+
diff --git a/docs/_includes/book-cover.html b/docs/_includes/book-cover.html new file mode 100644 index 00000000..dc065dd6 --- /dev/null +++ b/docs/_includes/book-cover.html @@ -0,0 +1,12 @@ +
+ + {% + include elements/responsive-image.html + path="book/book-cover" + extension="png" + alt="The official Bulma book cover" + width="300" + height="380" + %} + +
\ No newline at end of file diff --git a/docs/_includes/deprecated.html b/docs/_includes/deprecated.html index 8b238876..c307b3d0 100644 --- a/docs/_includes/deprecated.html +++ b/docs/_includes/deprecated.html @@ -1,7 +1,7 @@ {% if site.deprecated %}

- You are viewing the deprecated {{site.version}} version of the website. + You are viewing the deprecated {{site.data.meta.version}} version of the website. Click here to view the latest version

diff --git a/docs/_includes/elements/responsive-image.html b/docs/_includes/elements/responsive-image.html new file mode 100644 index 00000000..0b2283d1 --- /dev/null +++ b/docs/_includes/elements/responsive-image.html @@ -0,0 +1,7 @@ +{{ include.alt }} diff --git a/docs/_includes/elements/tw-button.html b/docs/_includes/elements/tw-button.html index 4e1b89a8..d48f4f9b 100644 --- a/docs/_includes/elements/tw-button.html +++ b/docs/_includes/elements/tw-button.html @@ -3,7 +3,7 @@ data-social-action="tweet" data-social-target="{{ site.url }}" target="_blank" - href="https://twitter.com/intent/tweet?text={{ site.title | urlencode }}&hashtags=bulmaio&url={{ site.url }}&via=jgthms"> + href="https://twitter.com/intent/tweet?text={{ site.data.meta.title | urlencode }}&hashtags=bulmaio&url={{ site.url }}&via=jgthms"> diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index b9381c2e..453ebd2d 100644 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -1,3 +1,5 @@ +{% include book-banner.html %} + {% include bsa.html %} {% include newsletter.html %} @@ -9,7 +11,7 @@
Bulma by Jeremy Thomas.
- +

An alternative to Bootstrap @@ -24,7 +26,7 @@

- +
diff --git a/docs/_includes/getting-started.html b/docs/_includes/getting-started.html index 872f2088..e89d3066 100644 --- a/docs/_includes/getting-started.html +++ b/docs/_includes/getting-started.html @@ -4,7 +4,7 @@ Hello Bulma! - + diff --git a/docs/_includes/head.html b/docs/_includes/head.html index 3c3d98be..83a87917 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -2,9 +2,9 @@ - + - {% if page.fulltitle %}{{ page.fulltitle }}{% else %}{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}{% endif %} + {% if page.fulltitle %}{{ page.fulltitle }}{% else %}{% if page.title %}{{ page.title }} | {% endif %}{{ site.data.meta.title }}{% endif %} {% if page.fontawesome4 %} @@ -21,7 +21,7 @@ - + @@ -42,8 +42,8 @@ {% else %} - - + + {% endif %} {% if page.share_description %} @@ -53,8 +53,8 @@ {% else %} - - + + {% endif %} {% if page.share_image %} diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 78e9a75c..fa63e9db 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -1,17 +1,17 @@
@@ -829,10 +829,7 @@ document.addEventListener('DOMContentLoaded', function () { diff --git a/docs/documentation/components/pagination.html b/docs/documentation/components/pagination.html index 18d2671f..fb17d828 100644 --- a/docs/documentation/components/pagination.html +++ b/docs/documentation/components/pagination.html @@ -149,7 +149,7 @@ doc-subtab: pagination {% endcapture %} -{% include subnav-components.html %} +{% include subnav/subnav-components.html %}
diff --git a/docs/documentation/components/panel.html b/docs/documentation/components/panel.html index 87ed8d11..d468e380 100644 --- a/docs/documentation/components/panel.html +++ b/docs/documentation/components/panel.html @@ -73,7 +73,7 @@ doc-subtab: panel {% endcapture %} -{% include subnav-components.html %} +{% include subnav/subnav-components.html %}
diff --git a/docs/documentation/components/tabs.html b/docs/documentation/components/tabs.html index b5df9f9d..30e7d103 100644 --- a/docs/documentation/components/tabs.html +++ b/docs/documentation/components/tabs.html @@ -344,7 +344,7 @@ doc-subtab: tabs
{% endcapture %} -{% include subnav-components.html %} +{% include subnav/subnav-components.html %}
diff --git a/docs/documentation/elements/box.html b/docs/documentation/elements/box.html index ca924c5f..d570b6d9 100644 --- a/docs/documentation/elements/box.html +++ b/docs/documentation/elements/box.html @@ -5,7 +5,7 @@ doc-tab: elements doc-subtab: box --- -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %} {% capture box_example %}
diff --git a/docs/documentation/elements/button.html b/docs/documentation/elements/button.html index 7352e7c4..fa1c3d54 100644 --- a/docs/documentation/elements/button.html +++ b/docs/documentation/elements/button.html @@ -448,7 +448,7 @@ doc-subtab: button
{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/content.html b/docs/documentation/elements/content.html index 2a739ffe..60a87137 100644 --- a/docs/documentation/elements/content.html +++ b/docs/documentation/elements/content.html @@ -101,7 +101,7 @@ doc-subtab: content
{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/delete.html b/docs/documentation/elements/delete.html index 0a87f56a..d2ba8d72 100644 --- a/docs/documentation/elements/delete.html +++ b/docs/documentation/elements/delete.html @@ -40,7 +40,7 @@ doc-subtab: delete {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/icon.html b/docs/documentation/elements/icon.html index f34c65a2..970bb3a4 100644 --- a/docs/documentation/elements/icon.html +++ b/docs/documentation/elements/icon.html @@ -48,7 +48,7 @@ doc-subtab: icon {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/image.html b/docs/documentation/elements/image.html index 5f4d38d5..cf7c0328 100644 --- a/docs/documentation/elements/image.html +++ b/docs/documentation/elements/image.html @@ -25,7 +25,7 @@ dimensions: {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/notification.html b/docs/documentation/elements/notification.html index 477ff0a9..3078b595 100644 --- a/docs/documentation/elements/notification.html +++ b/docs/documentation/elements/notification.html @@ -25,7 +25,7 @@ doc-subtab: notification {% endfor %} {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/progress.html b/docs/documentation/elements/progress.html index 869bd482..7e48d809 100644 --- a/docs/documentation/elements/progress.html +++ b/docs/documentation/elements/progress.html @@ -25,7 +25,7 @@ doc-subtab: progress 60% {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/table.html b/docs/documentation/elements/table.html index 02b2c1c9..bfdbfcfa 100644 --- a/docs/documentation/elements/table.html +++ b/docs/documentation/elements/table.html @@ -305,7 +305,7 @@ doc-subtab: table {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/tag.html b/docs/documentation/elements/tag.html index af062837..39582caa 100644 --- a/docs/documentation/elements/tag.html +++ b/docs/documentation/elements/tag.html @@ -124,7 +124,7 @@ doc-subtab: tag
{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %} {% capture tags_blog_addons %}
diff --git a/docs/documentation/elements/title.html b/docs/documentation/elements/title.html index ccc00905..d7178f29 100644 --- a/docs/documentation/elements/title.html +++ b/docs/documentation/elements/title.html @@ -50,7 +50,7 @@ doc-subtab: title

Subtitle 5

{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/form/checkbox.html b/docs/documentation/form/checkbox.html index 6c3032cd..fd80c329 100644 --- a/docs/documentation/form/checkbox.html +++ b/docs/documentation/form/checkbox.html @@ -26,7 +26,7 @@ doc-subtab: checkbox {% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/file.html b/docs/documentation/form/file.html index bdabaaa0..6c44c350 100644 --- a/docs/documentation/form/file.html +++ b/docs/documentation/form/file.html @@ -527,7 +527,7 @@ variables_keys:
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
@@ -743,7 +743,7 @@ variables_keys:

- You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how. + You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how.

diff --git a/docs/documentation/form/general.html b/docs/documentation/form/general.html index 569465a2..392bc8c3 100644 --- a/docs/documentation/form/general.html +++ b/docs/documentation/form/general.html @@ -795,7 +795,7 @@ variables_form_keys:
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/input.html b/docs/documentation/form/input.html index 7fa51dc1..d8c0c5ac 100644 --- a/docs/documentation/form/input.html +++ b/docs/documentation/form/input.html @@ -239,7 +239,7 @@ variables_keys:
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
@@ -490,7 +490,7 @@ variables_keys:

- You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how. + You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how.

diff --git a/docs/documentation/form/radio.html b/docs/documentation/form/radio.html index d8897dad..378f115d 100644 --- a/docs/documentation/form/radio.html +++ b/docs/documentation/form/radio.html @@ -48,7 +48,7 @@ doc-subtab: radio
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/select.html b/docs/documentation/form/select.html index eb9bd04d..48287be4 100644 --- a/docs/documentation/form/select.html +++ b/docs/documentation/form/select.html @@ -270,7 +270,7 @@ doc-subtab: select
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/textarea.html b/docs/documentation/form/textarea.html index 3f47239f..7128f8b8 100644 --- a/docs/documentation/form/textarea.html +++ b/docs/documentation/form/textarea.html @@ -123,7 +123,7 @@ doc-subtab: textarea
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/grid/columns.html b/docs/documentation/grid/columns.html index 4757ddd0..4ccd2441 100644 --- a/docs/documentation/grid/columns.html +++ b/docs/documentation/grid/columns.html @@ -327,7 +327,7 @@ doc-subtab: columns
{% endcapture %} -{% include subnav-grid.html %} +{% include subnav/subnav-grid.html %}
diff --git a/docs/documentation/grid/tiles.html b/docs/documentation/grid/tiles.html index e6260812..d42fded0 100644 --- a/docs/documentation/grid/tiles.html +++ b/docs/documentation/grid/tiles.html @@ -7,7 +7,7 @@ doc-subtab: tiles -{% include subnav-grid.html %} +{% include subnav/subnav-grid.html %}
diff --git a/docs/documentation/layout/container.html b/docs/documentation/layout/container.html index dd398b69..90c099c8 100644 --- a/docs/documentation/layout/container.html +++ b/docs/documentation/layout/container.html @@ -38,7 +38,7 @@ doc-subtab: container
{% endcapture %} -{% include subnav-layout.html %} +{% include subnav/subnav-layout.html %}
diff --git a/docs/documentation/layout/footer.html b/docs/documentation/layout/footer.html index 7eb2a105..7226647f 100644 --- a/docs/documentation/layout/footer.html +++ b/docs/documentation/layout/footer.html @@ -5,7 +5,7 @@ doc-tab: layout doc-subtab: footer --- -{% include subnav-layout.html %} +{% include subnav/subnav-layout.html %} {% capture footer_example %}