mirror of
https://github.com/jgthms/bulma
synced 2026-03-16 18:44:28 -07:00
Add GitHub sponsor button
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<a class="bd-category-name {% if category_id == current_link_id %}is-active{% endif %}" href="{{ site.url }}{{ category_link.path }}">
|
||||
<strong>{{ category_link.name }}</strong>
|
||||
{% if category_link.name == 'Customize' %}
|
||||
<span class="tag is-success">
|
||||
<span class="tag bd-mini-tag is-success">
|
||||
New!
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
7
docs/_includes/elements/github.html
Normal file
7
docs/_includes/elements/github.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<a class="button bd-github-button" href="https://github.com/users/jgthms/sponsorship" target="_blank">
|
||||
<span class="icon">
|
||||
<i class="fas fa-heart"></i>
|
||||
</span>
|
||||
<strong>Sponsor</strong>
|
||||
<em class="tag bd-mini-tag is-small is-success">New!</em>
|
||||
</a>
|
||||
@@ -38,6 +38,7 @@
|
||||
<strong>Monthly</strong> donation
|
||||
</p>
|
||||
<div class="bd-footer-donation-action">
|
||||
{% include elements/github.html %}
|
||||
{% include elements/patreon.html %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,18 +33,19 @@
|
||||
<span class="is-hidden-touch is-hidden-widescreen">
|
||||
Docs
|
||||
</span>
|
||||
<span class="is-hidden-desktop-only">
|
||||
<span class="is-hidden-tablet-only is-hidden-desktop-only">
|
||||
Documentation
|
||||
</span>
|
||||
</a>
|
||||
|
||||
{% for item in site.data.global.navbar_items %}
|
||||
<a class="navbar-item bd-navbar-item-{{ item.id }} {% if page.route == item.id %}is-active{% endif %}" href="{{ site.url }}/{{ item.id }}/">
|
||||
<span class="icon {{ item.color }}">
|
||||
<i class="{{ item.fa_type }} {{ item.fa_icon }}"></i>
|
||||
{% for link_id in site.data.links.navbar %}
|
||||
{% assign link = site.data.links.by_id[link_id] %}
|
||||
<a class="navbar-item bd-navbar-item-{{ link.id }} {% if page.route == link.id %}is-active{% endif %}" href="{{ site.url }}{{ link.path }}/">
|
||||
<span class="icon has-text-{{ link.color }}">
|
||||
<i class="{% if link.icon_brand %}fab{% elsif link.icon_regular %}far{% else %}fas{% endif %} fa-{{ link.icon }}"></i>
|
||||
</span>
|
||||
|
||||
<span>{{ item.title }}</span>
|
||||
<span>{{ link.title }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
@@ -57,7 +58,7 @@
|
||||
<div id="moreDropdown" class="navbar-dropdown">
|
||||
{% for link_id in site.data.links.more %}
|
||||
{% assign link = site.data.links.by_id[link_id] %}
|
||||
<a class="navbar-item {% if page.route == link_id %}is-active{% endif %}" href="{{ site.url }}/{{ link.path }}">
|
||||
<a class="navbar-item {% if page.route == link_id %}is-active{% endif %}" href="{{ site.url }}{{ link.path }}">
|
||||
<span>
|
||||
<span class="icon has-text-{{ link.color }}">
|
||||
<i class="{% if link.icon_brand %}fab{% elsif link.icon_regular %}far{% else %}fas{% endif %} fa-{{ link.icon }}"></i>
|
||||
@@ -90,6 +91,9 @@
|
||||
|
||||
<div class="navbar-item">
|
||||
<div class="field is-grouped is-grouped-multiline">
|
||||
<p class="control">
|
||||
{% include elements/github.html %}
|
||||
</p>
|
||||
<p class="control">
|
||||
{% include elements/patreon.html %}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user