minecraft-site/templates/index.html

46 lines
1.5 KiB
HTML
Raw Normal View History

2020-03-19 23:20:59 -05:00
<!DOCTYPE html>
<html lang="en">
<head>
2021-02-13 21:18:51 -06:00
<title>{{.Title}}</title>
2020-03-19 23:20:59 -05:00
<style>
html {
font-family: sans-serif;
padding: 10px;
}
2021-02-14 00:03:54 -06:00
/* https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3 */
.light {
color: #888;
}
.light a {
color: #88f;
}
.light a:hover {
color: #00e;
}
.light a:visited {
color: #a9b;
}
.light a:visited:hover {
color: #518;
}
2020-03-19 23:20:59 -05:00
</style>
</head>
<body>
2021-02-13 21:18:51 -06:00
<h1>{{.Title}}</h1>
<p>{{.Content}}</p>
2020-04-17 19:53:02 -05:00
<p>Backups are taken and archived periodically, and made available in the <a href="/backups">backup archive</a>.</p>
2021-02-13 21:18:51 -06:00
{{range .Servers}}
<h3>{{.Title}}</h3>
<ul>
2020-03-29 22:28:39 -05:00
<li><b>Description:</b> {{.Description}}</li>
2021-02-13 21:18:51 -06:00
<li><b>Connection String:</b> {{.Host}}{{if ne .Port 34197}}:{{.Port}}{{end}}</li>
2021-02-14 00:11:52 -06:00
{{if ne .RCONHost ""}}
<li><b>Version:</b> {{.Version}}</li>
<li><b>Current players:</b><br>{{.Players}}</li>
2021-02-14 00:11:52 -06:00
{{end}}
</ul>
{{end}}
2021-02-14 00:03:54 -06:00
<p class="light">This page maintained by chandlerswift's <a href="https://github.com/chandlerswift/factorio-site">factorio server list</a>.</p>
2020-03-19 23:20:59 -05:00
</body>
</html>