Fixed consistency of attribute quotes, now they are all single quotes.

Title and description are moved out of vars.
Fixed datetime attribute typo. Some text was rephrased.
This commit is contained in:
Alexander Andreev 2022-01-23 21:05:39 +04:00
parent 16008de531
commit 6f00c77a11
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -7,12 +7,12 @@ mixin radioStatus(date, iso)
doctype html
html(lang='en')
head
title Arav's dwelling #{title}
title Arav's dwelling / Radio
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible' content='IE=edge')
meta(name='viewport' content='width=device-width, initial-scale=1.0')
meta(name='theme-color' content='#cd2682')
meta(name='description' content=description)
meta(name='description' content='Internet-radio broadcasting from under my desk.')
link(rel='icon' href='/shared/img/favicon.svg' sizes='any' type='image/svg+xml')
link(href='/assets/css/main.css' rel='stylesheet')
script(src='/assets/js/main.js' defer)
@ -26,21 +26,21 @@ html(lang='en')
h1 Radio
section
small.player-links
a(href="/filelist") file list
a(href="/playlist") playlist (.m3u)
a(href="/live/stream.ogg") direct link
a(href="http://radio.arav.top:8000/stream.ogg") direct link (http)
a(href="http://wsmkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion/live/stream.ogg") direct link (Tor)
a(href="http://radio.arav.i2p/live/stream.ogg") direct link (I2P)
a(href='/filelist') filelist
a(href='/playlist') playlist (.m3u)
a(href='/live/stream.ogg') direct link
a(href='http://radio.arav.top:8000/stream.ogg') direct link (http)
a(href='http://wsmkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion/live/stream.ogg') direct link (Tor)
a(href='http://radio.arav.i2p/live/stream.ogg') direct link (I2P)
| OGG 128 Kb/s
audio(preload='none' controls)
source(src="/live/stream.ogg" type="audio/ogg")
| Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href="/playlist") playlist]!
source(src='/live/stream.ogg' type='audio/ogg')
| Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]!
+radioStatus(radio_status.server_start_date, radio_status.server_start_iso8601)
p Now playing: #[span#radio-song= radio_status.song]
p Current/peak listeners: #[span#radio-listeners= radio_status.listeners] / #[span#radio-listener-peak= radio_status.listener_peak]
p
small Notice: information updates every 45 seconds. But you can #[button(id="btn-update") update] it forcibly.
small Notice: information updates every 45 seconds. But you can #[button(id='btn-update') update] it forcibly.
if (last_songs)
section
h2 Last 10 songs
@ -51,15 +51,15 @@ html(lang='en')
td= song.artist
td= song.title
section
p The largest number of simultaneous listeners was #[b 5] at #[time(date="2021-11-07") November 7 2021], and the song was "Виктор Аргонов Project - Часть 5. Там, за чертой (финальная песня)".
p The largest number of simultaneous listeners was #[b 5] at #[time(datetime='2021-11-07') 7 November 2021], and the song was "Виктор Аргонов Project - Часть 5. Там, за чертой (финальная песня)".
section
h2 About the radio
p This project grew from MPD I used to stream music over LAN for myself. Then I let it out and placed a player on my Neocities website. Then I added Icecast to see if there are listeners. I wasn't happy on how MPD was nearly overloading CPU, and later on, when I moved radio off to a laptop, I found a great tool for streams called Liquidsoap.
p Radio is also available through HTTP port 8000, but browsers may try to redirect to HTTPS. Any other applications should work fine.
p Radio is listed in #[a(href="https://dir.xiph.org/search?q=arav's+dwelling") Xiph directory].
p This project grew from MPD I used to stream music over LAN for myself. Then I let it out and placed a player on my Neocities website. Then Icecast was added to see if there are listeners. I wasn't happy on how MPD was nearly overloading CPU, and later, after moving the radio off to a laptop, MPD was replaced by Liquidsoap.
p Radio is available #[a(href='http://radio.arav.top:8000/stream.ogg') through HTTP port 8000] as well, but browsers may try to redirect to HTTPS. Any other applications should work fine.
p Radio is listed in #[a(href='https://dir.xiph.org/search?q=arav\'s+dwelling') Xiph directory].
section
h2 Donation
p You think that I deserve getting some reward for doing all this? #[a(href=main_site+"/about#contacts") Contact me], and we'll decide what way would be better.
p You think that I deserve getting some reward for doing all this? #[a(href=main_site+'/about#contacts') Contact me], and we'll decide what way would be better.
p I have Paypal, QIWI, Bitcoin, and a money transfer link for my bank account.
section
h2 Privacy statements