Add new art, fixup art RSS
All checks were successful
Deploy / Deploy Website (push) Successful in 35s

Sensitive media now show up in the RSS feed, and comics are shown with
all of their panels.
This commit is contained in:
Joshua Goins 2025-05-04 11:12:31 -04:00
parent f6340526ce
commit 281a6c6255
3 changed files with 42 additions and 11 deletions

View file

@ -0,0 +1,20 @@
{
"date": "2025-05-04",
"title": "hear me out",
"tags": ["Comic"],
"type": "Comic",
"characters": ["Juritta"],
"mastodon_url": "https://mastodon.art/@redstrate/114450058324809597",
"bluesky_url": "https://bsky.app/profile/redstrate.com/post/3loe36s3jkk2b",
"program": "Krita",
"pages": [
{
"filename": "hearmeout",
"alt_text": "Drawing of a Viera from Final Fantasy XIV Online in a car. She is wearing the Leisurewear Attire (a torn crop top and sweat pants.) Her big rabbit ears are hitting the ceiling of the car, and there's a giant red cross in the picture.'"
},
{
"filename": "hearmeout-2",
"alt_text": "Drawing of a Viera from Final Fantasy XIV Online in a car. She is wearing the Leisurewear Attire (a torn crop top and sweat pants.) Her big rabbit ears are going through a small opening in the ceiling, and there's a giant green checkmark in the picture."
}
]
}

File diff suppressed because one or more lines are too long

View file

@ -50,9 +50,8 @@
{{ range $pages }} {{ range $pages }}
{{ $isguest := (.Param "guest") }} {{ $isguest := (.Param "guest") }}
{{ $exclude := (.Param "excludefeed") }} {{ $exclude := (.Param "excludefeed") }}
{{ $isnsfw := (.Param "nsfw") }}
{{ if and (and (not $isguest) (not $exclude)) (not $isnsfw) }} {{ if (and (not $isguest) (not $exclude)) }}
<item> <item>
{{ with .Title }} {{ with .Title }}
<title>{{ . }}</title> <title>{{ . }}</title>
@ -83,17 +82,29 @@
{{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host .Params.slug }} {{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host .Params.slug }}
<a aria-label="Gallery Item" class="no-decoration grid-item" href="{{ .Permalink }}"> <a aria-label="Gallery Item" class="no-decoration grid-item" href="{{ .Permalink }}">
{{ $title := .Title }} {{ $title := .Title }}
{{ $year := .Date.Format "2006" }} {{ $year := .Date.Format "2006" }}
{{ if .Params.comic }}
{{ range .Params.pages }}
{{ $full := printf "%s/art/%s.avif" $.Site.Params.image_host .filename }}
{{ $jpeg := printf "%s/art/%s.jpg" $.Site.Params.image_host .filename}}
<picture>
<source srcset="{{ $full }}" type="image/avif"/>
<img style="display: block; max-height: 500px; margin-left: auto; margin-right: auto; width: auto; max-width: 100%; height: auto" alt="{{ .alt_text }}" src="{{ $jpeg }}"/>
</picture>
{{ end }}
{{ else }}
<picture> <picture>
<source srcset="{{ $full }}" type="image/avif" width="{{ $.Params.thumb_width }}" height="{{ $.Params.thumb_height }}"/> <source srcset="{{ $full }}" type="image/avif" width="{{ $.Params.thumb_width }}" height="{{ $.Params.thumb_height }}"/>
<img style="width: 100%; height: auto;" alt="{{ $.Params.alt_text }}" title="{{ $title }} ({{ $year }})" width="{{ $.Params.thumb_width }}" height="{{ $.Params.thumb_height }}" src="{{ $jpeg }}"/> <img style="display: block; max-height: 500px; margin-left: auto; margin-right: auto; width: auto; max-width: 100%; height: auto" alt="{{ $.Params.alt_text }}" title="{{ $title }} ({{ $year }})" width="{{ $.Params.thumb_width }}" height="{{ $.Params.thumb_height }}" src="{{ $jpeg }}"/>
</picture> </picture>
{{ end }}
</a> </a>
{{ with .Params.program }} {{ with .Params.program }}
<p>Created with: {{ . }}</p> <p><b>Created with:</b> {{ . }}</p>
{{ end }} {{ end }}
{{ with .Content }} {{ with .Content }}