Commit d4523deb authored by Tom Behets's avatar Tom Behets
Browse files

events shortcode

parent afd72bc9
Loading
Loading
Loading
Loading
Loading
−2
Changes for content/events/_index.md: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,8 +3,6 @@ title: "Events"
linktitle: "Events"
---

{{ .Page.CurrentSection }}

## Upcoming events
{{< events when="upcoming" series="all" >}}

+14 −2
Changes for themes/code-editor/layouts/shortcodes/events.html: 14 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -33,17 +33,29 @@
</div>
{{ end }}


{{ if or (eq $when "past") }}
<div class="events">

    <ul>
        {{ range $.Site.RegularPages.ByParam "startdate" }}
        {{ if or (eq .Type "events") (eq .Type "techtuesday") }}

        {{ if ne $series "all" }}

        {{ if eq .Params.series $series}}
        {{ if isset .Params "startdate" }}
        {{ if le .Params.startdate (now.Format "2006-01-02") }}
        <li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}: {{ .Params.linktitle }}</a></li>
        {{ end }}
        {{ end }}
        {{ end }}

        {{ else }}
        {{ if isset .Params "startdate" }}
        {{ if le .Params.startdate (now.Format "2006-01-02") }}
        <li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}: {{ .Params.linktitle }}</a></li>
        {{ end }}
        {{ end }}

        {{ end }}
        {{ end }}
        {{ end }}
+1 −1

File changed.

Contains only whitespace changes.