Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <hello@victoria.dev>2020-03-01 21:59:15 +0300
committerVictoria Drake <hello@victoria.dev>2020-03-01 21:59:15 +0300
commite8364ee6fb1449222cfbe8ff98ead2a0e4bae1bd (patch)
tree44843eb480ae6ebbd92fbc66ddcbfb156b46a403 /layouts/index.html
parentb0b93c604c896a4f1d994d23feb6aa25f282a56f (diff)
📦 Accessibility improvementsv4.0
- Add content sectioning and aria roles to HTML - Adjust confusing CSS class names
Diffstat (limited to 'layouts/index.html')
-rwxr-xr-xlayouts/index.html51
1 files changed, 25 insertions, 26 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 3649c2f..9cad30d 100755
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,31 +1,30 @@
<!DOCTYPE html>
<html>
- <head>
- {{ partial "head.html" . }}
- <title>{{ .Title }}</title>
- </head>
- <body>
- <div class="section" id="splash">
- {{ if .Site.Params.mainMenu }}
- {{ range .Site.Params.mainMenu }}
- <div class="big-link">
- <a href="{{.link}}">
- {{.text}}
- </a>
- </div>
- {{ end }}
+<head>
+ {{ partial "head.html" . }}
+ <title>{{ .Title }}</title>
+</head>
+
+<body>
+ <nav role="navigation" class="flex-container" id="splash">
+
+ {{ if .Site.Params.mainMenu }}
+ {{ range .Site.Params.mainMenu }}
+ <a href="{{.link}}" class="big-link">
+ {{.text}}
+ </a>
+ {{ end }}
+
+ {{ else }}
+ {{ range .Site.Sections }}
+ <a href="{{.RelPermalink}}" class="big-link">
+ {{.Title}}
+ </a>
+ {{ end }}
+ {{ end }}
+
+ </nav>
+</body>
- {{ else }}
- {{ range .Site.Sections }}
- <div class="big-link">
- <a href="{{.RelPermalink}}">
- {{.Title}}
- </a>
- </div>
- {{ end }}
- {{ end }}
-
- </div>
- </body>
</html> \ No newline at end of file