From c8ed21981541df8584ca44aaf382949e61e44a8f Mon Sep 17 00:00:00 2001 From: Chip Senkbeil Date: Fri, 25 Sep 2015 14:21:07 -0500 Subject: Refactored partials to subdirectories --- layouts/404.html | 12 ++--- layouts/_default/list.html | 14 +++--- layouts/_default/single.html | 14 +++--- layouts/_default/terms.html | 10 ++--- layouts/gallery/single.html | 10 ++--- layouts/index.html | 14 +++--- layouts/page/single.html | 10 ++--- layouts/partials/categories.html | 9 ---- layouts/partials/cell.html | 39 ----------------- layouts/partials/core/css.html | 8 ++++ layouts/partials/core/head.html | 36 +++++++++++++++ layouts/partials/core/html-end.html | 2 + layouts/partials/core/html-start.html | 6 +++ layouts/partials/core/js.html | 12 +++++ layouts/partials/core/main-menu.html | 58 +++++++++++++++++++++++++ layouts/partials/core/search-lightbox.html | 8 ++++ layouts/partials/core/search.html | 12 +++++ layouts/partials/css.html | 8 ---- layouts/partials/disqus.html | 26 ----------- layouts/partials/extra/disqus.html | 26 +++++++++++ layouts/partials/extra/pagination.html | 21 +++++++++ layouts/partials/footer.html | 0 layouts/partials/head.html | 36 --------------- layouts/partials/header-logo.html | 17 -------- layouts/partials/header-scrolling.html | 14 ------ layouts/partials/homepage/cell.html | 39 +++++++++++++++++ layouts/partials/homepage/header-logo.html | 17 ++++++++ layouts/partials/homepage/header-scrolling.html | 14 ++++++ layouts/partials/homepage/svg-face.html | 5 +++ layouts/partials/html-end.html | 2 - layouts/partials/html-start.html | 6 --- layouts/partials/js.html | 12 ----- layouts/partials/main-menu.html | 58 ------------------------- layouts/partials/page-item.html | 21 --------- layouts/partials/pagination.html | 21 --------- layouts/partials/post/categories.html | 9 ++++ layouts/partials/post/page-item.html | 21 +++++++++ layouts/partials/post/tags.html | 9 ++++ layouts/partials/search-lightbox.html | 8 ---- layouts/partials/search.html | 12 ----- layouts/partials/svg-face.html | 5 --- layouts/partials/tags.html | 9 ---- layouts/section/gallery.html | 12 ++--- 43 files changed, 351 insertions(+), 351 deletions(-) delete mode 100644 layouts/partials/categories.html delete mode 100644 layouts/partials/cell.html create mode 100644 layouts/partials/core/css.html create mode 100644 layouts/partials/core/head.html create mode 100644 layouts/partials/core/html-end.html create mode 100644 layouts/partials/core/html-start.html create mode 100644 layouts/partials/core/js.html create mode 100644 layouts/partials/core/main-menu.html create mode 100644 layouts/partials/core/search-lightbox.html create mode 100644 layouts/partials/core/search.html delete mode 100644 layouts/partials/css.html delete mode 100644 layouts/partials/disqus.html create mode 100644 layouts/partials/extra/disqus.html create mode 100644 layouts/partials/extra/pagination.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header-logo.html delete mode 100644 layouts/partials/header-scrolling.html create mode 100644 layouts/partials/homepage/cell.html create mode 100644 layouts/partials/homepage/header-logo.html create mode 100644 layouts/partials/homepage/header-scrolling.html create mode 100644 layouts/partials/homepage/svg-face.html delete mode 100644 layouts/partials/html-end.html delete mode 100644 layouts/partials/html-start.html delete mode 100644 layouts/partials/js.html delete mode 100644 layouts/partials/main-menu.html delete mode 100644 layouts/partials/page-item.html delete mode 100644 layouts/partials/pagination.html create mode 100644 layouts/partials/post/categories.html create mode 100644 layouts/partials/post/page-item.html create mode 100644 layouts/partials/post/tags.html delete mode 100644 layouts/partials/search-lightbox.html delete mode 100644 layouts/partials/search.html delete mode 100644 layouts/partials/svg-face.html delete mode 100644 layouts/partials/tags.html diff --git a/layouts/404.html b/layouts/404.html index ac24593..d6201d1 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,9 +1,9 @@ -{{ partial "html-start.html" . }} +{{ partial "core/html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/head.html" . }} - {{ partial "main-menu.html" . }} + {{ partial "core/main-menu.html" . }}
@@ -21,15 +21,15 @@
- {{ partial "search.html" . }} + {{ partial "core/search.html" . }}
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0eb6314..ffd64cd 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,22 +1,22 @@ -{{ partial "html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/html-start.html" . }} +{{ partial "core/head.html" . }} - {{ partial "main-menu.html" . }} + {{ partial "core/main-menu.html" . }}
{{ range .Paginator.Pages }}
- {{ partial "page-item.html" . }} + {{ partial "post/page-item.html" . }}
{{ end }}
- {{ partial "pagination.html" . }} + {{ partial "extra/pagination.html" . }}
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d9e2c21..c94f328 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,9 @@ -{{ partial "html-start.html" . }} +{{ partial "core/html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/head.html" . }} - {{ partial "main-menu.html" . }} + {{ partial "core/main-menu.html" . }}
@@ -16,9 +16,9 @@

{{ .Title }}

| - {{ partial "categories.html" . }} + {{ partial "post/categories.html" . }} | - {{ partial "tags.html" . }} + {{ partial "post/tags.html" . }}
@@ -39,8 +39,8 @@
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 96e742a..0af8669 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,10 +1,10 @@ -{{ partial "html-start.html" . }} +{{ partial "core/html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/head.html" . }} - {{ partial "main-menu.html" . }} + {{ partial "core/main-menu.html" . }}
@@ -34,8 +34,8 @@
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} diff --git a/layouts/gallery/single.html b/layouts/gallery/single.html index 7ba3cd7..eff71bf 100644 --- a/layouts/gallery/single.html +++ b/layouts/gallery/single.html @@ -1,15 +1,15 @@ -{{ partial "html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/html-start.html" . }} +{{ partial "core/head.html" . }} - {{ partial "main-menu.html" . }} + {{ partial "core/main-menu.html" . }}
{{ partial "gallery/item" . }}
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} diff --git a/layouts/index.html b/layouts/index.html index aac0152..01567b0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,11 +1,11 @@ -{{ partial "html-start.html" . }} +{{ partial "core/html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/head.html" . }}
{{ with .Site.Params.Header }} - {{ partial "header-scrolling.html" . }} + {{ partial "homepage/header-scrolling.html" . }} {{ end }}
@@ -13,7 +13,7 @@

    -
  • {{ partial "svg-face.html" . }}
  • +
  • {{ partial "homepage/svg-face.html" . }}
  • About Me

@@ -21,7 +21,7 @@
{{ range .Site.Params.Cells.List }} - {{ partial "cell.html" . }} + {{ partial "homepage/cell.html" . }} {{ end }}
@@ -44,8 +44,8 @@
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} diff --git a/layouts/page/single.html b/layouts/page/single.html index feef779..5d933bc 100644 --- a/layouts/page/single.html +++ b/layouts/page/single.html @@ -1,15 +1,15 @@ -{{ partial "html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/html-start.html" . }} +{{ partial "core/head.html" . }} - {{ partial "main-menu.html" . }} + {{ partial "core/main-menu.html" . }}
{{ .Content }}
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html deleted file mode 100644 index 78007f9..0000000 --- a/layouts/partials/categories.html +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/layouts/partials/cell.html b/layouts/partials/cell.html deleted file mode 100644 index bca321e..0000000 --- a/layouts/partials/cell.html +++ /dev/null @@ -1,39 +0,0 @@ - -
- - {{ if eq .always_show_text true }} -
-

{{ .name }}

-
- {{ end }} - - {{ if not (or (eq .no_highlight true) .disable) }} -
-

{{ .name }}

-
- {{ end }} -
-
- diff --git a/layouts/partials/core/css.html b/layouts/partials/core/css.html new file mode 100644 index 0000000..0cb9893 --- /dev/null +++ b/layouts/partials/core/css.html @@ -0,0 +1,8 @@ + + +{{ with .Site.Params.Highlight }} + +{{ end }} + + + diff --git a/layouts/partials/core/head.html b/layouts/partials/core/head.html new file mode 100644 index 0000000..3eb7bab --- /dev/null +++ b/layouts/partials/core/head.html @@ -0,0 +1,36 @@ + + + + + + + {{ if .RSSlink }} + + + {{ end }} + {{ .Hugo.Generator }} + {{ .Title }} · {{ .Site.Title }} + + + {{ partial "core/css.html" . }} + + + + + + + {{ with .Params.redirect }} + + + + + {{ end }} + + diff --git a/layouts/partials/core/html-end.html b/layouts/partials/core/html-end.html new file mode 100644 index 0000000..503f481 --- /dev/null +++ b/layouts/partials/core/html-end.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/partials/core/html-start.html b/layouts/partials/core/html-start.html new file mode 100644 index 0000000..38356e3 --- /dev/null +++ b/layouts/partials/core/html-start.html @@ -0,0 +1,6 @@ + + + diff --git a/layouts/partials/core/js.html b/layouts/partials/core/js.html new file mode 100644 index 0000000..6325a6c --- /dev/null +++ b/layouts/partials/core/js.html @@ -0,0 +1,12 @@ + + + + +{{ if .Site.Params.Highlight }} + +{{ end }} + + + + + diff --git a/layouts/partials/core/main-menu.html b/layouts/partials/core/main-menu.html new file mode 100644 index 0000000..353347c --- /dev/null +++ b/layouts/partials/core/main-menu.html @@ -0,0 +1,58 @@ + + + +{{ partial "core/search-lightbox.html" . }} + diff --git a/layouts/partials/core/search-lightbox.html b/layouts/partials/core/search-lightbox.html new file mode 100644 index 0000000..63d0f32 --- /dev/null +++ b/layouts/partials/core/search-lightbox.html @@ -0,0 +1,8 @@ + + diff --git a/layouts/partials/core/search.html b/layouts/partials/core/search.html new file mode 100644 index 0000000..b9298a6 --- /dev/null +++ b/layouts/partials/core/search.html @@ -0,0 +1,12 @@ + + diff --git a/layouts/partials/css.html b/layouts/partials/css.html deleted file mode 100644 index 0cb9893..0000000 --- a/layouts/partials/css.html +++ /dev/null @@ -1,8 +0,0 @@ - - -{{ with .Site.Params.Highlight }} - -{{ end }} - - - diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html deleted file mode 100644 index 0a3d31c..0000000 --- a/layouts/partials/disqus.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ if .Site.DisqusShortname }} -
- - - comments powered by Disqus -{{end}} - diff --git a/layouts/partials/extra/disqus.html b/layouts/partials/extra/disqus.html new file mode 100644 index 0000000..0a3d31c --- /dev/null +++ b/layouts/partials/extra/disqus.html @@ -0,0 +1,26 @@ +{{ if .Site.DisqusShortname }} +
+ + + comments powered by Disqus +{{end}} + diff --git a/layouts/partials/extra/pagination.html b/layouts/partials/extra/pagination.html new file mode 100644 index 0000000..b49849c --- /dev/null +++ b/layouts/partials/extra/pagination.html @@ -0,0 +1,21 @@ + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 4857ab7..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - {{ if .RSSlink }} - - - {{ end }} - {{ .Hugo.Generator }} - {{ .Title }} · {{ .Site.Title }} - - - {{ partial "css.html" . }} - - - - - - - {{ with .Params.redirect }} - - - - - {{ end }} - - diff --git a/layouts/partials/header-logo.html b/layouts/partials/header-logo.html deleted file mode 100644 index 0187099..0000000 --- a/layouts/partials/header-logo.html +++ /dev/null @@ -1,17 +0,0 @@ -
- - {{ with .name }}

{{ . }}

{{ end }} - {{ with .email }}
{{ . }}
{{ end }} - {{ with .description }} -


-
{{ . }}
- {{ end }} -
-
- diff --git a/layouts/partials/header-scrolling.html b/layouts/partials/header-scrolling.html deleted file mode 100644 index 1314e7c..0000000 --- a/layouts/partials/header-scrolling.html +++ /dev/null @@ -1,14 +0,0 @@ - -
-
- {{ partial "header-logo.html" . }} -
-
-
- diff --git a/layouts/partials/homepage/cell.html b/layouts/partials/homepage/cell.html new file mode 100644 index 0000000..bca321e --- /dev/null +++ b/layouts/partials/homepage/cell.html @@ -0,0 +1,39 @@ + +
+ + {{ if eq .always_show_text true }} +
+

{{ .name }}

+
+ {{ end }} + + {{ if not (or (eq .no_highlight true) .disable) }} +
+

{{ .name }}

+
+ {{ end }} +
+
+ diff --git a/layouts/partials/homepage/header-logo.html b/layouts/partials/homepage/header-logo.html new file mode 100644 index 0000000..0187099 --- /dev/null +++ b/layouts/partials/homepage/header-logo.html @@ -0,0 +1,17 @@ +
+ + {{ with .name }}

{{ . }}

{{ end }} + {{ with .email }}
{{ . }}
{{ end }} + {{ with .description }} +


+
{{ . }}
+ {{ end }} +
+
+ diff --git a/layouts/partials/homepage/header-scrolling.html b/layouts/partials/homepage/header-scrolling.html new file mode 100644 index 0000000..401d9bb --- /dev/null +++ b/layouts/partials/homepage/header-scrolling.html @@ -0,0 +1,14 @@ + +
+
+ {{ partial "homepage/header-logo.html" . }} +
+
+
+ diff --git a/layouts/partials/homepage/svg-face.html b/layouts/partials/homepage/svg-face.html new file mode 100644 index 0000000..4cadd3f --- /dev/null +++ b/layouts/partials/homepage/svg-face.html @@ -0,0 +1,5 @@ + + + + + diff --git a/layouts/partials/html-end.html b/layouts/partials/html-end.html deleted file mode 100644 index 503f481..0000000 --- a/layouts/partials/html-end.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/layouts/partials/html-start.html b/layouts/partials/html-start.html deleted file mode 100644 index 38356e3..0000000 --- a/layouts/partials/html-start.html +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/layouts/partials/js.html b/layouts/partials/js.html deleted file mode 100644 index 6325a6c..0000000 --- a/layouts/partials/js.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - -{{ if .Site.Params.Highlight }} - -{{ end }} - - - - - diff --git a/layouts/partials/main-menu.html b/layouts/partials/main-menu.html deleted file mode 100644 index 642907e..0000000 --- a/layouts/partials/main-menu.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -{{ partial "search-lightbox.html" . }} - diff --git a/layouts/partials/page-item.html b/layouts/partials/page-item.html deleted file mode 100644 index 8039b69..0000000 --- a/layouts/partials/page-item.html +++ /dev/null @@ -1,21 +0,0 @@ -
- {{ with .Params.image }} - - {{ end }} -
-
- -

{{ .Title }}

-
-

{{ .Summary }}

- - {{ if .Params.redirect }}Redirect{{ else }}Read More{{ end }} - -
- {{ partial "categories.html" . }} - | - {{ partial "tags.html" . }} -
-
-
- diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html deleted file mode 100644 index b49849c..0000000 --- a/layouts/partials/pagination.html +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/layouts/partials/post/categories.html b/layouts/partials/post/categories.html new file mode 100644 index 0000000..78007f9 --- /dev/null +++ b/layouts/partials/post/categories.html @@ -0,0 +1,9 @@ + + diff --git a/layouts/partials/post/page-item.html b/layouts/partials/post/page-item.html new file mode 100644 index 0000000..1f687c0 --- /dev/null +++ b/layouts/partials/post/page-item.html @@ -0,0 +1,21 @@ +
+ {{ with .Params.image }} + + {{ end }} +
+
+ +

{{ .Title }}

+
+

{{ .Summary }}

+ + {{ if .Params.redirect }}Redirect{{ else }}Read More{{ end }} + +
+ {{ partial "post/categories.html" . }} + | + {{ partial "post/tags.html" . }} +
+
+
+ diff --git a/layouts/partials/post/tags.html b/layouts/partials/post/tags.html new file mode 100644 index 0000000..cd79d5d --- /dev/null +++ b/layouts/partials/post/tags.html @@ -0,0 +1,9 @@ + + diff --git a/layouts/partials/search-lightbox.html b/layouts/partials/search-lightbox.html deleted file mode 100644 index 0d61b36..0000000 --- a/layouts/partials/search-lightbox.html +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/layouts/partials/search.html b/layouts/partials/search.html deleted file mode 100644 index b9298a6..0000000 --- a/layouts/partials/search.html +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/layouts/partials/svg-face.html b/layouts/partials/svg-face.html deleted file mode 100644 index 4cadd3f..0000000 --- a/layouts/partials/svg-face.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html deleted file mode 100644 index cd79d5d..0000000 --- a/layouts/partials/tags.html +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/layouts/section/gallery.html b/layouts/section/gallery.html index e99c978..461ddba 100644 --- a/layouts/section/gallery.html +++ b/layouts/section/gallery.html @@ -1,16 +1,16 @@ -{{ partial "html-start.html" . }} -{{ partial "head.html" . }} +{{ partial "core/html-start.html" . }} +{{ partial "core/head.html" . }} - {{ partial "main-menu.html" . }} + {{ partial "core/main-menu.html" . }}
{{ partial "gallery/collection.html" . }} - {{ partial "pagination.html" . }} + {{ partial "extra/pagination.html" . }}
- {{ partial "js.html" . }} + {{ partial "core/js.html" . }} -{{ partial "html-end.html" . }} +{{ partial "core/html-end.html" . }} -- cgit v1.2.3