2019-06-13 21:04:49 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>{{ .Title }}</title>
|
2019-06-14 09:55:29 +00:00
|
|
|
<link rel="stylesheet" href="static/style.css">
|
|
|
|
<script src="static/script.js" defer></script>
|
2019-06-13 21:04:49 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2019-06-14 09:55:29 +00:00
|
|
|
<nav class="topbar">
|
|
|
|
</nav>
|
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 }}
|
2019-06-14 09:37:08 +00:00
|
|
|
{{ if (eq .Title "Glossary")}}
|
|
|
|
<dl class="glossary">
|
|
|
|
{{ range (toGlossary .Text) }}
|
|
|
|
<dt>{{ .Keyword }}</dt>
|
|
|
|
<dd>{{ .Definition }}</dd>
|
|
|
|
{{ end }}
|
|
|
|
</dl>
|
|
|
|
{{ else }}
|
2019-06-13 22:03:45 +00:00
|
|
|
{{ .Text | htmlify }}
|
2019-06-14 09:37:08 +00:00
|
|
|
{{ end }}
|
2019-06-13 22:03:45 +00:00
|
|
|
{{ 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>
|