88x31 update

This commit is contained in:
Parker TenBroeck 2026-04-25 17:02:44 -04:00
parent 94b8cbf3ce
commit d47c69918b
4 changed files with 16 additions and 2 deletions

View file

@ -1,7 +1,7 @@
+++ +++
title = "88x31" title = "88x31"
description = "My 88x31 badge as well as a few others" description = "My 88x31 badge as well as a few others"
date = 2026-04-24 date = 2026-04-25
[taxonomies] [taxonomies]
tags = ["web", "88x31"] tags = ["web", "88x31"]
@ -16,3 +16,11 @@ I decided to make a 88x31 badge for fun and included a fun little puzzle inside
Here are some badges from people I know/like Here are some badges from people I know/like
{{ badge88x31(link="https://ivytime.gay", src="https://ivytime.gay/badges/ivytime.gay.png", alt="Ivy's badge", new_tab=true) }} {{ badge88x31(link="https://ivytime.gay", src="https://ivytime.gay/badges/ivytime.gay.png", alt="Ivy's badge", new_tab=true) }}
---
other
{{ badge88x31(src="madeon-linux.gif", alt="made on Linux badge") }}
{{ badge88x31(link="https://nixos.org/", src="nixos.png", alt="NixOS badge", new_tab=true) }}

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -1,6 +1,8 @@
{% set is_remote = src is starting_with("http://") or src is starting_with("https://") %} {% set is_remote = src is starting_with("http://") or src is starting_with("https://") %}
{% set is_site_root = src is starting_with("/") %} {% set is_site_root = src is starting_with("/") %}
{% set badge_src = src %} {% set badge_src = src %}
{% set badge_link = link | default(value="") %}
{% set has_link = badge_link != "" %}
{% if is_site_root %} {% if is_site_root %}
{% set badge_src = get_url(path=src) %} {% set badge_src = get_url(path=src) %}
@ -10,12 +12,14 @@
{% set badge_src = get_url(path=local_asset_path) %} {% set badge_src = get_url(path=local_asset_path) %}
{% endif %} {% endif %}
{% if has_link %}
<a <a
href="{{ link }}" href="{{ badge_link }}"
class="badge-88x31" class="badge-88x31"
aria-label="{{ alt | default(value='88x31 badge link') }}" aria-label="{{ alt | default(value='88x31 badge link') }}"
{% if new_tab | default(value=false) %}target="_blank" rel="noopener noreferrer"{% endif %} {% if new_tab | default(value=false) %}target="_blank" rel="noopener noreferrer"{% endif %}
> >
{% endif %}
<img <img
class="badge-88x31" class="badge-88x31"
src="{{ badge_src }}" src="{{ badge_src }}"
@ -25,4 +29,6 @@
loading="lazy" loading="lazy"
decoding="async" decoding="async"
> >
{% if has_link %}
</a> </a>
{% endif %}