Add blog share images
@ -46,6 +46,9 @@
|
||||
{% if page.share_description %}
|
||||
<meta property="og:description" content="{{ page.share_description }}">
|
||||
<meta name="twitter:description" content="{{ page.share_description }}">
|
||||
{% elsif page.layout == 'post' %}
|
||||
<meta property="og:description" content="{{ page.content | strip_html | truncate: 400, '…' }}">
|
||||
<meta name="twitter:description" content="{{ page.content | strip_html | truncate: 400, '…' }}">
|
||||
{% else %}
|
||||
<meta property="og:description" content="{{ site.description }}">
|
||||
<meta name="twitter:description" content="{{ site.description }}">
|
||||
@ -54,6 +57,9 @@
|
||||
{% if page.share_image %}
|
||||
<meta property="og:image" content="{{ site.url }}{{ page.share_image }}">
|
||||
<meta name="twitter:image" content="{{ site.url }}{{ page.share_image }}">
|
||||
{% elsif page.layout == 'post' %}
|
||||
<meta property="og:image" content="{{ site.url }}/images/blog/share/{{ page.id | slice: 12,page.id.size }}.png">
|
||||
<meta name="twitter:image" content="{{ site.url }}/images/blog/share/{{ page.id | slice: 12,page.id.size }}.png">
|
||||
{% else %}
|
||||
<meta property="og:image" content="{{ site.url }}/images/bulma-banner.png">
|
||||
<meta name="twitter:image" content="{{ site.url }}/images/bulma-banner.png">
|
||||
|
@ -37,6 +37,14 @@ route: blog
|
||||
<div class="content is-medium">
|
||||
{{ content }}
|
||||
</div>
|
||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
||||
{% if page.previous.url %}
|
||||
<a class="pagination-previous" href="{{ page.previous.url }}">Previous post</a>
|
||||
{% endif %}
|
||||
{% if page.next.url %}
|
||||
<a class="pagination-next" href="{{ page.next.url }}">Next post</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Bulma is on Patreon!"
|
||||
layout: post
|
||||
introduction: "Fix your navbar at the top or bottom"
|
||||
introduction: "Support Bulma's future"
|
||||
color: "primary"
|
||||
name: "Bulma on Patreon"
|
||||
icon: "patreon"
|
||||
|
@ -91,6 +91,10 @@
|
||||
&.is-single
|
||||
margin-bottom: 2rem
|
||||
width: 100%
|
||||
&.is-share
|
||||
height: 315px
|
||||
margin: 2rem auto
|
||||
width: 600px
|
||||
|
||||
.bd-article-overlay
|
||||
+overlay
|
||||
|
@ -11775,6 +11775,12 @@ svg {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bd-article-image.is-share {
|
||||
height: 315px;
|
||||
margin: 2rem auto;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
.bd-article-overlay {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
|
BIN
docs/images/blog/share/access-previous-bulma-versions.jpg
Normal file
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 26 KiB |
BIN
docs/images/blog/share/bulma-bootstrap-comparison.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
docs/images/blog/share/bulma-is-on-patreon.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
docs/images/blog/share/bulma-supports-font-awesome-5.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
docs/images/blog/share/fixed-navbar.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
docs/images/blog/share/list-of-buttons.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
docs/images/blog/share/list-of-tags.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
docs/images/blog/share/metro-ui-css-grid-with-bulma-tiles.jpg
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
docs/images/blog/share/new-field-element.jpg
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
docs/images/blog/share/roses-are-red-links-are-blue.jpg
Normal file
After Width: | Height: | Size: 52 KiB |