chore: clean up extra space in documents
This commit is contained in:
parent
1bf0e7c3bb
commit
4330f60f32
25 changed files with 123 additions and 124 deletions
|
@ -1,5 +1,5 @@
|
|||
<div class="badge-grid">
|
||||
{% for badge in badges limit: 8 %}
|
||||
{%- for badge in badges limit: 8 -%}
|
||||
<a href="{{ badge.url }}">
|
||||
<img srcset="
|
||||
https://cdn.coryd.dev/{{ badge.image }}?class=w50 50w,
|
||||
|
@ -14,5 +14,5 @@
|
|||
height="31"
|
||||
/>
|
||||
</a>
|
||||
{% endfor %}
|
||||
{%- endfor -%}
|
||||
</div>
|
|
@ -1,6 +1,6 @@
|
|||
{% assign isOldPost = date | oldPost %}
|
||||
{% if isOldPost %}
|
||||
{%- assign isOldPost = date | oldPost -%}
|
||||
{%- if isOldPost -%}
|
||||
<div class="banner old-post">
|
||||
<p>{% tablericon "clock-x" "Old post" %}This post is over 3 years old. I've probably changed my mind since it was written and it <em>could</em> be out of date.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
|
@ -1,19 +1,19 @@
|
|||
{% for block in blocks %}
|
||||
{% if block.type == 'youtube_player' %}
|
||||
{%- for block in blocks -%}
|
||||
{%- if block.type == 'youtube_player' -%}
|
||||
{% render "partials/blocks/youtube-player.liquid", url:block.url %}
|
||||
{% elsif block.type == 'github_banner' %}
|
||||
{%- elsif block.type == 'github_banner' -%}
|
||||
{% render "partials/blocks/banners/github.liquid", url:block.url %}
|
||||
{% elsif block.type == 'npm_banner' %}
|
||||
{%- elsif block.type == 'npm_banner' -%}
|
||||
{% render "partials/blocks/banners/npm.liquid", url:block.url, command:block.command %}
|
||||
{% elsif block.type == 'rss_banner' %}
|
||||
{%- elsif block.type == 'rss_banner' -%}
|
||||
{% render "partials/blocks/banners/rss.liquid", url:block.url, text:block.text %}
|
||||
{% elsif block.type == 'hero' %}
|
||||
{%- elsif block.type == 'hero' -%}
|
||||
{% render "partials/blocks/hero.liquid", image:block.image.filename_disk, alt:block.alt_text %}
|
||||
{% elsif block.type == 'markdown' %}
|
||||
{%- elsif block.type == 'markdown' -%}
|
||||
{{ block.text | markdown }}
|
||||
{% elsif block.type == 'divider' %}
|
||||
{%- elsif block.type == 'divider' -%}
|
||||
{{ block.markup | markdown }}
|
||||
{% elsif block.type == 'addon_links' %}
|
||||
{%- elsif block.type == 'addon_links' -%}
|
||||
{% render "partials/blocks/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
|
@ -1,13 +1,13 @@
|
|||
{% capture js %}
|
||||
{%- capture js -%}
|
||||
{% render "../../../assets/scripts/modal.js" %}
|
||||
{% endcapture %}
|
||||
{%- endcapture -%}
|
||||
<script>{{ js }}</script>
|
||||
{%- capture labelContent -%}
|
||||
{% if icon %}
|
||||
{%- if icon -%}
|
||||
{% tablericon icon label %}
|
||||
{% elsif label %}
|
||||
{%- elsif label -%}
|
||||
{{ label }}
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{% assign modalId = id | default: "modal-controls" %}
|
||||
<input class="modal-input" id="{{ id }}" type="checkbox" tabindex="0" />
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
{% if popularPosts.size > 0 %}
|
||||
{%- if popularPosts.size > 0 -%}
|
||||
<h3 class="flex-centered">
|
||||
{% tablericon "flame" "Popular" %}
|
||||
Popular posts
|
||||
</h3>
|
||||
<ul class="link-list">
|
||||
{% for post in popularPosts limit: 5 %}
|
||||
{%- for post in popularPosts limit: 5 -%}
|
||||
<li>
|
||||
<a class="no-underline" href="{{ post.slug }}" title="{{ post.title | escape}}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
|
@ -1,16 +1,16 @@
|
|||
{% if links.size > 0 %}
|
||||
{%- if links.size > 0 -%}
|
||||
<h3 id="links" class="flex-centered">
|
||||
{% tablericon "link" "Links" %}
|
||||
Recent links
|
||||
</h3>
|
||||
<ul class="link-list">
|
||||
{% for link in links limit: 5 %}
|
||||
{%- for link in links limit: 5 -%}
|
||||
<li>
|
||||
<a href="{{ link.link }}" title="{{ link.title | escape }}">
|
||||
{{ link.title }}
|
||||
</a>
|
||||
{% if link.authors %} via <a href="{{ link.authors.url }}">{{ link.authors.name }}</a>{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
|
Reference in a new issue