From db53bb1e5b4f6af8d8c4da96f4647bfc41d3f1d8 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Thu, 6 Jan 2022 14:47:37 +0000 Subject: [PATCH] =?UTF-8?q?Transforma=20AG2022=20de=20not=C3=ADcia=20para?= =?UTF-8?q?=20evento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.md | 11 +++++++---- themes/academic/layouts/index.html | 6 +++++- 2 files changed, 12 insertions(+), 5 deletions(-) rename content/{noticias/2022-01-04-assembleia-geral-2022-eleitoral => eventos/2022-03-05-assembleia-geral-2022-eleitoral}/index.md (88%) diff --git a/content/noticias/2022-01-04-assembleia-geral-2022-eleitoral/index.md b/content/eventos/2022-03-05-assembleia-geral-2022-eleitoral/index.md similarity index 88% rename from content/noticias/2022-01-04-assembleia-geral-2022-eleitoral/index.md rename to content/eventos/2022-03-05-assembleia-geral-2022-eleitoral/index.md index eec375d..b7cfb76 100644 --- a/content/noticias/2022-01-04-assembleia-geral-2022-eleitoral/index.md +++ b/content/eventos/2022-03-05-assembleia-geral-2022-eleitoral/index.md @@ -1,9 +1,14 @@ --- categories: - assembleia geral -layout: article +layout: evento title: Assembleia Geral 2022 Eleitoral -date: 2022-01-04 +metadata: + event: + date: + start: 2022-03-05 14:00:00 + finish: 2022-03-05 20:00:00 + location: FAJDP - Casa das Associações --- Informamos todos os sócios da realização da 1º Assembleia Geral Eleitoral de @@ -34,5 +39,3 @@ Coordenadas GPS: geo:41.14378,-8.61263?z=19 A FAJDP - Casa das Associações situa-se na zona do centro histórico do Porto. Data e hora: Sábado, 5 Março, 2022 - 14:00 - -Local: FAJDP - Casa das Associações diff --git a/themes/academic/layouts/index.html b/themes/academic/layouts/index.html index d7014ce..a2f5249 100644 --- a/themes/academic/layouts/index.html +++ b/themes/academic/layouts/index.html @@ -80,7 +80,11 @@ {{ range $post := $query }}
  • - {{ with (.Resources.ByType "image").GetMatch "*cover*" }} + {{ $cover := (index (.Resources.ByType "image") 0) }} + {{ if not $cover }} + {{ $cover = resources.Get "images/default-events-cover.png" }} + {{ end }} + {{ with $cover }} {{ end }}