diff --git a/layouts/404.html b/layouts/404.html index 78875eb..e69de29 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,7 +0,0 @@ -{{ partial "header" . }} - -

- Page not found -

- -{{ partial "footer" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/single.html b/layouts/_default/single.html index de4b8f6..9d19754 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,3 +1,12 @@ -{{ partial "header" . }} -{{ .Content }} -{{ partial "footer" . }} +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} + +
+
+
+ {{ .Content }} +
+
+
+ +{{ partial "footer.html" . }} diff --git a/layouts/docs/list.html b/layouts/docs/list.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/docs/single.html b/layouts/docs/single.html new file mode 100644 index 0000000..1a40d3a --- /dev/null +++ b/layouts/docs/single.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} + +
+
+ +
+ {{ .Content }} +
+
+
+ +{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 5557fb8..aba2572 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,17 @@ {{ partial "header" . }} +{{ partial "navbar" . }} -{{ range where .Site.Pages "Type" "index" }} - {{ .Content }} -{{ end }} +
+
+ +
+ {{ range where .Site.Pages "Type" "index" }} + {{ .Content }} + {{ end }} +
+
+
{{ partial "footer" . }} diff --git a/layouts/page/list.html b/layouts/page/list.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/page/single.html b/layouts/page/single.html new file mode 100644 index 0000000..1a40d3a --- /dev/null +++ b/layouts/page/single.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} + +
+
+ +
+ {{ .Content }} +
+
+
+ +{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b605728..ead7594 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,2 +1,22 @@ - + + + + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 272d3d4..82447b0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,23 +1,35 @@ - - {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} - {{ .Hugo.Generator }} + + {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} + {{ .Hugo.Generator }} - {{ with .Params.goimport }} - - {{ end }} + {{ with .Params.goimport }} + + {{ end }} - {{ with .Params.gosource }} - - {{ end }} + {{ with .Params.gosource }} + + {{ end }} - - + + - - - - - {{ partial "navbar" . }} + {{ with .RSSLink }} + + + {{ end }} + + + + + + + + + + + + + diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index e69de29..8598f4c 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -0,0 +1,2 @@ +{{ partial "pages.html" . }} +{{ partial "toc.html" . }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 60ba9fe..5ff2578 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -1 +1,20 @@ -{{ partial "menu" . }} + diff --git a/layouts/partials/pages.html b/layouts/partials/pages.html new file mode 100644 index 0000000..6a3dd12 --- /dev/null +++ b/layouts/partials/pages.html @@ -0,0 +1,12 @@ +
+ +
diff --git a/layouts/partials/title.html b/layouts/partials/title.html new file mode 100644 index 0000000..79f2fe3 --- /dev/null +++ b/layouts/partials/title.html @@ -0,0 +1 @@ +{{ .Site.Title }} diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html new file mode 100644 index 0000000..9ac136f --- /dev/null +++ b/layouts/partials/toc.html @@ -0,0 +1,5 @@ +{{ if .Params.toc }} +
+ {{ .TableOfContents }} +
+{{ end }} diff --git a/layouts/partials/toplinks.html b/layouts/partials/toplinks.html new file mode 100644 index 0000000..29d723d --- /dev/null +++ b/layouts/partials/toplinks.html @@ -0,0 +1,38 @@ + diff --git a/layouts/post/list.html b/layouts/post/list.html new file mode 100644 index 0000000..7ddb981 --- /dev/null +++ b/layouts/post/list.html @@ -0,0 +1,50 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} + +
+
+
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }} + + {{ end }} + + {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} +
+ {{ if and (.Paginator.HasPrev) (.Paginator.HasNext) }} + {{ i18n "page_prev" }} + {{ i18n "page_next" }} + {{ end }} + {{ if and (.Paginator.HasPrev) (not .Paginator.HasNext) }} + {{ i18n "page_prev" }} + {{ i18n "page_next" }} + {{ end }} + {{ if and (not .Paginator.HasPrev) (.Paginator.HasNext) }} + {{ i18n "page_prev" }} + {{ i18n "page_next" }} + {{ end }} +
+ {{ end }} +
+
+
+ +{{ partial "footer.html" . }} diff --git a/layouts/post/single.html b/layouts/post/single.html new file mode 100644 index 0000000..fe70b76 --- /dev/null +++ b/layouts/post/single.html @@ -0,0 +1,27 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} + +
+
+
+
+
+

+ + {{ .Title }} + +

+

+ {{ .Date.Format "Mon Jan 2, 2006" }} + {{ i18n "authored_by" }} + {{ .Params.author | default .Site.Params.author }} +

+
+ + {{ .Content }} +
+
+
+
+ +{{ partial "footer.html" . }}