Skip to content

Commit

Permalink
🚀 2023-07-14 11:25:15: publish to www, ipfs, hyper
Browse files Browse the repository at this point in the history
Affected files:
assets/imgs/art/all-crustaceans-really-are-beautiful.jpeg
content/art/all-crustaceans-really-are-beautiful.md
content/art/autumn-pumpkins.md
layouts/partials/art-display.html
layouts/shortcodes/page-gallery.html
  • Loading branch information
errbufferoverfl committed Jul 14, 2023
1 parent 78fc180 commit eaebd10
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion content/art/all-crustaceans-really-are-beautiful.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ title: "All Crustaceans Really Are Beautiful "
alias:
- "All Crustaceans Really Are Beautiful"
created: 2023-07-14T10:49:26+10:00
modified: 2023-07-14T10:57:29+10:00
modified: 2023-07-14T11:19:02+10:00
kofi: "https://ko-fi.com/i/IT6T2N6X0U"
cover: "/imgs/art/all-crustaceans-really-are-beautiful.jpeg"
alt: "An illustration of a stylized cartoon red crab standing on the ocean floor with a banner that reads a crab."
tags:
- oeuvre
- digital painting
Expand Down
3 changes: 2 additions & 1 deletion content/art/autumn-pumpkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ title: "autumn pumpkins"
alias:
- "autumn pumpkins"
created: 2023-06-06T00:00:00+10:00
modified: 2023-06-18T19:55:06+10:00
modified: 2023-07-14T11:20:23+10:00
kofi: "https://ko-fi.com/i/IF1F6LYK3N"
cover: "/imgs/art/autumn-pumpkins.jpg"
alt: "A digital painting of two cheese pumpkins in a notebook."
tags:
- oeuvre
- digital painting
Expand Down
10 changes: 8 additions & 2 deletions layouts/partials/art-display.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ <h2>Recent Art</h2>
<div class="desc">
{{- $img := "" -}}
{{- if and (isset .Params "cover") -}}
{{- $alt := "" -}}
{{- if .Params.alt -}}
{{- $alt = .Params.alt }}
{{- else -}}
{{- $alt = "This image is missing alt text." }}
{{- end -}}
{{- if .Params.kofi -}}
<a href="{{ .Params.kofi }}"><img src="{{ .Params.cover }}" width="200vw"></a>
<a href="{{ .Params.kofi }}"><img src="{{ .Params.cover }}" alt="{{ $alt }}. View of Ko-Fi." width="200vw"></a>
<h3><a href="{{ .Params.kofi }}">{{- .Title -}} on Ko-Fi</a></h3>
{{- else -}}
<a href="{{ .RelPermalink }}"><img src="{{ .Params.cover }}" width="200vw"></a>
<a href="{{ .RelPermalink }}"><img src="{{ .Params.cover }}" alt="{{ $alt }}" width="200vw"></a>
<h3><a href="{{ .RelPermalink }}">{{- .Title -}}</a></h3>
{{- end -}}
{{else}}
Expand Down
12 changes: 9 additions & 3 deletions layouts/shortcodes/page-gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
{{- $img = resources.GetMatch (printf "%s" .Params.cover) -}}
<div class="gallery">
{{- if $img -}}
{{- $resized := $img.Fill "600x600 Center" -}}
<img src="{{ $resized.RelPermalink }}" width="200" alt={{printf "%s" .Params.alt}} />
{{- $resized := $img.Fill "600x600 Center" -}}
{{- $alt := "" -}}
{{- if .Params.alt -}}
{{- $alt = .Params.alt }}
{{- else -}}
{{- $alt = "This image is missing alt text." }}
{{- end -}}
<img src="{{ $resized.RelPermalink }}" width="200" alt="{{ $alt }}" />
{{- else -}}
<img src="/imgs/missing.png" width="200" alt="An illustration of a Pomegrante tree"/>
<img src="/imgs/missing.png" width="200" alt="No image available."/>
{{- end -}}
<h3>{{ .Title }}</h3>
{{- if .Params.kofi -}}
Expand Down

0 comments on commit eaebd10

Please sign in to comment.