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 0000000..c9a27e7 Binary files /dev/null and b/static/img/logo.png differ