mirror of
https://github.com/jgthms/bulma
synced 2026-03-17 19:04:30 -07:00
Fix website transfer includes
This commit is contained in:
30
docs/_includes/docs/components/hero.html
Normal file
30
docs/_includes/docs/components/hero.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% capture hero_body %}
|
||||
<div class="bd-hero-body">
|
||||
<div class="bd-hero-heading">
|
||||
<h1 class="title algolia-lvl0">
|
||||
{% if include.icon %}
|
||||
<span class="icon">
|
||||
<i class="{{ include.icon }}"></i>
|
||||
</span>
|
||||
{% endif %}
|
||||
{{ include.title | markdownify }}
|
||||
</h1>
|
||||
<div class="subtitle is-4 algolia-lvl1">
|
||||
{{ include.subtitle | markdownify }}
|
||||
</div>
|
||||
{{ include.content }}
|
||||
</div>
|
||||
</div>
|
||||
{% endcapture %}
|
||||
|
||||
<section class="hero bd-hero bd-is-{{ include.color }}">
|
||||
<div class="hero-body">
|
||||
{% if page.fullwidth %}
|
||||
{{ hero_body }}
|
||||
{% else %}
|
||||
<div class="container">
|
||||
{{ hero_body }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
16
docs/_includes/docs/elements/backers-paragraph.html
Normal file
16
docs/_includes/docs/elements/backers-paragraph.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% if site.data.backers[include.tier].size > 0 or site.data.github[include.tier].size > 0 %}
|
||||
<h2>{{ include.title }}</h2>
|
||||
|
||||
<ul>
|
||||
{% for pt in site.data.backers[include.tier] reversed %}
|
||||
<li>
|
||||
{{ pt.name }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% for gh in site.data.github[include.tier] reversed %}
|
||||
<li>
|
||||
{{ gh }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
9
docs/_includes/docs/elements/banner.html
Normal file
9
docs/_includes/docs/elements/banner.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<section class="bd-banner bd-is-{{ include.color }}">
|
||||
<div class="bd-banner-body">
|
||||
<p class="bd-banner-title">
|
||||
{{ include.title }}
|
||||
</p>
|
||||
|
||||
{{ include.more }}
|
||||
</div>
|
||||
</section>
|
||||
34
docs/_includes/docs/elements/post.html
Normal file
34
docs/_includes/docs/elements/post.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{% assign date = post.date | date: "%B %-d" %}
|
||||
{% assign title = post.title | markdownify %}
|
||||
{% assign introduction = post.introduction | markdownify %}
|
||||
|
||||
<div class="bd-post {% if post.featured %}is-featured{% endif %}">
|
||||
<a class="bd-post-link" href="{{ site.url }}{{ post.url }}" style="--color: var(--{{ post.color }});">
|
||||
<div class="bd-post-body">
|
||||
<figure class="icon">
|
||||
<i class="{% if post.icon_brand %}fab{% elsif post.icon_regular %}far{% else %}fas{% endif %} fa-{{ post.icon }}"></i>
|
||||
</figure>
|
||||
|
||||
<div class="bd-post-content">
|
||||
<h2 class="title">
|
||||
{{ title }}
|
||||
</h2>
|
||||
<div class="subtitle">
|
||||
{{ introduction }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if post.image %}
|
||||
<figure class="bd-post-image">
|
||||
<img
|
||||
src="https://source.unsplash.com/{{ post.image }}/400x240"
|
||||
srcset="https://source.unsplash.com/{{ post.image }}/400x240 1x,
|
||||
https://source.unsplash.com/{{ post.image }}/800x480 2x"
|
||||
alt="{{ post.alt }}"
|
||||
width="400"
|
||||
height="240">
|
||||
</figure>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
7
docs/_includes/docs/elements/responsive-image-2x.html
Normal file
7
docs/_includes/docs/elements/responsive-image-2x.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<img
|
||||
src="{{ site.url }}/images/{{ include.path }}.{{ include.extension }}"
|
||||
srcset="{{ site.url }}/images/{{ include.path }}.{{ include.extension }} 1x,
|
||||
{{ site.url }}/images/{{ include.path }}@2x.{{ include.extension }} 2x"
|
||||
alt="{{ include.alt }}"
|
||||
width="{{ include.width }}"
|
||||
height="{{ include.height }}">
|
||||
8
docs/_includes/docs/elements/responsive-image.html
Normal file
8
docs/_includes/docs/elements/responsive-image.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<img
|
||||
src="{{ site.url }}/images/{{ include.path }}.{{ include.extension }}"
|
||||
srcset="{{ site.url }}/images/{{ include.path }}.{{ include.extension }} 1x,
|
||||
{{ site.url }}/images/{{ include.path }}@2x.{{ include.extension }} 2x,
|
||||
{{ site.url }}/images/{{ include.path }}@3x.{{ include.extension }} 3x"
|
||||
alt="{{ include.alt }}"
|
||||
width="{{ include.width }}"
|
||||
height="{{ include.height }}">
|
||||
6
docs/_includes/docs/elements/rss-button.html
Normal file
6
docs/_includes/docs/elements/rss-button.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<a class="button is-rss" href="{{ site.url }}/atom.xml">
|
||||
<span class="icon">
|
||||
<i class="fas fa-rss"></i>
|
||||
</span>
|
||||
<span>Subscribe</span>
|
||||
</a>
|
||||
Reference in New Issue
Block a user