Commit f103ac95 authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'feature/hevent' into 'fork'

Create `events` content type to expose `h-event`s

See merge request !34
parents 542295e7 edcf7f15
{{ define "main" }}
<main>
<div class="catalogue">
{{ if (eq $.Title "Events") }}
{{ range (where .Site.Pages "Section" "events") }}
{{ range .Sections }}
{{ .Render "section-summary" }}
{{ end }}
{{ end }}
{{ else }}
{{ range (.Paginate .Pages).Pages }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
</div>
<div class="pagination">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
{{ end }}
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
{{ end }}
<span>{{ .Paginator.PageNumber }}</span>
</div>
</main>
{{ end }}
<a href="{{ .Permalink }}" class="catalogue-item">
<div>
<h1 class="catalogue-title">{{ .Title }}</h1>
<div class="catalogue-line"></div>
<p>
{{ .Description | markdownify }}
</p>
</div>
</a>
{{ define "main" }}
<main>
<div class="post">
<div class="h-event">
{{ partial "single/title.html" . }}
<p class="p-summary">{{ .Description }}</p>
<p>
From
<time class="dt-start" datetime="{{ dateFormat "2006-01-02 15:04" .Params.Start }}">
{{ dateFormat "Mon, 02 Jan 2006 15:04:05 MST" .Params.Start }}
</time>
to
<time class="dt-end" datetime="{{ dateFormat "2006-01-02 15:04" .Params.end }}">
{{ dateFormat "Mon, 02 Jan 2006 15:04:05 MST" .Params.End }}
</time>
{{ if .Params.Adr }}
at
<span class="p-location h-adr">
<span class="p-street-address">{{ .Params.adr.street_address }}</span>
<span class="p-locality">{{ .Params.adr.locality }}</span>
<span class="p-country-name">{{ .Params.adr.country_name }}</span>
<span class="p-postal-code">{{ .Params.adr.postal_code }}</span>
</span>
{{ end }}
{{ if .Params.Geo }}
at
<span class="p-location h-geo">
<span class="p-latitude">{{ .Params.geo.latitude }}</span>
<span class="p-longitude">{{ .Params.geo.longitude }}</span>
</span>
{{ end }}
</p>
{{ if .Content }}
<div class="p-description">{{ .Content }}</div>
{{ end }}
</div>
{{ partial "webmention.html" . }}
{{ partial "single/footer.html" . }}
</div>
</main>
{{ end }}
<a href="{{ .Permalink }}" class="catalogue-item">
<div>
<time datetime="{{ .PublishDate }}" class="catalogue-time">{{ dateFormat "Mon, 02 Jan 2006 15:04" .Params.Start }}</time>
<h1 class="catalogue-title">{{ .Title }}</h1>
<div class="catalogue-line"></div>
<p>
{{ .Description | markdownify }}
</p>
</div>
</a>
<ul>
<li><a href="{{ "/about/" | relURL }}">{{ i18n "about" }}</a></li>
<li><a href="{{ "/posts/" | relURL }}">Blog</a></li>
<li><a href="{{ "/events/" | relURL }}">Events</a></li>
<li><a href="{{ "/projects/" | relURL }}">Projects</a></li>
<li><a href="{{ "/talks/" | relURL }}">Talks</a></li>
<li><a href="{{ "/blogroll/" | relURL }}">Blogroll</a></li>
......
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