aboutsummaryrefslogtreecommitdiff
path: root/static/main.html
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-08-16 16:35:19 -0300
committerKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-08-16 16:35:19 -0300
commitc455494cd617d66bc28a30afb1fbd4377e0ecb01 (patch)
treea7e9608c0fc713467987d074947e2d1e8feb0c40 /static/main.html
parent1d8e5651dedf56470d10b94a0022942a91cde6cd (diff)
extremely basic themes support
Diffstat (limited to 'static/main.html')
-rw-r--r--static/main.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/static/main.html b/static/main.html
index 3f819dd..3fa1b66 100644
--- a/static/main.html
+++ b/static/main.html
@@ -8,10 +8,11 @@
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<link rel="icon" type="image/png" href="/static/favicon.png">
- <link rel="stylesheet" type="text/css" href="/static/css/style.css">
+ <link rel="stylesheet" type="text/css" href="/static/css/style.css" title="default">
+ <link rel="alternate stylesheet" type="text/css" href="/static/css/gruvbox.css" title="gruvbox">
{{ template "header" . }}
</head>
- <body {{ if not .Board.Restricted }}class="nsfw"{{ end }}>
+ <body {{ if not .Board.Restricted }}class="nsfw"{{ end }} onload="applyTheme()">
<ul style="display: inline; padding:0;">
{{ $l := len .Boards }}
<li style="display: inline;">[<a href="/">Home</a>]</li>
@@ -41,8 +42,10 @@
<a href="/">[Home]</a><a href="/static/rules.html">[Rules]</a><a href="/static/faq.html">[FAQ]</a>
<p>All trademarks and copyrights on this page are owned by their respective parties.</p>
</div>
+
+ <script src="/static/js/themes.js"></script>
+{{ template "script" . }}
</body>
</html>
-{{ template "script" . }}
{{ end }}