From 555e95319513c7c8289ffe9d188ca1899e5cf70d Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 21 May 2016 21:41:35 +0200 Subject: migrate to hugo --- layouts/_default/list.html | 13 +++++++++++++ layouts/_default/single.html | 13 +++++++++++++ layouts/index.html | 12 ++++++++++++ layouts/partials/footer.html | 10 ++++++++++ layouts/partials/header.html | 19 +++++++++++++++++++ 5 files changed, 67 insertions(+) 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/footer.html create mode 100644 layouts/partials/header.html (limited to 'layouts') diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..00e2181 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} + +
+

{{ .Title }}

+{{ range .Data.Pages }} + +{{ end }} +
+ +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..6aadea7 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} + +
+
+

{{ .Title }}

+ +
+ {{ .Content }} +
+
+
+ +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..673ab35 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} + +
+{{ range (where .Data.Pages ".Params.hidefromhome" "!=" "true") }} + +{{ end }} +
+ +{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..87a4c15 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ + + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..f8a935b --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,19 @@ + + + + +{{ .Hugo.Generator }} + + + +{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }} + + + +
+
+ + {{ if eq $isHomePage true }}

{{ .Site.Title }}

{{ end }} +
-- cgit v1.3.1