This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VOTE-1381: add html sitemap for English (#851)
Co-authored-by: mlloydbixal <[email protected]>
- Loading branch information
1 parent
71e2517
commit bd3bb4a
Showing
7 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@use 'uswds-core' as *; | ||
@use '../mixins' as *; | ||
|
||
.sitemap { | ||
ul.main-nav, ul.register-nav { | ||
list-style-type: none; | ||
} | ||
|
||
ul.register-nav { | ||
columns: 2; | ||
|
||
@include at-media('tablet') { | ||
columns: 3; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
+++ | ||
title = "Sitemap" | ||
meta_title = "State Voting Resource Links - HTML Sitemap | Vote.gov" | ||
meta_description = "View and access all state voting resource links on the Vote.gov HTML Sitemap." | ||
translationKey = "sitemap" | ||
home_link_title = "Homepage" | ||
main_nav_header = "Main Navigation" | ||
states_header = "Register to Vote - by State and Territory" | ||
+++ | ||
|
||
{{< sitemap >}} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ $translation := ( index $.Site.Data.translations .Site.Language.Lang ) }} | ||
{{ $envURL := ( index .Site.Params.envURL (os.Getenv "BRANCH") ) }} | ||
{{ $envURL := cond (eq $envURL nil) .Site.Params.envURL.fed $envURL }} | ||
|
||
<div class="sitemap"> | ||
<h2>{{ .Page.Params.main_nav_header }}</h2> | ||
<ul class="main-nav usa-list"> | ||
<li><a hreflang="{{ $translation.Language.Lang }}" href="{{ .Site.Home.RelPermalink }}">{{ .Page.Params.home_link_title }}</a></li> | ||
{{ range where .Site.RegularPages "Section" "!=" .Site.Params.register_path }} | ||
{{ if ne .Title "Sitemap" }} | ||
<li><a hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}">{{ .Title }}</a></li> | ||
{{ end }} | ||
{{ end }} | ||
</ul> | ||
|
||
<h2>{{ .Page.Params.states_header }}</h2> | ||
<ul class="register-nav usa-list"> | ||
{{ $states := where .Site.Pages "Section" .Site.Params.register_path }} | ||
{{ range ($states.ByParam "state_name") }} | ||
<li><a hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}"> | ||
{{ .Params.state_name }} | ||
</a></li> | ||
{{ end }} | ||
</ul> | ||
</div> |