Skip to content

Commit

Permalink
Merge pull request #149 from devopsdays/mattstratton/fix-event-header…
Browse files Browse the repository at this point in the history
…-menu

Fix event header to re-implement offsite links. Fixes #76 (again)
  • Loading branch information
mattstratton committed Apr 15, 2016
2 parents f0575af + 6f491f0 commit c081395
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions data/events/2016-chicago.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ nav_elements:
- name: location
- name: program
- name: propose
url: http://cfp.devopsdayschi.org
- name: conduct
- name: sponsor

Expand Down
16 changes: 13 additions & 3 deletions themes/devopsdays-legacy/layouts/partials/event_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,18 @@ <h1> {{ $e.city }} {{ $e.year }} - {{ title .Title }} </h1>
<!-- Main navigation -->
<div class="submenu">
<h3>
{{ range $navigation := $e.navigationelements}}
<a href="/events/{{ $event_slug }}/{{ $navigation}}">{{ $navigation }}</a>&nbsp;
{{ end }}
{{ if $e.nav_elements }}
{{ range $e.nav_elements }}
{{ if .url }}
<a href="{{ .url}}">{{ .name }}</a>&nbsp;
{{ else }}
<a href="/events/{{ $event_slug }}/{{ .name }}">{{ .name }}</a>&nbsp;
{{ end }}
{{ end }}
{{ else }}
{{ range $navigation := $e.navigationelements}}
<a href="/events/{{ $event_slug }}/{{ $navigation}}">{{ $navigation }}</a>&nbsp;
{{ end }}
{{ end }}
</h3>
</div>

0 comments on commit c081395

Please sign in to comment.