-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcpt-header.html
54 lines (53 loc) · 1.52 KB
/
mcpt-header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!--
Gendo replicates common code across Git repos.
Copyright (C) 2022 Ken Shibata <[email protected]>
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div id="common-header">
<style>
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New&display=swap');
#common-nav {
background: #073763;
}
#common-nav-inner {
margin: auto;
max-width: 900px;
font-size: 16px;
font-family: 'Zen Kaku Gothic New', sans-serif;
color: #d0d0d0;
padding: 4px;
}
#common-nav-inner a {
color: #d0d0d0;
text-decoration: none;
padding-right: 10px;
}
#common-nav-inner a:hover {
text-decoration: underline;
}
#common-nav-inner .this {
color: #adadad;
}
</style>
<nav id="common-nav">
<div id="common-nav-inner">
<a href="https://mcpt.ca" style="color: #fff;">
<img src="https://mcpt.ca/logo.svg" style="height: 21px; display: inline; vertical-align: middle;" alt="MCPT logo" />
MCPT
</a>
{{ if ne .Mapping.Data.Self "wlmoj" }}
<a href="https://mcpt.ca">OJ</a>
{{ end }}
{{ if ne .Mapping.Data.Self "ctf" }}
<a href="https://ctf.mcpt.ca">CTF</a>
{{ end }}
{{ if ne .Mapping.Data.Self "learning" }}
<a href="https://learning.mcpt.ca">Learning</a>
{{ end }}
<span class="this">
{{ .Mapping.Data.Title }}
</span>
</div>
</nav>
</div>