htmlroc/template.html

31 lines
724 B
HTML
Raw Normal View History

2019-06-13 21:04:49 +00:00
<!DOCTYPE html>
<html>
<head>
<title>{{ .Title }}</title>
2019-06-13 22:03:45 +00:00
<link rel="stylesheet" href="style.css">
2019-06-13 21:04:49 +00:00
</head>
<body>
2019-06-13 22:03:45 +00:00
<main>
<header class="credits">
{{ .Credits | toCredits }}
</header>
<section class="rules">
{{ range .Sections }}
<h2 id="{{ .ID }}">{{ .ID }}. {{ .Title }}</h2>
{{ if .Extra }}
{{ .Text | htmlify }}
{{ else }}
<ul>
{{ range .Rules }}
<li id="{{ .ID }}" class="depth-{{ .Depth }}">({{ .ID }}) {{ .Text | htmlify }}</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</section>
</main>
2019-06-13 21:04:49 +00:00
</body>
</html>