diff --git a/themes/hugoplate/layouts/events/list.html b/themes/hugoplate/layouts/events/list.html new file mode 100644 index 0000000..24731bb --- /dev/null +++ b/themes/hugoplate/layouts/events/list.html @@ -0,0 +1,27 @@ +{{ define "main" }} {{ partial "page-header" . }} + +
+
+
+ +
+
+ {{ $paginator:= .Paginate .RegularPages }} {{ range $paginator.Pages + }} +
+ {{ partial "components/blog-card" . }} +
+ {{ end }} +
+ {{ partial "components/pagination.html" . }} +
+ +
+ + {{ $widget:= site.Params.widgets.sidebar }} {{ partialCached + "widgets/widget-wrapper" ( dict "Widgets" $widget "Scope" . ) }} +
+
+
+
+{{ end }} diff --git a/themes/hugoplate/layouts/events/single.html b/themes/hugoplate/layouts/events/single.html new file mode 100644 index 0000000..dc0d878 --- /dev/null +++ b/themes/hugoplate/layouts/events/single.html @@ -0,0 +1,87 @@ +{{ define "main" }} +
+
+
+
+ {{ $image:= .Params.image }} {{ if $image }} +
+ {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "w-full + rounded") }} +
+ {{ end }} +

{{ .Title }}

+ +
{{ .Content }}
+
+ {{ $tags:= .Params.tags }} {{ if $tags }} +
+
{{ i18n "tags" }} :
+ +
+ {{ end }} +
+ {{ partial "social-share" (dict "Context" . "Class" "share-icons" + "Title" (i18n "share") "Whatsapp" false "Telegram" false "Linkedin" + false "Pinterest" false "Tumblr" false "Vk" false) }} +
+
+ + {{ if site.Config.Services.Disqus.Shortname }} +
{{ template "_internal/disqus.html" . }}
+ {{ end }} +
+
+ + + {{ $related := (where site.RegularPages "Section" "in" + site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" + .Title) | union (site.RegularPages.Related . ) }} {{ $related = $related | + shuffle | first 3 }} {{ with $related }} +
+

{{ i18n "related_posts" }}

+
+ {{ range . }} +
{{ partial "components/blog-card" . }}
+ {{ end }} +
+
+ {{ end }} +
+
+{{ end }}