7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-25 15:43:17 +00:00

Move "portateis livres" to iniciativas

Also, only show `featured: true` iniciativas on the homepage.
This commit is contained in:
Hugo Peixoto 2021-11-09 14:59:04 +00:00
parent 12f7114fd1
commit 05ad1e08ae
6 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,7 @@
--- ---
layout: article layout: article
title: Diz Não ao DRM title: Diz Não ao DRM
featured: true
--- ---
[Diz Não ao DRM](https://drm-pt.info/) [Diz Não ao DRM](https://drm-pt.info/)

View File

@ -1,13 +1,12 @@
--- ---
categories: [] categories: []
metadata: metadata:
slide:
- slide_value: 0
node_id: 107 node_id: 107
layout: page layout: page
title: Monitorização do RNID title: Monitorização do RNID
created: 1353368583 created: 1353368583
date: 2012-11-19 date: 2012-11-19
featured: true
aliases: aliases:
- "/node/107/" - "/node/107/"
- "/normasabertas/rnid/" - "/normasabertas/rnid/"

View File

@ -1,12 +1,8 @@
--- ---
categories: []
metadata: metadata:
slide:
- slide_value: 0
node_id: 406 node_id: 406
layout: page layout: page
title: Portáteis Livres title: Portáteis Livres
created: 1458730476
date: 2016-03-23 date: 2016-03-23
aliases: aliases:
- "/node/406/" - "/node/406/"

View File

@ -5,6 +5,7 @@ layout: article
title: Dinheiro Público? Código Público! title: Dinheiro Público? Código Público!
created: 1505338768 created: 1505338768
date: 2017-09-13 date: 2017-09-13
featured: true
aliases: aliases:
- "/article/521/" - "/article/521/"
- "/node/521/" - "/node/521/"

View File

@ -1 +0,0 @@
oi

View File

@ -51,6 +51,7 @@
<h2 class="pull-header body-width">Iniciativas</h2> <h2 class="pull-header body-width">Iniciativas</h2>
<ul class='campaigns-list body-width'> <ul class='campaigns-list body-width'>
{{ $query := where site.RegularPages "Type" "iniciativas" }} {{ $query := where site.RegularPages "Type" "iniciativas" }}
{{ $query := where $query "Params.featured" true }}
{{ $query = first 3 $query }} {{ $query = first 3 $query }}
{{ range $post := $query }} {{ range $post := $query }}