This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/includes/partials/blocks/now-playing.liquid

9 lines
No EOL
394 B
Text

<script type="module" src="/assets/scripts/components/api-text.js?v={% appVersion %}" crossorigin="anonymous"></script>
<api-text api-url="/api/now-playing">
<p class="loading">🎧 Loading...</p>
<p class="content"></p>
<noscript>
{%- assign track = music.recent | first -%}
<p>🎧 {{ track.title }} <a href="{{ track.url }}">{{ track.artist }}</a></p>
</noscript>
</api-text>