Set tab title to current song

This commit is contained in:
Sijmen 2023-04-27 04:43:00 +02:00
parent 21387e0834
commit 4dc3368da9
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -1,5 +1,12 @@
{# #} {# #}
<!DOCTYPE html> <!DOCTYPE html>
<script>
{% if let Some(name) = name %}
document.title = "{{ name }} - Empede";
{% else %}
document.title = "Empede";
{% endif %}
</script>
<div class="nowplaying"> <div class="nowplaying">
<div class="current"> <div class="current">
{% if let Some(song) = song %} {% if let Some(song) = song %}