diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..30648f5 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,66 @@ + + + + + + + + {{ "" | safeHTML }} + + {{ if .Site.Params.description }}{{ end }} + {{ if .Site.Params.author }}{{ end }} + + {{ .Hugo.Generator }} + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + {{ "" | safeHTML }} + + + + + +
+
+ +
+
+ +
+
+

{{ .Site.Title | safeHTML }}

+ {{ if .Site.Params.description }}

{{ .Site.Params.description | safeHTML }}

{{ end }} +
+
+ +
+
+
+ + {{ block "main" . }} + + {{ end }} + +
{{ "" | safeHTML }} + + {{ if not .Site.Params.sidebar.hide }} + {{ partial "sidebar.html" . }} + {{ end }} + +
{{ "" | safeHTML }} +
{{ "" | safeHTML }} + + + + + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..2039ed6 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,7 @@ +{{ define "main" }} + + {{ range .Data.Pages }} + {{ .Render "summary"}} + {{ end }} + +{{ end }} diff --git a/layouts/partials/content.html b/layouts/_default/single.html similarity index 59% rename from layouts/partials/content.html rename to layouts/_default/single.html index 9c8e4df..f3c8372 100644 --- a/layouts/partials/content.html +++ b/layouts/_default/single.html @@ -1,16 +1,8 @@ -
-
-
+{{ define "title" }}{{ .Title }} – {{ .Site.Title }}{{ end }} +{{ define "main" }} -
- - {{ if not .Site.Params.sidebar.hide }} - {{ partial "sidebar.html" . }} - {{ end }} - -
-
+{{ end }} diff --git a/layouts/post/summary.html b/layouts/_default/summary.html similarity index 100% rename from layouts/post/summary.html rename to layouts/_default/summary.html diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index d4693ff..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ partial "head.html" . }} - -{{ partial "menu.html" . }} - -{{ partial "header.html" . }} - -{{ partial "content-summary.html" . }} - -{{ partial "footer.html" . }} - -{{ partial "after-footer.html" . }} diff --git a/layouts/partials/after-footer.html b/layouts/partials/after-footer.html deleted file mode 100644 index 15b9011..0000000 --- a/layouts/partials/after-footer.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/layouts/partials/content-summary.html b/layouts/partials/content-summary.html deleted file mode 100644 index 03f88e4..0000000 --- a/layouts/partials/content-summary.html +++ /dev/null @@ -1,14 +0,0 @@ -
-
-
- {{ range .Data.Pages }} - {{ .Render "summary"}} - {{ end }} -
- - {{ if not .Site.Params.sidebar.hide }} - {{ partial "sidebar.html" . }} - {{ end }} - -
-
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index ab600b2..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 18784f0..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - {{ if .Site.Params.description }}{{ end }} - {{ if .Site.Params.author }}{{ end }} - - {{ .Hugo.Generator }} - - - - - {{ .Title }} - - - - - - diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index 361dbda..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,6 +0,0 @@ -
-
-

{{ .Site.Title | safeHTML }}

- {{ if .Site.Params.description }}

{{ .Site.Params.description | safeHTML }}

{{ end }} -
-
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html deleted file mode 100644 index ff49965..0000000 --- a/layouts/partials/menu.html +++ /dev/null @@ -1,7 +0,0 @@ -
-
- -
-
diff --git a/layouts/post/single.html b/layouts/post/single.html deleted file mode 100644 index b530878..0000000 --- a/layouts/post/single.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ partial "head.html" . }} - -{{ partial "menu.html" . }} - -{{ partial "header.html" . }} - -{{ partial "content.html" . }} - -{{ partial "footer.html" . }} - -{{ partial "after-footer.html" . }}