From d9a036d2b9c3eadaf1de1033bc2cfb42e073d459 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Tue, 18 Jul 2023 23:26:43 +0100 Subject: [PATCH] =?UTF-8?q?Adiciona=20configura=C3=A7=C3=A3o=20basica=20do?= =?UTF-8?q?=20Hugo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archetypes/default.md | 6 ++++ config.toml | 11 +++++++ layouts/_default/baseof.html | 58 +++++++++++++++++++++++++++++++++++ layouts/_default/list.html | 6 ++++ layouts/_default/single.html | 30 ++++++++++++++++++ static/img/logo.png | Bin 0 -> 4527 bytes 6 files changed, 111 insertions(+) create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 static/img/logo.png diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..37c4507 --- /dev/null +++ b/config.toml @@ -0,0 +1,11 @@ +baseURL = 'http://example.org/' +languageCode = 'pt-pt' +defaultContentLanguage = "pt" +title = "DRM Portugal" + +[markup.goldmark.renderer] +unsafe= true + +[permalinks] + [permalinks.page] + artigos = "/:year/:month/:day/:filename" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..0ebafb3 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,58 @@ + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + + +
+ DRM PT +
+ + + +
+ {{ block "main" . }} + {{ end }} +
+ + + + + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..bcdde22 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,6 @@ +{{ define "main" }} +lista: + {{ range .Pages }} +

{{ .Title }}

+ {{ end }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..5ff0595 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,30 @@ +{{ define "title" }} +{{ .Title }} | {{ .Site.Title }} +{{ end }} +{{ define "main" }} +

{{ .Title }}

+ + {{ .Params.coverdescription }} + {{ .Params.coverdescription }} + {{ .Params.coverdescription }} + + {{ .Content }} + + {{ if (eq .Section "artigos") }} +
+

+ Publicado por {{ .Params.author }} + // + {{ if .Params.categories }} + {{ range $index, $name := .Params.categories }} + {{ $name }}{{ if ne (add $index 1) (len $.Params.categories) }}, {{ end }} + {{ end }} + {{ else }} + Sem categoria + {{ end }} + // + {{ time.Format "02 de January, 2006" .Date }} +

+ {{ end }} + +{{ end }} diff --git a/static/img/logo.png b/static/img/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..c9a27e71070280e0931c424d0470ad8335e2db52 GIT binary patch literal 4527 zcmchb=Tj3v)4&4=5_*^35u}4CC=vt>O^q}$AW9MG(o5)sjzOvvr8h;2^bP@uG((4g z0to^_=%HwYg!1Nj|AuFtnVp^ca5J~J<#&6VXbjP3X5eQ4007K}2KP+?04jOP+KQfz zqN%;zga82c0K@w_=CHh7Y>=P%lY-0po(h(grkPrjG4hgZsh9Y5xGsJBrMnPWp}@dv zIU{;=g*unHlA~5;?;1qj)#Yk1kG)%D`s8!v z3@GATOyu9auv*j4GmJgsw{F?)g%NNSe@DaqVFL^M2>-}B^kS+-JKHR5x(QG&XbjuW zqF(WsAv#(fvHLe=>gdH9bl_n6G-d{Q-2``ITXtQCXlewTxWIpBtG`X4C{(zL8&XQO zt4EU;S9q?*|I6JYZq6}!+#|jfOVzVL(=$iYv&8CeEoe@HRs1C-*T!6Oj_11jRE>jF zl9pg(2=rWHjzdS>1pdLU(s40VG+9-wtQ5^S7te08Y05Cpi`^?87NOpqD4zKJI}TY2 z5?3tb&}%ed8s^VygvM(*j}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