55 lines
1.7 KiB
HTML
55 lines
1.7 KiB
HTML
{{ $data := dict }}
|
||
{{ $url := "https://shop.basspistol.com/podcast.rss" }}
|
||
|
||
<section id="discog">
|
||
<div class="section-headers" style="background-image: url(/2025/images/vinyl.webp);">
|
||
<h2>Discography</h2>
|
||
<h4>𝕿𝖍𝖊 𝕾𝖔𝖚𝖓𝖉 𝖔𝖋 𝕱𝖗𝖊𝖊𝖉𝖔𝖒</h4>
|
||
<p>Basspistol's discography is a non-possessive aggregation of cuts recoreded by independent musicians. Getting your music from here implies 100% of your support being channeled straight to the artist. (Minus whatever fees charged by the monetization service they leverage.)
|
||
</p>
|
||
<p>The bellow selection is shuffled every 30 minutes. Is anything picking your curiosity? The random gods may just have something to tell you... Check out the Tienda for more.</p>
|
||
|
||
|
||
</p>
|
||
<a class="button" href="https://shop.basspistol.com">𝕭𝖆𝖘𝖘𝖕𝖎𝖘𝖙𝖔𝖑 𝕿𝖎𝖊𝖓𝖉𝖆 🛖</a>
|
||
</div>
|
||
|
||
|
||
{{ with try (resources.GetRemote $url) }}
|
||
{{ with .Err }}
|
||
{{ errorf "%s" . }}
|
||
{{ else with .Value }}
|
||
{{ $data = . | transform.Unmarshal }}
|
||
{{ else }}
|
||
{{ errorf "Unable to get remote resource %q" $url }}
|
||
{{ end }}
|
||
{{ end }}
|
||
|
||
{{ with $data.channel.item }}
|
||
|
||
{{ range . | shuffle | first 4 }}
|
||
<article>
|
||
|
||
<a href="{{ .link }}" target="_blank">
|
||
|
||
<figure>
|
||
{{ range .image }}
|
||
<img src="{{ . }}" />
|
||
{{ end }}
|
||
<figcaption>
|
||
<h4>{{ .title | safeHTML }}</h4>
|
||
<p>{{ .description | transform.Plainify | safeHTML | truncate 120 }}</p>
|
||
|
||
</figcaption>
|
||
</figure>
|
||
</a>
|
||
</article>
|
||
{{ end }}
|
||
|
||
{{ end }}
|
||
|
||
|
||
<!--<pre>{{ debug.Dump $data }}</pre>-->
|
||
|
||
<article class="section-footers"></article>
|
||
</section>
|