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

Força UTF8

This commit is contained in:
Hugo Peixoto 2024-01-01 16:23:17 +00:00
parent 98d4599d3e
commit d597878342
3 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class YAMLFrontMatter
end
Dir["content/eventos/*/index.md"].each do |filename|
metadata, _ = YAMLFrontMatter.extract(File.read(filename))
metadata, _ = YAMLFrontMatter.extract(File.read(filename, encoding: 'UTF-8'))
raise "#{filename}: wrong layout: #{metadata["layout"]}" unless metadata["layout"] == "evento"
raise "#{filename}: no title" unless metadata.keys.include?("title")

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

View File

@ -1,6 +1,7 @@
---
layout: evento
title: Dia do Domínio Público 2024
showcover: false
metadata:
event:
location: Biblioteca Nacional de Portugal, Campo Grande, 83, Lisboa
@ -11,7 +12,7 @@ metadata:
finish: 2024-01-05 17:00:00
---
![](cartaz.png)
![](cartaz.jpg)
A Wikimedia Portugal e a Biblioteca Nacional de Portugal voltam a unir esforços
para a organização do Dia do Domínio Público, um evento anual de comemoração