Commit 65d323d6 authored by Ethan Madison's avatar Ethan Madison
Browse files

Add practice sidebar module



Now practice information can be displayed everywhere!

Displays values from .Site.Params.practiceTimes.{sunday,monday,tuesday,
wednesday,thursday,friday,saturday}.
Uses .Site.Params.practiceLocation to optionally show practice location.
Signed-off-by: default avatarEthan Madison <ethan@ethanmad.com>
parent 85307544
......@@ -2,7 +2,17 @@
{{ $url := .Permalink }}
<div class="col-sm-3 col-sm-offset-1 doc-sidebar">
<div id="sidebar">
{{ if isset .Site.Params "practiceTimes" }}
<div class="sidebar-module">
<h4 class="sidebar-heading">Practice</h4> </div>
{{ with .Site.Params.practiceTimes.sunday }}<strong>Sunday</strong>: {{ . }}<br>{{ end }}
{{ with .Site.Params.practiceTimes.monday }}<strong>Monday</strong>: {{ . }}<br>{{ end }}
{{ with .Site.Params.practiceTimes.tuesday }}<strong>Tuesday</strong>: {{ . }}<br>{{ end }}
{{ with .Site.Params.practiceTimes.wednesday }}<strong>Wednesday</strong>: {{ . }}<br>{{ end }}
{{ with .Site.Params.practiceTimes.thursday }}<strong>Thursday</strong>: {{ . }}<br>{{ end }}
{{ with .Site.Params.practiceTimes.friday }}<strong>Friday</strong>: {{ . }}<br>{{ end }}
{{ with .Site.Params.practiceTimes.saturday }}<strong>Saturday</strong>: {{ . }}<br>{{ end }}
{{ end }}
</div>
</div>
</div><!-- /.doc-sidebar -->
\ No newline at end of file
</div><!-- /.doc-sidebar -->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment