diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..596eec5 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/Makefile b/Makefile index 17aecce..e4f0909 100644 --- a/Makefile +++ b/Makefile @@ -3,3 +3,4 @@ all: ./mkstork.sh > stork.toml stork build -i stork.toml -o static/pesquisa.st hugo + cp _redirects public/ diff --git a/README.md b/README.md index db6201f..f3adab9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/_redirects b/_redirects new file mode 100644 index 0000000..3d55596 --- /dev/null +++ b/_redirects @@ -0,0 +1,2 @@ +/feed/ /index.xml 200 +/feed /index.xml 200