2020-06-11 11:46:16 +00:00
|
|
|
{{- define "main" -}}
|
2021-10-28 14:52:49 +00:00
|
|
|
<p class="about body-width">
|
|
|
|
A <strong>ANSOL - Associação Nacional para o Software Livre</strong> é uma
|
|
|
|
associação portuguesa sem fins lucrativos que tem como fim a divulgação,
|
|
|
|
promoção, desenvolvimento, investigação e estudo da Informática Livre e das
|
|
|
|
suas repercussões sociais, políticas, filosóficas, culturais, técnicas e
|
2022-01-18 16:14:13 +00:00
|
|
|
científicas. <strong><a href="/software-livre">O que é Software Livre?</a></strong>
|
2021-10-28 14:52:49 +00:00
|
|
|
</p>
|
2020-06-11 11:46:16 +00:00
|
|
|
|
2021-10-28 14:52:49 +00:00
|
|
|
<div class='body-width'>
|
|
|
|
<p class="why-join">
|
|
|
|
<span>Precisamos da tua ajuda</span>
|
2021-10-28 16:43:31 +00:00
|
|
|
<a href="{{ (site.GetPage "inscricao").Permalink }}" class='cta'>Junta-te a nós</a>
|
2021-10-28 14:52:49 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2020-06-11 11:46:16 +00:00
|
|
|
|
2021-10-28 14:52:49 +00:00
|
|
|
<section class='news-section'>
|
|
|
|
<h2 class="pull-header body-width">Notícias</h2>
|
|
|
|
<ul class='news-list body-width'>
|
2021-11-01 01:15:28 +00:00
|
|
|
{{ $query := where site.RegularPages "Type" "noticias" -}}
|
|
|
|
{{ $query = first 3 $query -}}
|
|
|
|
{{ range $post := $query -}}
|
2021-10-28 14:52:49 +00:00
|
|
|
<li>
|
2023-03-31 16:46:28 +00:00
|
|
|
<div class='cover'>
|
2021-12-13 20:05:01 +00:00
|
|
|
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
|
|
|
{{ if not $cover }}
|
|
|
|
{{ $cover = resources.Get "images/default-news-cover.png" }}
|
|
|
|
{{ end }}
|
|
|
|
{{ with $cover }}
|
2023-03-31 17:07:20 +00:00
|
|
|
<img class='news-cover' src="{{ .Permalink }}" alt='' />
|
2021-12-13 20:05:01 +00:00
|
|
|
{{ end }}
|
2023-03-31 16:46:28 +00:00
|
|
|
</div>
|
2020-06-11 11:46:16 +00:00
|
|
|
|
2021-10-28 14:52:49 +00:00
|
|
|
<div class='text'>
|
|
|
|
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
2020-06-11 11:46:16 +00:00
|
|
|
|
2021-10-28 14:52:49 +00:00
|
|
|
<p class="published-date">{{ time.Format "2 de January de 2006" .PublishDate }}</p>
|
|
|
|
|
|
|
|
<div class="summary">
|
|
|
|
{{ .Summary }}
|
2023-03-31 16:46:28 +00:00
|
|
|
<p style='margin-top: 1em'><a href="{{ .Permalink }}">Ler tudo</a></p>
|
2021-10-28 14:52:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
<p class="see-more body-width">
|
2021-11-01 17:36:46 +00:00
|
|
|
<a href="{{ (site.GetPage "noticias").Permalink }}">Ver mais notícias</a>
|
2021-10-28 14:52:49 +00:00
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class='campaigns-section'>
|
|
|
|
<h2 class="pull-header body-width">Iniciativas</h2>
|
|
|
|
<ul class='campaigns-list body-width'>
|
|
|
|
{{ $query := where site.RegularPages "Type" "iniciativas" }}
|
2021-11-09 14:59:04 +00:00
|
|
|
{{ $query := where $query "Params.featured" true }}
|
2021-10-28 14:52:49 +00:00
|
|
|
{{ $query = first 3 $query }}
|
|
|
|
|
|
|
|
{{ range $post := $query }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
{{ with (.Resources.ByType "image").GetMatch "*cover*" }}
|
2023-03-31 16:13:17 +00:00
|
|
|
<img class='campaign-cover' src="{{ .Permalink }}" alt="" />
|
2021-10-28 14:52:49 +00:00
|
|
|
{{ end }}
|
2023-03-31 16:18:48 +00:00
|
|
|
<h3 class='title'>{{ .Title }}</h3>
|
2021-10-28 14:52:49 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class='events-section'>
|
|
|
|
<h2 class="pull-header body-width">Próximos eventos</h2>
|
|
|
|
<ul class='events-list body-width'>
|
|
|
|
{{ $query := where site.RegularPages "Type" "eventos" }}
|
|
|
|
{{ $query = where $query "Params.metadata.event.date.finish" ">=" (now.Format "2006-01-02") }}
|
2022-01-06 14:22:03 +00:00
|
|
|
{{ $query = sort $query "Params.metadata.event.date.start" }}
|
2021-10-28 14:52:49 +00:00
|
|
|
{{ $query = first 3 $query }}
|
|
|
|
|
|
|
|
{{ range $post := $query }}
|
|
|
|
<li>
|
2023-03-31 16:46:28 +00:00
|
|
|
<a class="wrapper" href="{{ .Permalink }}">
|
|
|
|
{{ partial "thumbnail" . }}
|
|
|
|
<div class='text'>
|
|
|
|
<p class="headline">{{ .Title }}</p>
|
|
|
|
<p class="subheader">
|
|
|
|
<span class="date">{{ partial "event-date" . }}</span>
|
|
|
|
—
|
|
|
|
<span class='location'>{{ .Params.metadata.event.location }}</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
2021-10-28 14:52:49 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2022-01-18 14:27:38 +00:00
|
|
|
<p class="see-more body-width">
|
|
|
|
<a href="{{ (site.GetPage "eventos").Permalink }}">Ver mais eventos</a>
|
|
|
|
</p>
|
2021-10-28 14:52:49 +00:00
|
|
|
<p class="see-more body-width">
|
|
|
|
Falta aqui algum evento?
|
|
|
|
<a href="mailto:contacto@ansol.org">manda-nos uma mensagem</a>
|
|
|
|
</p>
|
|
|
|
</section>
|
2020-06-11 11:46:16 +00:00
|
|
|
{{- end -}}
|