mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Remove webring icon
This commit is contained in:
parent
43a3e7c0f8
commit
30f141d4db
1 changed files with 0 additions and 25 deletions
|
@ -1,29 +1,4 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{- partial "posts.html" . -}}
|
||||
<!--svg image with a fallback to a PNG when SVG is unsupported-->
|
||||
{{- $merveilles_svg := resources.GetMatch (printf "/p/merveilles_ring.svg") -}}
|
||||
{{ $merveilles_png := resources.GetMatch (printf "/p/merveilles_ring.png") -}}
|
||||
{{- $merveilles_svg_dark := resources.GetMatch (printf "/p/merveilles_ring_dark.svg") -}}
|
||||
{{ $merveilles_png_dark := resources.GetMatch (printf "/p/merveilles_ring_dark.png") -}}
|
||||
<a href="https://webring.xxiivv.com/#random" target="_blank" rel="noopener"><picture>
|
||||
{{ $merveilles_svg_src := $merveilles_svg_dark | resources.Fingerprint "md5" -}}
|
||||
<source
|
||||
srcset="{{ $merveilles_svg_src.RelPermalink }}"
|
||||
type="image/svg+xml"
|
||||
media="(prefers-color-scheme: dark)">
|
||||
{{ $merveilles_png_src := $merveilles_png_dark | resources.Fingerprint "md5" -}}
|
||||
<source
|
||||
srcset="{{ $merveilles_png_src.RelPermalink }}"
|
||||
type="image/png"
|
||||
media="(prefers-color-scheme: dark)">
|
||||
{{ $merveilles_svg_src := $merveilles_svg | resources.Fingerprint "md5" -}}
|
||||
<source
|
||||
srcset="{{ $merveilles_svg_src.RelPermalink }}"
|
||||
type="image/svg+xml">
|
||||
{{ $merveilles_png_src := $merveilles_png | resources.Fingerprint "md5" -}}
|
||||
<img
|
||||
width="{{ $merveilles_png.Width }}" height="{{ $merveilles_png.Height }}"
|
||||
src="{{ $merveilles_png_src.RelPermalink }}" alt="Merevilles logo">
|
||||
</picture></a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue