Skip to content

Breadcrumb navigation #1990

Discussion options

You must be logged in to vote

This is would be a cool addition to many websites.
Take a look at bootstraps breadcrumb implementation: https://getbootstrap.com/docs/4.0/components/breadcrumb/

Iterating over an array can be done with range.

{{ $array: ["item10","item11","item12"]
{{ range $index, $item := $array }}
  {{ printf "item num: %d - item: %s" $index, $item }}
{{ end }}

Output:

item num: 0 - item: item10
item num: 1 - item: item11
item num: 2 - item: item12

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@rodrigoalcarazdelaosa
Comment options

@rodrigoalcarazdelaosa
Comment options

Answer selected by rodrigoalcarazdelaosa
Comment options

You must be logged in to vote
4 replies
@chrede88
Comment options

@chrede88
Comment options

@rodrigoalcarazdelaosa
Comment options

@rodrigoalcarazdelaosa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants