diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html new file mode 100644 index 0000000..d177c08 --- /dev/null +++ b/layouts/_default/archives.html @@ -0,0 +1,52 @@ +{{ define "main" }} + +
+
+

{{ .Title }}

+

{{ .Params.subtitle }}

+
+
+ +{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} + +
+
+
+ {{ $maxCategoryToShow := $.Site.Params.maxCategoryToShow | default 5 }} + {{ range .Site.Taxonomies.categories.TaxonomyArray | first $maxCategoryToShow }} +
+ {{ .Page.Title }}{{ .Count }} +
+ {{ end }} +
+ + +
+
+
+ {{ range $pages.GroupByDate "2006" }} +
+

{{ .Key }}

+
+ {{ range .Pages }} +
+ +
+ +

{{ .Title }}

+
+
+
+ {{ end }} +
+
+ {{ end }} +
+
+
+ +{{- $opts := dict "minify" hugo.IsProduction -}} +{{ $search := resources.Get "ts/search.ts" | js.Build $opts | fingerprint }} + + +{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..a1afb33 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,13 @@ + + + {{ partial "head/head" . }} + {{ partialCached "head/colorScheme" . }} + + + {{ partial "header.html" . }} +
+ {{ block "main" . }}{{ end }} +
+ {{ partialCached "footer/footer" . }} + + \ No newline at end of file diff --git a/layouts/_default/index.html b/layouts/_default/index.html new file mode 100644 index 0000000..a5d048e --- /dev/null +++ b/layouts/_default/index.html @@ -0,0 +1,79 @@ +{{ define "main" }} + +
+
+
+ {{ with .Content }} + {{ . }} + {{ end }} +
+ {{ range $name, $path := $.Param "socialOptions" }} + {{ if (and $path (ne $name "email")) }} + + {{ partial (print "svgs/social/" $name ".svg") (dict "width" 25 "height" 25) }} + + {{ end }} + {{ if (and $path (eq $name "email")) }} + + {{ partial (print "svgs/social/" $name ".svg") (dict "width" 25 "height" 25) }} + + {{ end }} + {{ end }} +
+
+
+
+ +{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} +{{ $projects := where .Site.RegularPages "Section" "projects" }} +{{ $pages = .Paginate ($pages) }} +{{ $archivesPage := first 1 (where .Site.RegularPages "Layout" "eq" "archives") }} + +
+
+

+ Últimas Postagens + {{ range $archivesPage }} + Ver todas + {{ end }} +

+
+ {{ range $pages.Pages }} +
+ +
+ +

{{ .Title }}

+
+ +
+
+ {{ end }} +
+
+ {{ if gt (len $projects) 0}} +
+

Projetos

+
+ {{ range $projects.ByWeight }} +
+
+ +
{{ .Params.icon }}
+

{{ .Title }}

+
+
{{ .Params.description }}
+
+
+ Source +
+
+ {{ end }} +
+
+ {{ end }} +
+ +{{ end }} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..7c31bcf --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,59 @@ +{{ define "main" }} + +{{ $pages := .Pages }} +{{ $pages = (.Paginate $pages).Pages }} + +
+
+

{{ .Title }}

+

+ {{ len .Pages }} postagens encontradas. +

+
+
+ +
+
+
+
+
+ {{ range $pages }} +
+ +
+ +

{{ .Title }}

+
+ +
+
+ {{ end }} +
+
+
+
+
+ +{{- $scope := .Site }} +{{- $paginator := .Paginate (where $scope.RegularPages ".Params.type" "!=" "page") }} + +{{- if gt $paginator.TotalPages 1}} +
+
+ +
+
+{{ end }} + +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9496e79 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,59 @@ +{{ define "main" }} +
+
+
+
+
+

{{ .Title }}

+ +
+
+
+
+ +
+ {{ .Content }} +
+
+ +
+ {{ if .Section }} + + {{ end }} +
+{{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}} +
+ {{ partial "comments/include" . }} +
+{{ end }} + + +{{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..1054cb0 --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,22 @@ +{{ define "main" }} + +{{ $pages := .Pages }} +{{ $pages = (.Paginate $pages).Pages }} + +
+
+

{{ .Title }}

+
+
+ +
+
+
+ {{ range (index .Site.Taxonomies (.Title | lower)) }} + {{ .Page.Title }} {{ .Count }} + {{ end }} +
+
+
+ +{{ end }}