Merge branch 'layout/events-list-page' into 'master'
Improve events list page See merge request tcarrondo/hugo-ansol.org!5
BIN
assets/images/default-events-cover.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/images/newsletter-cover.png
Normal file
After Width: | Height: | Size: 15 KiB |
1
assets/images/report.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg height='300px' width='300px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 32" fill="none" x="0px" y="0px"><path d="M9 1C9 0.447715 9.44771 0 10 0H18C18.5523 0 19 0.447715 19 1V5C19 5.55228 18.5523 6 18 6H10C9.44771 6 9 5.55228 9 5V1Z" fill="black"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M5 2H7V6.66667C7 7.40305 7.6268 8 8.4 8H19.6C20.3732 8 21 7.40305 21 6.66667V2H23C25.7614 2 28 4.23858 28 7V27C28 29.7614 25.7614 32 23 32H5C2.23858 32 0 29.7614 0 27V7C0 4.23858 2.23858 2 5 2ZM20 25C20 25.5523 19.5523 26 19 26C18.4477 26 18 25.5523 18 25V13C18 12.4477 18.4477 12 19 12C19.5523 12 20 12.4477 20 13V25ZM14 26C14.5523 26 15 25.5523 15 25V17C15 16.4477 14.5523 16 14 16C13.4477 16 13 16.4477 13 17V25C13 25.5523 13.4477 26 14 26ZM10 25C10 25.5523 9.55228 26 9 26C8.44771 26 8 25.5523 8 25V21C8 20.4477 8.44772 20 9 20C9.55229 20 10 20.4477 10 21V25Z" fill="black"></path></svg>
|
After Width: | Height: | Size: 907 B |
BIN
content/eventos/2021-02-20-cc-global-summit-2021/cover.png
Normal file
After Width: | Height: | Size: 403 KiB |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 16 KiB |
BIN
content/eventos/2021-08-21-foss4g-2021/cover.png
Normal file
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 16 KiB |
@ -11,5 +11,5 @@ metadata:
|
||||
finish: 2021-10-31
|
||||
map: {}
|
||||
layout: evento
|
||||
title: 'Wikidata: Data Quality Days 2021'
|
||||
title: 'WikidataCon 2021'
|
||||
---
|
||||
|
@ -11,6 +11,8 @@ O código deste website está disponível em https://gitlab.com/tcarrondo/hugo-a
|
||||
|
||||
["menu"](https://thenounproject.com/term/menu/45019/), criado por Kervin Markle, da colecção [The Noun Project](thenounproject.com), licenciado sob [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/pt/legalcode).
|
||||
|
||||
["report"](https://thenounproject.com/term/report/3889480/), criado por HideMaru, da colecção [The Noun Project](thenounproject.com), licenciado sob [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/pt/legalcode).
|
||||
|
||||
|
||||
## Ícones na página principal
|
||||
|
||||
|
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 46 KiB |
BIN
content/noticias/2021-02-14-eu-adoro-software-livre/cover.png
Normal file
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 470 KiB |
@ -158,6 +158,12 @@ nav.main .nav-search:hover {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.events-list-title {
|
||||
margin: 2rem auto;
|
||||
font-weight: 300;
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
|
||||
.events-list {
|
||||
margin-top: 20px;
|
||||
padding: 0px;
|
||||
@ -179,6 +185,10 @@ nav.main .nav-search:hover {
|
||||
width: calc(50% - 50px);
|
||||
}
|
||||
|
||||
.events-list.events-list-full-width li {
|
||||
width: calc(100% - 50px);
|
||||
}
|
||||
|
||||
.events-list .event-cover {
|
||||
margin-top: -20px;
|
||||
margin-left: -20px;
|
||||
|
46
themes/academic/layouts/eventos/list.html
Normal file
@ -0,0 +1,46 @@
|
||||
{{- define "main" -}}
|
||||
|
||||
<h1 class='events-list-title body-width'>Eventos</h1>
|
||||
|
||||
<ul class="events-list body-width">
|
||||
{{ $paginator := .Paginate (.Data.Pages.ByParam "metadata.event.date.start").Reverse }}
|
||||
{{ range $paginator.Pages }}
|
||||
<li>
|
||||
<a class="img" href="{{ .Permalink }}">
|
||||
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||||
{{ if not $cover }}
|
||||
{{ $cover = resources.Get "images/default-events-cover.png" }}
|
||||
{{ end }}
|
||||
<img class='event-cover' src="{{ $cover.Permalink }}" />
|
||||
</a>
|
||||
<p class="headline">
|
||||
<a class="title" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</p>
|
||||
<p class="subheader">
|
||||
<span class="date">
|
||||
{{ with .Params.metadata.event.date }}
|
||||
{{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }}
|
||||
{{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }}
|
||||
{{ time.Format "2 de January de 2006" .start }}
|
||||
{{ else }}
|
||||
{{ time.Format "2 de January de 2006" .start }} das
|
||||
{{ time.Format "15:04" .start }} às
|
||||
{{ time.Format "15:04" .finish }}
|
||||
{{ end }}
|
||||
{{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }}
|
||||
De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }}
|
||||
{{ else }}
|
||||
De {{ time.Format "2 de January de 2006" .start }} a {{ time.Format "2 de January de 2006" .finish }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
—
|
||||
<span class='location'>{{ .Params.metadata.event.location }}</span>
|
||||
</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
</ul>
|
||||
|
||||
{{- end -}}
|