diff --git a/layouts/partials/events/entry.html b/layouts/partials/events/entry.html new file mode 100644 index 0000000..afa10f0 --- /dev/null +++ b/layouts/partials/events/entry.html @@ -0,0 +1,75 @@ +
+

+ {{ $t := time.AsTime .context.Params.ConcertDate }} + {{ $format := "Monday 2 Jan 2006 15h04" }} + {{ time.Format $format $t | humanize }} +

+
+ {{ with .context.Resources.GetMatch "cover.*" }} + Concert cover + {{ end }} +
+
+

{{ .context.LinkTitle }}

+

{{ .context.Summary }}

+

{{ .context.Description }}

+ + +
+ {{ if .tickets }} + + + Billets + + {{ end }} + + + Infos + +
+
+
+ +
+

+ {{ $t := time.AsTime .context.Params.ConcertDate }} + {{ $format := "Monday 2 Jan 2006 15h04" }} + {{ time.Format $format $t | humanize }} +

+ +
+
+ {{ with .context.Resources.GetMatch "cover.*" }} + Concert cover + {{ end }} +
+
+

{{ .context.LinkTitle }}

+

{{ .context.Description }}

+

{{ .context.Summary }}

+
+
+ +
+ {{ if .tickets }} + + + Billets + + {{ end }} + + + Infos + +
+
diff --git a/layouts/partials/events/past.html b/layouts/partials/events/past.html index 9c6fb32..304fde2 100644 --- a/layouts/partials/events/past.html +++ b/layouts/partials/events/past.html @@ -6,83 +6,7 @@ {{ $currentTime := (time now) }} {{ $delta := $currentTime.Sub (time .Params.ConcertDate ) }} {{ if gt $delta 0 }} -
-

- {{ $t := time.AsTime .Params.ConcertDate }} - {{ $format := "Monday 2 Jan 2006 15h04" }} - {{ time.Format $format $t | humanize }} -

-
- {{ with .Resources.GetMatch "cover.*" }} - Concert cover - {{ end }} -
-
-

- {{ .LinkTitle }} -

-

{{ .Summary }}

-

{{ .Description }}

- - - -
-
- -
-

- {{ $t := time.AsTime .Params.ConcertDate }} - {{ $format := "Monday 2 Jan 2006 15h04" }} - {{ time.Format $format $t | humanize }} -

- -
-
- {{ with .Resources.GetMatch "cover.*" }} - Concert cover - {{ end }} -
-
-

{{ .LinkTitle }}

-

{{ .Description }}

-

{{ .Summary }}

-
-
- -
- - - Billets - - - - Infos - -
-
+ {{ partial "events/entry.html" (dict "context" . "tickets" false) }} {{ end }} {{ end }} diff --git a/layouts/partials/events/program.html b/layouts/partials/events/program.html index 78f4c57..b85f087 100644 --- a/layouts/partials/events/program.html +++ b/layouts/partials/events/program.html @@ -6,90 +6,7 @@ {{ $currentTime := (time now) }} {{ $delta := $currentTime.Sub (time .Params.ConcertDate ) }} {{ if lt $delta 0 }} -
-

- {{ $t := time.AsTime .Params.ConcertDate }} - {{ $format := "Monday 2 Jan 2006 15h04" }} - {{ time.Format $format $t | humanize }} -

-
- {{ with .Resources.GetMatch "cover.*" }} - Concert cover - {{ end }} -
-
-

- {{ .LinkTitle }} -

-

{{ .Summary }}

-

{{ .Description }}

- - - -
-
- -
-

- {{ $t := time.AsTime .Params.ConcertDate }} - {{ $format := "Monday 2 Jan 2006 15h04" }} - {{ time.Format $format $t | humanize }} -

- -
-
- {{ with .Resources.GetMatch "cover.*" }} - Concert cover - {{ end }} -
-
-

{{ .LinkTitle }}

-

{{ .Description }}

-

{{ .Summary }}

-
-
- -
- - - Billets - - - - Infos - -
-
+ {{ partial "events/entry.html" (dict "context" . "tickets" true) }} {{ end }} {{ end }}