Fix website transfer includes

This commit is contained in:
Jeremy Thomas
2024-03-21 16:39:38 +00:00
parent 69877a652c
commit ab5b308f88
29 changed files with 444 additions and 890 deletions

View 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>

View 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 %}

View 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>

View 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>

View 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 }}">

View 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 }}">

View 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>