chore: fallback now playing content
This commit is contained in:
parent
6bd06f5dcf
commit
d99186caee
5 changed files with 14 additions and 10 deletions
|
@ -1,5 +1,9 @@
|
|||
<script type="module" src="/assets/scripts/components/api-text.js" crossorigin="anonymous"></script>
|
||||
<api-text class="client-side" api-url="/api/now-playing">
|
||||
<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>
|
Reference in a new issue