diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8f80921..5677434 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,23 +1,23 @@ - - - - {{ partial "style.html" "scss/style.scss" }} - {{ partial "style.html" "css/highlight.css" }} - {{ partial "style.html" "css/font-awesome.css" }} + + + + {{ partial "style.html" "scss/style.scss" }} + {{ partial "style.html" "css/highlight.css" }} + {{ partial "style.html" "css/font-awesome.css" }} - {{ partial "favicon.html" }} + {{ partial "favicon.html" }} - {{ partial "title-item.html" . }}{{ .Site.Title }} - - - {{ partial "navbar.html" . }} - {{ block "main" . }}{{ end }} - {{ partial "footer.html" . }} + {{ partial "title-item.html" . }}{{ .Site.Title }} + + + {{ partial "navbar.html" . }} + {{ block "main" . }}{{ end }} + {{ partial "footer.html" . }} - {{ partial "script.html" "js/jquery.min.js" }} - {{ partial "script_async.html" "js/bootstrap.min.js" }} - {{ block "scripts_extra" . }}{{ end }} - + {{ partial "script.html" "js/jquery.min.js" }} + {{ partial "script_async.html" "js/bootstrap.min.js" }} + {{ block "scripts_extra" . }}{{ end }} + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1f1611d..d86569d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,13 +1,13 @@ {{ define "main" }}
- {{ partial "content.html" . }} - {{ if .Content }} -
- {{ end }} - {{ range .Pages.ByTitle }} - {{ partial "list_item.html" . }} - {{ end }} + {{ partial "content.html" . }} + {{ if .Content }} +
+ {{ end }} + {{ range .Pages.ByTitle }} + {{ partial "list_item.html" . }} + {{ end }}
{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 59e4493..166c188 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "main" }} -
-
- {{ partial "content.html" . }} -
+
+
+ {{ partial "content.html" . }}
+
{{ end }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 65e701e..33c936a 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,21 +1,21 @@

{{ .Title }}

{{ if .Params.subtitle }} -
{{ markdownify .Params.subtitle | emojify }}
+
{{ markdownify .Params.subtitle | emojify }}
{{ end }} {{ if .IsPage }} -

{{ partial "content-details.html" . }}

+

{{ partial "content-details.html" . }}

{{ end }} {{ if .Content }} -
+
-
- {{ if .TableOfContents }} -
- {{ .TableOfContents }} -
- {{ end }} - {{ .Content }} -
+
+ {{ if .TableOfContents }} +
+ {{ .TableOfContents }} +
+ {{ end }} + {{ .Content }} +
{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 43bfa06..57fb7f5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,18 +1,18 @@ diff --git a/layouts/partials/list_item.html b/layouts/partials/list_item.html index fe465f1..e190a65 100644 --- a/layouts/partials/list_item.html +++ b/layouts/partials/list_item.html @@ -1,9 +1,9 @@
-
- -
{{ .Title }}
-
- {{ partial "content-details.html" . }} -

{{ partial "summary.html" . }}

-
+
+ +
{{ .Title }}
+
+ {{ partial "content-details.html" . }} +

{{ partial "summary.html" . }}

+
diff --git a/layouts/partials/script.html b/layouts/partials/script.html index 9be13e8..2c298a5 100644 --- a/layouts/partials/script.html +++ b/layouts/partials/script.html @@ -1,9 +1,9 @@ {{ $script := resources.Get . }} {{ if in . "min" }} - {{ $script = $script | minify | fingerprint }} + {{ $script = $script | minify | fingerprint }} {{ else }} - {{ $script = $script | js.Build (dict "minify" true) | fingerprint }} + {{ $script = $script | js.Build (dict "minify" true) | fingerprint }} {{ end }} diff --git a/layouts/partials/script_async.html b/layouts/partials/script_async.html index b3b273d..16aded7 100644 --- a/layouts/partials/script_async.html +++ b/layouts/partials/script_async.html @@ -1,9 +1,9 @@ {{ $script := resources.Get . }} {{ if in . "min" }} - {{ $script = $script | minify | fingerprint }} + {{ $script = $script | minify | fingerprint }} {{ else }} - {{ $script = $script | js.Build (dict "minify" true) | fingerprint }} + {{ $script = $script | js.Build (dict "minify" true) | fingerprint }} {{ end }} diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html index 053c05b..023514f 100644 --- a/layouts/partials/summary.html +++ b/layouts/partials/summary.html @@ -1,5 +1,5 @@ {{ if .Content }} - {{ .Summary | chomp }}{{ if .Truncated }}…{{ end }} + {{ .Summary | chomp }}{{ if .Truncated }}…{{ end }} {{ else if .Params.subtitle }} - {{ .Params.subtitle | markdownify | emojify }} + {{ .Params.subtitle | markdownify | emojify }} {{ end }} diff --git a/layouts/partials/title-item.html b/layouts/partials/title-item.html index fef1c05..ff04ab0 100644 --- a/layouts/partials/title-item.html +++ b/layouts/partials/title-item.html @@ -1,5 +1,5 @@ {{ .Title }} :: {{ if .Parent }}{{ if not .Parent.IsHome }} - {{ partial "title-item.html" .Parent }} + {{ partial "title-item.html" .Parent }} {{ end }}{{ end }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 22c7f97..662b8de 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,22 +1,22 @@ {{ define "main" }} -
-
- {{ partial "content.html" . }} +
+
+ {{ partial "content.html" . }} - - {{ range .Pages.GroupByDate "2006-01" }} - {{ $month := print .Key "-01"}} - {{ $display := dateFormat "2006-01" $month }} -

- - - -

- - {{ range (sort .Pages "Date" "desc") }} - {{ partial "list_item.html" . }} - {{ end }} - {{ end }} -
+ + {{ range .Pages.GroupByDate "2006-01" }} + {{ $month := print .Key "-01"}} + {{ $display := dateFormat "2006-01" $month }} +

+ + + +

+ + {{ range (sort .Pages "Date" "desc") }} + {{ partial "list_item.html" . }} + {{ end }} + {{ end }}
+
{{ end }}