Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #658 from tgross/master
Browse files Browse the repository at this point in the history
ensures speaker's multiple talks in a single event display
  • Loading branch information
bridgetkromhout committed Sep 13, 2018
2 parents ead71fe + 694a38a commit 9aed63e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions layouts/speaker/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ <h2 class="speaker-page">{{ .Title }}</h2>
<h3>{{ .Title }} at {{ $e.city }} {{$e.year}}</h3>
<ul class="list-group">
{{- $.Scratch.Set "speaker" .File.BaseFileName -}}

{{- $p := $.Site.GetPage (printf "events/%s/program/%s" $e.name ($.Scratch.Get "speaker")) -}}
{{- if $p -}}
{{- with $p -}}
{{ range where (where $.Site.Pages "Type" "talk") ".Dir" "=" (print "events/" $e.name "/program/") }}
<!-- Now we can display stuff! -->
{{- range .Params.speakers -}}
{{- if eq . ($.Scratch.Get "speaker") -}}
Expand All @@ -30,8 +27,7 @@ <h3>{{ .Title }} at {{ $e.city }} {{$e.year}}</h3>
<a href = "{{ .Permalink | absURL }}" class= "list-group-item list-group-item-action">{{ .Title }}</a>
{{ $.Scratch.Set "display" "false" }}
{{- end -}}
{{- end -}} <!-- end with -->
{{- end -}} <!-- end if $p -->
{{- end -}} <!-- end range where -->
</ul>
</div>
</div>
Expand Down

0 comments on commit 9aed63e

Please sign in to comment.