diff --git a/layouts/404.html b/layouts/404.html index d5b27a6..04807cd 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,6 +1,6 @@ {{ partial "head.html" . }} - {{ partial "nav.html" . }} + {{ partial "navigation.html" . }}
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..3a7f169 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,16 @@ + + + + {{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} + + {{ partialCached "site-head.html" . }} + + + + + {{ partial "navigation.html" . }} + {{ block "header" . }}{{ end }} + {{ block "main" . }}{{ end }} + {{ block "footer" . }}{{ end }} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 29b95c9..0aec539 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ partial "head.html" . }} - {{ partial "nav.html" . }} + {{ partial "navigation.html" . }} {{ partial "profile.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 344fff9..a502e05 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ partial "head.html" . }} - {{ partial "nav.html" . }} + {{ partial "navigation.html" . }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 40459dd..52525bf 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,6 +1,6 @@ {{ partial "head.html" . }} - {{ partial "nav.html" . }} + {{ partial "navigation.html" . }} {{ partial "profile.html" . }} diff --git a/layouts/index copy-back.html b/layouts/index copy-back.html new file mode 100644 index 0000000..74411da --- /dev/null +++ b/layouts/index copy-back.html @@ -0,0 +1,15 @@ + {{ partial "head.html" . }} + + {{ partial "nav.html" . }} + + {{ partial "profile.html" . }} + +
+ {{ partial "post-list.html" . }} + {{ partial "pagination.html" . }} + {{ partial "footer.html" . }} +
+ + {{ partial "js.html" . }} + + diff --git a/layouts/index.html b/layouts/index.html index 74411da..0778fbb 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,15 +1,27 @@ - {{ partial "head.html" . }} - - {{ partial "nav.html" . }} +{{ define "main" }} + {{ partial "profile.html" . }} - {{ partial "profile.html" . }} -
- {{ partial "post-list.html" . }} - {{ partial "pagination.html" . }} - {{ partial "footer.html" . }} -
- - {{ partial "js.html" . }} - - +
+ +
+{{ end }} diff --git a/layouts/partials/nav.html b/layouts/partials/navigation.html similarity index 87% rename from layouts/partials/nav.html rename to layouts/partials/navigation.html index 4904499..bed4e0d 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/navigation.html @@ -4,7 +4,6 @@ {{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }} {{ end }} {{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }} - {{ with .Site.Params.tags }}{{ . }}{{ else }}Tags{{ end }} {{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }} {{ range $key, $val := .Site.Params.Links }} diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index 2b5d98e..2b2a1ac 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -1,11 +1,13 @@
-
- -
-
+
+ +
+ \ No newline at end of file diff --git a/layouts/partials/site-head.html b/layouts/partials/site-head.html new file mode 100644 index 0000000..a25141f --- /dev/null +++ b/layouts/partials/site-head.html @@ -0,0 +1,31 @@ + + + + +{{ hugo.Generator }} +{{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}} +{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + +{{ else }} + +{{ end }} + + + + + +{{ if .OutputFormats.Get "RSS" }} + {{ with .OutputFormats.Get "RSS" }} + + + {{ end }} +{{ end }} + +{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}} +{{- template "_internal/opengraph.html" . -}} +{{- template "_internal/schema.html" . -}} +{{- template "_internal/twitter_cards.html" . -}} + +{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + {{ template "_internal/google_analytics_async.html" . }} +{{ end }} diff --git a/layouts/section/about.html b/layouts/section/about.html index c01cd42..00c0260 100644 --- a/layouts/section/about.html +++ b/layouts/section/about.html @@ -1,6 +1,6 @@ {{ partial "head.html" . }} -{{ partial "nav.html" . }} +{{ partial "navigation.html" . }} {{ partial "profile.html" . }}