Add RSS feed

This commit is contained in:
Daniel Flanagan 2022-02-15 13:29:19 -06:00
parent 67943d3fed
commit 3830e9e4cd
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 14 additions and 14 deletions

View file

@ -71,8 +71,7 @@ function handleOnlineStatus(status) {
info.style.display = 'block' info.style.display = 'block'
document.getElementById('server-status-current-num-players').textContent = status.players.now document.getElementById('server-status-current-num-players').textContent = status.players.now
document.getElementById('server-status-max-players').textContent = status.players.max document.getElementById('server-status-max-players').textContent = status.players.max
} if ('sample' in status.players && status.players.now > 0) {
if ('sample' in status.players) {
samplingHeader.style.display = 'block' samplingHeader.style.display = 'block'
samplingList.style.display = 'block' samplingList.style.display = 'block'
samplingList.textContent = '' samplingList.textContent = ''
@ -87,6 +86,7 @@ function handleOnlineStatus(status) {
} }
} }
} }
}
} else { } else {
showServerStatus('server-status-offline') showServerStatus('server-status-offline')
} }

View file

@ -2,7 +2,7 @@
{{ .Content }} {{ .Content }}
<h2>Latest Posts</h2> <h2>Latest Posts (<a target="_blank" href="/index.xml">RSS</a>)</h2>
<ul> <ul>
{{ range (where .Site.RegularPages "Section" "blog") }} {{ range (where .Site.RegularPages "Section" "blog") }}