Add redirects and gitlab ci

This commit is contained in:
Hugo Peixoto 2023-07-20 23:09:19 +01:00
parent e7c20ee460
commit 95bfe8a17f
4 changed files with 31 additions and 1 deletions

27
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,27 @@
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
# Set this if you intend to use Git submodules
variables:
GIT_SUBMODULE_STRATEGY: recursive
HUGO_ENV: production
default:
before_script:
- apk add --update --no-cache git go
- git submodule update --init --recursive
- hugo mod init gitlab.com/pages/hugo
test:
script:
- make
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
script:
- make
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

View File

@ -3,3 +3,4 @@ all:
./mkstork.sh > stork.toml
stork build -i stork.toml -o static/pesquisa.st
hugo
cp _redirects public/

View File

@ -7,7 +7,7 @@ Plataforma dedicada à divulgação de informação sobre DRM em Portugal.
- [x] Pesquisa
- [ ] Garantir acessibilidade, foco no carrossel na página principal
- [ ] Garantir que o link antigo de RSS funciona (`/feed/`)
- [x] Garantir que o link antigo de RSS funciona (`/feed/`)
- [ ] Meter o carrossel a andar sozinho com um bocadinho de javascript
- [ ] Remover google fonts (Oswald)
- [ ] Fazer upload dos vídeos do youtube para o viste.pt e adicionar embeds

2
_redirects Normal file
View File

@ -0,0 +1,2 @@
/feed/ /index.xml 200
/feed /index.xml 200