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>
|
|
@ -1,8 +1,8 @@
|
|||
{%- assign artist = artists | first -%}
|
||||
{%- assign artist = music.week.artists | first -%}
|
||||
{%- assign book = books | bookStatus: 'started' | reverse | first -%}
|
||||
{%- assign show = tv.recentlyWatched | first -%}
|
||||
<div class="home-status">
|
||||
<p><strong class="highlight-text">I'm a software developer based in Camarillo, California</strong>. I enjoy hanging out with my beautiful family and 3 rescue dogs, technology, automation, <a href="/music">music</a>, <a href="/posts">writing</a>, <a href="/books">reading</a>, <a href="/watching#tv">tv</a> and <a href="/watching#movies">movies</a>. Lately I've been listening to a lot of <strong class="highlight-text">{{ artist.title }}</strong>, reading <strong class="highlight-text">{{ book.title }}</strong> and watching <strong class="highlight-text">{{ show.name }}</strong>.</p>
|
||||
<p>{{ status.emoji }} {{ status.content }}</p>
|
||||
{% render "partials/blocks/now-playing.liquid" %}
|
||||
{% render "partials/blocks/now-playing.liquid", music:music %}
|
||||
</div>
|
Reference in a new issue