-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7842a1
commit 2275ef2
Showing
2 changed files
with
1 addition
and
29 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
@@ -1,29 +1 @@ | ||
{{ with .Params.map }} | ||
<div class="c-map"> | ||
<h1 class="e-heading c-map__start is-none--lt-container">👉🏾</h1> | ||
{{ range $i, $currentMapSectionName := . }} | ||
{{ $currentMapSectionModules := index site.Menus $currentMapSectionName }} | ||
<section class="c-map__block"> | ||
<h2 class="e-heading c-map__title"> | ||
📍{{ $i }}: | ||
{{ $currentMapSectionName }} | ||
</h2> | ||
<ol class="c-map__timeline"> | ||
{{/* Check if a menu for the current map section exists */}} | ||
{{ if $currentMapSectionModules }} | ||
{{/* Range over the items in the menu */}} | ||
{{ range $iterator, $module := $currentMapSectionModules }} | ||
<li | ||
class="c-map__stop" | ||
style="--layer:{{ sub (len $currentMapSectionModules) (add $iterator 1) }}"> | ||
{{ partial "card.html" $module }} | ||
</li> | ||
{{ end }} | ||
{{ else }} | ||
<li>No items found for {{ $currentMapSectionName }}</li> | ||
{{ end }} | ||
</ol> | ||
</section> | ||
{{ end }} | ||
</div> | ||
{{ end }} | ||
{{ partial "map-common.html" . }} |