From 4db982bb015eddb624e4c7f5776596b166dbaae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20F=2E=20A=2E=20de=20Pr=C3=A1?= Date: Wed, 28 Feb 2018 22:38:59 -0300 Subject: Initial files --- layouts/404.html | 3 +++ layouts/_default/baseof.html | 44 ++++++++++++++++++++++++++++++++++++ layouts/_default/list.html | 6 +++++ layouts/_default/single.html | 6 +++++ layouts/index.html | 3 +++ layouts/partials/404.html | 7 ++++++ layouts/partials/footer.html | 5 +++++ layouts/partials/header.html | 14 ++++++++++++ layouts/partials/home.html | 11 +++++++++ layouts/partials/list.html | 11 +++++++++ layouts/partials/page.html | 9 ++++++++ layouts/partials/pagination.html | 48 ++++++++++++++++++++++++++++++++++++++++ layouts/partials/post.html | 10 +++++++++ layouts/posts/single.html | 6 +++++ 14 files changed, 183 insertions(+) create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/404.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/home.html create mode 100644 layouts/partials/list.html create mode 100644 layouts/partials/page.html create mode 100644 layouts/partials/pagination.html create mode 100644 layouts/partials/post.html create mode 100644 layouts/posts/single.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..23ecb19 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,3 @@ +{{ define "content" }} + {{ partial "404.html" . }} +{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..94d09a6 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,44 @@ + + + + + + + + {{ with .Site.Params.author }}{{ end }} + {{ with .Site.Params.description }}{{ end }} + {{ with .Site.Params.keywords }}{{ end }} + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + + + + + + + + + + {{ if .RSSLink }} + + + {{ end }} + + {{ .Hugo.Generator }} + + + +
+ {{ partial "header.html" . }} + +
+ {{ block "content" . }}{{ end }} +
+ + {{ partial "footer.html" . }} +
+ + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..0a18678 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,6 @@ +{{ define "title" }} + {{ .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} + {{ partial "list.html" . }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..93ec22c --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,6 @@ +{{ define "title" }} + {{ .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} + {{ partial "page.html" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..b829b61 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "content" }} + {{ partial "home.html" . }} +{{ end }} diff --git a/layouts/partials/404.html b/layouts/partials/404.html new file mode 100644 index 0000000..7df669c --- /dev/null +++ b/layouts/partials/404.html @@ -0,0 +1,7 @@ +
+
+

404

+

Page Not Found

+

Sorry, this page does not exist.
You can head back to homepage.

+
+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..f674f1d --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..caa698f --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,14 @@ + diff --git a/layouts/partials/home.html b/layouts/partials/home.html new file mode 100644 index 0000000..6c44ae0 --- /dev/null +++ b/layouts/partials/home.html @@ -0,0 +1,11 @@ +
+
+

{{ .Site.Params.author }}

+

{{ .Site.Params.info }}

+
    + {{ range sort .Site.Params.social }} +
  • {{ .name }}
  • + {{ end }} +
+
+
diff --git a/layouts/partials/list.html b/layouts/partials/list.html new file mode 100644 index 0000000..f62516b --- /dev/null +++ b/layouts/partials/list.html @@ -0,0 +1,11 @@ +
+

{{ .Title }}

+ + {{ partial "pagination.html" . }} +
diff --git a/layouts/partials/page.html b/layouts/partials/page.html new file mode 100644 index 0000000..d39a27e --- /dev/null +++ b/layouts/partials/page.html @@ -0,0 +1,9 @@ +
+
+
+

{{ .Title }}

+
+ + {{ .Content }} +
+
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..1e004b8 --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,48 @@ +{{ $paginator := .Paginator }} +{{ $adjacent_links := 2 }} +{{ $max_links := (add (mul $adjacent_links 2) 1) }} +{{ $lower_limit := (add $adjacent_links 1) }} +{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }} +{{ if gt $paginator.TotalPages 1 }} + +{{ end }} diff --git a/layouts/partials/post.html b/layouts/partials/post.html new file mode 100644 index 0000000..5e8e4dd --- /dev/null +++ b/layouts/partials/post.html @@ -0,0 +1,10 @@ +
+
+
+

{{ .Title }}

+

{{ .Date.Format "January 2, 2006" }}

+
+ + {{ .Content }} +
+
diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..75b30ed --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,6 @@ +{{ define "title" }} + {{ .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} + {{ partial "post.html" . }} +{{ end }} -- cgit v1.2.3