From 0f27c48dddc89c1fc734dd51a8f67f37f5053a49 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Wed, 19 Jul 2023 16:06:47 +0100 Subject: [PATCH] Adiciona pesquisa --- .gitignore | 1 + Makefile | 5 ++ README.md | 3 +- config.toml | 2 +- content/search/_index.md | 0 layouts/_default/baseof.html | 6 ++ layouts/search/list.html | 118 +++++++++++++++++++++++++++++++++++ mkstork.sh | 18 ++++++ static/img/search.svg | 39 ++++++++++++ static/styles.css | 26 ++++++++ stork.toml | 26 ++++++++ 11 files changed, 242 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 content/search/_index.md create mode 100644 layouts/search/list.html create mode 100755 mkstork.sh create mode 100644 static/img/search.svg create mode 100644 stork.toml diff --git a/.gitignore b/.gitignore index 55789e1..1cbb57c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /content/archy /public *.lock +/static/pesquisa.st diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..17aecce --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +all: + ./mkarchive.sh + ./mkstork.sh > stork.toml + stork build -i stork.toml -o static/pesquisa.st + hugo diff --git a/README.md b/README.md index 1074e1d..db6201f 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,11 @@ Plataforma dedicada à divulgação de informação sobre DRM em Portugal. ## Tarefas em falta -- [ ] Pesquisa +- [x] Pesquisa - [ ] Garantir acessibilidade, foco no carrossel na página principal - [ ] 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 - [ ] Substituir `/img/logo.png` por versão de melhor qualidade +- [ ] Fazer self-host do stork.{js,wasm} diff --git a/config.toml b/config.toml index e084a4b..19716bb 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = 'http://example.org/' +baseURL = 'https://drmpt.pxto.pt/' languageCode = 'pt-pt' defaultContentLanguage = "pt" title = "DRM Portugal" diff --git a/content/search/_index.md b/content/search/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a866576..fbf31b1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -43,6 +43,11 @@