Adds event page and tag partial
Adds a new event page layout with date and location display. Introduces a tag partial for displaying tags, categories, themes, and groups. Adds "Event" entry in the main menu. Shifts weight of "Now" menu entry and updates postCard icon.
This commit is contained in:
@@ -19,10 +19,14 @@ main:
|
|||||||
name: "Series"
|
name: "Series"
|
||||||
url: "/series"
|
url: "/series"
|
||||||
weight: 27
|
weight: 27
|
||||||
|
- pageRef: "/event"
|
||||||
|
name: "Event"
|
||||||
|
url: "/event"
|
||||||
|
weight: 28
|
||||||
- pageRef: "/now"
|
- pageRef: "/now"
|
||||||
name: "Now"
|
name: "Now"
|
||||||
url: "/now"
|
url: "/now"
|
||||||
weight: 28
|
weight: 29
|
||||||
- pageRef: "/slashpages"
|
- pageRef: "/slashpages"
|
||||||
name: "SlashPages"
|
name: "SlashPages"
|
||||||
url: "/slashpages"
|
url: "/slashpages"
|
||||||
|
|||||||
55
layouts/event/single.html
Normal file
55
layouts/event/single.html
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<div class="wrapper post">
|
||||||
|
<main class="page-content" aria-label="Content">
|
||||||
|
<article class="h-entry">
|
||||||
|
<header class="header">
|
||||||
|
<h1 class="header-title p-name">{{ .Title }}</h1>
|
||||||
|
{{ partial "micro.html" . }}
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<a class="u-url" href="{{ .Permalink }}"><div style="display: none;" class="p-summary">{{ .Description }}</div></a>
|
||||||
|
<a rel="author" class="p-author h-card no-underline " href="{{ .Site.BaseURL }}" style="display: none;">{{ .Site.Params.Author.name }}</a>
|
||||||
|
|
||||||
|
{{ $configDateFormat := .Site.Params.dateFormat | default ":date_medium" }}
|
||||||
|
{{- with .Params.start }}
|
||||||
|
{{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }}
|
||||||
|
<i class="fa-regular fa-calendar-range"></i>
|
||||||
|
<time datetime="{{ $ISO_time }}" class="dt-start" itemprop="datePublished">
|
||||||
|
{{ . | time.Format $configDateFormat }}
|
||||||
|
</time>
|
||||||
|
{{ end -}}
|
||||||
|
{{- with .Params.end }}
|
||||||
|
{{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }} -
|
||||||
|
<i class="fa-regular fa-calendar-range"></i>
|
||||||
|
<time datetime="{{ $ISO_time }}" class="dt-end" itemprop="datePublished">
|
||||||
|
{{ . | time.Format $configDateFormat }}
|
||||||
|
</time>
|
||||||
|
{{ end -}}
|
||||||
|
{{- with .Params.location }}
|
||||||
|
<p>
|
||||||
|
<i class="fa-whiteboard fa-semibold fa-location-dot"></i>
|
||||||
|
<span class="p-location">
|
||||||
|
{{ . }}
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{- partial "tags.html" . -}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
</header>
|
||||||
|
{{ partial "toc.html" .}}
|
||||||
|
<div class="page-content e-content">
|
||||||
|
{{- partial "bridgy.html" . -}}
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "series.html" . }}
|
||||||
|
{{ partial "share-buttons" . }}
|
||||||
|
{{- partial "syndication.html" . -}}
|
||||||
|
{{- partial "comments.html" . -}}
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
@@ -13,6 +13,8 @@
|
|||||||
<i class="fa-whiteboard fa-semibold fa-calendar"></i>
|
<i class="fa-whiteboard fa-semibold fa-calendar"></i>
|
||||||
{{ else if eq .Type "now" }}
|
{{ else if eq .Type "now" }}
|
||||||
<i class="fa-whiteboard fa-semibold fa-skull fa-xl"></i>
|
<i class="fa-whiteboard fa-semibold fa-skull fa-xl"></i>
|
||||||
|
{{ else if eq .Type "series" }}
|
||||||
|
<i class="fa-whiteboard fa-semibold fa-list-ul fa-xl"></i>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<i class="fa-whiteboard fa-semibold fa-ghost fa-xl"></i>
|
<i class="fa-whiteboard fa-semibold fa-ghost fa-xl"></i>
|
||||||
{{ end}}
|
{{ end}}
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
<p id="tags">
|
<p id="tags">
|
||||||
{{ range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
#<a class="p-category tag" rel="tag" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
|
#<a class="p-category tag" rel="tag" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .Params.categories }}
|
{{ range .Params.categories }}
|
||||||
#<a class="p-category tag" rel="tag" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
|
#<a class="p-category tag" rel="tag" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .Params.themes }}
|
{{ range .Params.themes }}
|
||||||
#<a class="p-category tag" rel="tag" href="{{ "/themes/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
|
#<a class="p-category tag" rel="tag" href="{{ "/themes/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
|
||||||
|
{{ end }}
|
||||||
|
{{ range .Params.group }}
|
||||||
|
#<a class="p-category tag" rel="tag" href="{{ "/group/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user