Skip to content

Commit

Permalink
Merge pull request #134 from devopsdays/mattstratton/speaker-bio-test
Browse files Browse the repository at this point in the history
Update speaker directory with year/city path
  • Loading branch information
mattstratton committed Apr 14, 2016
2 parents a3b308e + 6e5e391 commit ad6c05c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 2 deletions.
File renamed without changes.
11 changes: 9 additions & 2 deletions themes/devopsdays-legacy/layouts/talk/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@ <h3>


<!-- speaker code begin -->

{{ range $fname, $s := index .Site.Data.speakers (printf "%s%s" $e.year (lower $e.city) ) }}
{{/*
For future reference, this range listed below is going to be a key element for when we refactor the data directory
Notice how you pass the variables, etc. So the new code would probably be something like this:
.Site.Data.events $e.year "speakers" (printf "%s" (lower $e.city))
and to get at the meta.yml for the city it will be
.Site.Data.events $e.year (printf "%s" (lower $e.city))
- mattstratton
*/}}
{{ range $fname, $s := index .Site.Data.speakers $e.year (printf "%s" (lower $e.city)) }}
{{ if eq $fname ($.Title | urlize) }}
<h2>Speaker</h2>
<h3>{{ $s.name }}</h3>
Expand Down

0 comments on commit ad6c05c

Please sign in to comment.