chore: image shortcode

This commit is contained in:
Cory Dransfeldt 2024-02-21 07:10:46 -08:00
parent f5da3a1fae
commit b413f9ab16
No known key found for this signature in database
18 changed files with 107 additions and 58 deletions

View file

@ -9,7 +9,7 @@ image: /assets/img/404.jpg
{% endcapture %}
<style>{{ css }}</style>
<div class="four-oh-four__wrapper">
<img src="/assets/img/404.jpg" alt="404 — oops!" class="image__banner" />
{% image './src/assets/img/404.jpg', title, 'image__banner', 'eager' %}
<div class="text--centered">
<h2 class="page__header">{{ title }}</h2>
<h3>What kind of idiots do you have working here?</h3>

View file

@ -9,8 +9,10 @@ image: /assets/img/ogi/about.jpg
{% endcapture %}
<style>{{ css }}</style>
<div class="avatar__wrapper flex--centered">
{% capture about_alt %}{{ meta.siteName }} - image by David Neal / @reverentgeek{% endcapture %}
<img src="/assets/img/avatar.webp" alt="{{ about_alt }}" />
<div class="avatar__wrapper--interior">
{%- capture about_alt -%}{{ meta.siteName }} - image by David Neal / @reverentgeek{%- endcapture -%}
{% image './src/assets/img/avatar.webp', about_alt %}
</div>
</div>
<h2 class="page__header text--centered">Hi, I'm Cory</h2>

View file

@ -9,7 +9,7 @@ image: /assets/img/pages/uses.jpg
Software and services that I use for work and my own enjoyment.
<img src="https://coryd.dev/assets/img/pages/uses.jpg" alt="My desk" class="image__banner" />
{% image 'https://coryd.dev/assets/img/pages/uses.jpg', 'My desk', 'image__banner', 'eager' %}
<h3>Computer setup</h3>