|
25 | 25 |
|
26 | 26 | {{ define "navigation-links" }} |
27 | 27 | {{ range .App.Config.Pages }} |
28 | | -<a href="{{ $.App.Config.Server.BaseURL }}/{{ .Slug }}" class="nav-item{{ if eq .Slug $.Page.Slug }} nav-item-current{{ end }}">{{ .Title }}</a> |
| 28 | +<a href="{{ $.App.Config.Server.BaseURL }}/{{ .Slug }}" class="nav-item{{ if eq .Slug $.Page.Slug }} nav-item-current{{ end }}"{{ if eq .Slug $.Page.Slug }} aria-current="page"{{ end }}>{{ .Title }}</a> |
29 | 29 | {{ end }} |
30 | 30 | {{ end }} |
31 | 31 |
|
|
35 | 35 | <div class="header-container content-bounds"> |
36 | 36 | <div class="header flex padding-inline-widget widget-content-frame"> |
37 | 37 | <!-- TODO: Replace G with actual logo, first need an actual logo --> |
38 | | - <div class="logo">{{ if ne "" .App.Config.Branding.LogoURL }}<img src="{{ .App.Config.Branding.LogoURL }}" alt="">{{ else if ne "" .App.Config.Branding.LogoText }}{{ .App.Config.Branding.LogoText }}{{ else }}G{{ end }}</div> |
39 | | - <div class="nav flex grow"> |
| 38 | + <div class="logo" aria-hidden="true">{{ if ne "" .App.Config.Branding.LogoURL }}<img src="{{ .App.Config.Branding.LogoURL }}" alt="">{{ else if ne "" .App.Config.Branding.LogoText }}{{ .App.Config.Branding.LogoText }}{{ else }}G{{ end }}</div> |
| 39 | + <nav class="nav flex grow"> |
40 | 40 | {{ template "navigation-links" . }} |
41 | | - </div> |
| 41 | + </nav> |
42 | 42 | </div> |
43 | 43 | </div> |
44 | 44 | {{ end }} |
|
57 | 57 | </div> |
58 | 58 |
|
59 | 59 | <div class="content-bounds grow"> |
60 | | - <div class="page" id="page"> |
| 60 | + <main class="page" id="page" aria-live="polite" aria-busy="true"> |
| 61 | + <h1 class="visually-hidden">{{ .Page.Title }}</h1> |
61 | 62 | <div class="page-content" id="page-content"></div> |
62 | 63 | <div class="page-loading-container"> |
63 | 64 | <!-- TODO: add a bigger/better loading indicator --> |
64 | | - <div class="loading-icon"></div> |
| 65 | + <div class="visually-hidden">Loading</div> |
| 66 | + <div class="loading-icon" aria-hidden="true"></div> |
65 | 67 | </div> |
66 | | - </div> |
| 68 | + </main> |
67 | 69 | </div> |
68 | 70 |
|
69 | 71 | {{ if not .App.Config.Branding.HideFooter }} |
70 | | - <div class="footer flex items-center flex-column"> |
| 72 | + <footer class="footer flex items-center flex-column"> |
71 | 73 | {{ if eq "" .App.Config.Branding.CustomFooter }} |
72 | 74 | <div> |
73 | 75 | <a class="size-h3" href="https://github.com/glanceapp/glance" target="_blank" rel="noreferrer">Glance</a> {{ if ne "dev" .App.Version }}<a class="visited-indicator" title="Release notes" href="https://github.com/glanceapp/glance/releases/tag/{{ .App.Version }}" target="_blank" rel="noreferrer">{{ .App.Version }}</a>{{ else }}({{ .App.Version }}){{ end }} |
74 | 76 | </div> |
75 | 77 | {{ else }} |
76 | 78 | {{ .App.Config.Branding.CustomFooter }} |
77 | 79 | {{ end }} |
78 | | - </div> |
| 80 | + </footer> |
79 | 81 | {{ end }} |
80 | 82 |
|
81 | 83 | <div class="mobile-navigation-offset"></div> |
|
0 commit comments