Add new art, fixup art RSS
All checks were successful
Deploy / Deploy Website (push) Successful in 35s
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:
parent
f6340526ce
commit
281a6c6255
3 changed files with 42 additions and 11 deletions
20
data/art/2025/hearmeout.json
Normal file
20
data/art/2025/hearmeout.json
Normal 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
|
@ -50,9 +50,8 @@
|
|||
{{ range $pages }}
|
||||
{{ $isguest := (.Param "guest") }}
|
||||
{{ $exclude := (.Param "excludefeed") }}
|
||||
{{ $isnsfw := (.Param "nsfw") }}
|
||||
|
||||
{{ if and (and (not $isguest) (not $exclude)) (not $isnsfw) }}
|
||||
{{ if (and (not $isguest) (not $exclude)) }}
|
||||
<item>
|
||||
{{ with .Title }}
|
||||
<title>{{ . }}</title>
|
||||
|
@ -83,17 +82,29 @@
|
|||
{{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host .Params.slug }}
|
||||
|
||||
<a aria-label="Gallery Item" class="no-decoration grid-item" href="{{ .Permalink }}">
|
||||
|
||||
{{ $title := .Title }}
|
||||
{{ $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>
|
||||
<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>
|
||||
{{ end }}
|
||||
</a>
|
||||
|
||||
{{ with .Params.program }}
|
||||
<p>Created with: {{ . }}</p>
|
||||
<p><b>Created with:</b> {{ . }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Content }}
|
||||
|
|
Loading…
Add table
Reference in a new issue