|
1
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
2
|
<script defer src="$home/script.js"></script> |
|
3
|
<a class="skip-nav" href="#main-content">Skip to content</a> |
|
4
|
<header> |
|
5
|
<div class="title"> |
|
6
|
<a href="$home/home" class="project-name">$<project_name></a> |
|
7
|
<span class="page-title">$<title></span> |
|
8
|
</div> |
|
9
|
<div class="status"> |
|
10
|
<th1> |
|
11
|
if {[info exists login]} { |
|
12
|
html "<a href='$home/login'>$login</a>\n" |
|
13
|
} else { |
|
14
|
html "<a href='$home/login'>Login</a>\n" |
|
15
|
} |
|
16
|
</th1> |
|
17
|
</div> |
|
18
|
</header> |
|
19
|
<nav class="mainmenu" aria-label="Main menu"> |
|
20
|
<th1> |
|
21
|
html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map' aria-expanded='false' aria-controls='hbdrop'>☰</a>" |
|
22
|
builtin_request_js hbmenu.js |
|
23
|
foreach {name url expr class} $mainmenu { |
|
24
|
if {![capexpr $expr]} continue |
|
25
|
if {[string match /* $url]} { |
|
26
|
if {[string match $url\[/?#\]* /$current_page/]} { |
|
27
|
set class "active $class" |
|
28
|
} |
|
29
|
set url $home$url |
|
30
|
} |
|
31
|
html "<a href='$url' class='$class'>$name</a>\n" |
|
32
|
} |
|
33
|
</th1> |
|
34
|
</nav> |
|
35
|
<nav id="hbdrop" class='hbdrop' aria-label="Site map" data-anim-ms="0"></nav> |
|
36
|
<div id="main-content" tabindex="-1" style="height:0;overflow:hidden;position:absolute"></div> |
|
37
|
<th1> |
|
38
|
if {[string compare $title index]==0 || [string compare $title Home]==0} { |
|
39
|
html "<h1 class='page-title home-title'>[htmlize $title]</h1>\n" |
|
40
|
} else { |
|
41
|
html "<h1 class='page-title'>[htmlize $title]</h1>\n" |
|
42
|
} |
|
43
|
</th1> |
|
44
|
|
|
45
|
|