From e62b793c61e75bae591e19af343f15941b955f1d Mon Sep 17 00:00:00 2001 From: parsiya Date: Fri, 23 Nov 2018 13:49:42 -0500 Subject: Mild whitespace clean up in partials --- README.md | 2 +- layouts/404.html | 4 +-- layouts/index.html | 1 + layouts/partials/classic_index.html | 68 ++++++++++++++++--------------------- layouts/partials/disqus.html | 23 ++++++------- layouts/partials/footer.html | 65 +++++++++++++++++------------------ layouts/partials/header.html | 4 +-- layouts/partials/navigation.html | 15 ++++---- layouts/partials/octo_header.html | 2 +- layouts/partials/post_header.html | 28 +++++++-------- 10 files changed, 99 insertions(+), 113 deletions(-) diff --git a/README.md b/README.md index 8d3799f..4a51913 100644 --- a/README.md +++ b/README.md @@ -472,7 +472,7 @@ If you discover any issues/bugs or want new features please use the Github issue * [Octopress](octopress-link) is created by [Brandon Mathis](https://github.com/imathis). Octopress source can be found on [https://github.com/imathis/octopress](https://github.com/imathis/octopress). * Some code was taken from the [Hyde-x](https://github.com/zyro/hyde-x) Hugo theme by [Andrei Mihu](http://andreimihu.com/). * Sidebar icons are from [Font Awesome](https://github.com/FortAwesome/Font-Awesome) by Dave Gandy and [Fork Awesome](https://github.com/ForkAwesome/Fork-Awesome). -* Special thanks to everyone who has helped with pull requests and issues. +* Special thanks to [contributors](https://github.com/parsiya/Hugo-Octopress/graphs/contributors) and everyone who has helped with issues. ## Ported by Ported by Parsia Hakimian: diff --git a/layouts/404.html b/layouts/404.html index 7d16e3b..0342615 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -24,9 +24,7 @@ - {{ partial "sidebar.html" . }} - -{{ partial "footer.html" . }} +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 4707897..959f103 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,6 @@ {{ partial "header.html" . }} + {{ if .Site.Params.compactIndex }} {{ partial "compact_index.html" . }} {{ else }} diff --git a/layouts/partials/classic_index.html b/layouts/partials/classic_index.html index 64b88bb..fb07298 100755 --- a/layouts/partials/classic_index.html +++ b/layouts/partials/classic_index.html @@ -1,42 +1,34 @@
-
-
- {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} - {{ range $paginator.Pages }} - - {{ end }} - - {{ partial "pagination.html" . }} - -
- - {{ partial "sidebar.html" . }} +
+
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ range $paginator.Pages }} + + {{ end }} + + {{ partial "pagination.html" . }}
-
- - {{ partial "footer.html" . }} \ No newline at end of file + {{ partial "sidebar.html" . }} +
+
+{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html index 56115a0..b589d78 100644 --- a/layouts/partials/disqus.html +++ b/layouts/partials/disqus.html @@ -1,18 +1,17 @@
comments powered by Disqus diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 59b6a9c..48aa5c5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,36 +1,35 @@ - + + {{ with .Site.Params.analytics.piwik.ID }} + + {{ end }} + - -{{ with .Site.Params.analytics.piwik.ID }} - -{{ end }} - - -{{ with .Site.Params.googleAnalytics }} - -{{ end }} - + {{ with .Site.Params.googleAnalytics }} + + {{ end }} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4b89455..438c2ea 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,7 +10,7 @@ {{ if not .Site.Params.disableGoogleFonts }} - + {{ if not .Site.Params.remoteFonts }} {{ else }} @@ -45,7 +45,6 @@ - @@ -58,7 +57,6 @@ {{ with .Site.Params.twitterCardEnabled }} {{ partial "custom_twitter_card.html" $ }} {{ end }} - diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 45831c5..9f9860d 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,6 +1,6 @@
- + - -
- +
+
+ + +
+
{{end}} diff --git a/layouts/partials/octo_header.html b/layouts/partials/octo_header.html index 5a0fae2..f754a82 100644 --- a/layouts/partials/octo_header.html +++ b/layouts/partials/octo_header.html @@ -1,7 +1,7 @@
+ For index, it's .Site.Title but is different for individual pages -->

{{ .Site.Title }}

{{ .Site.Params.subtitle }}

\ No newline at end of file diff --git a/layouts/partials/post_header.html b/layouts/partials/post_header.html index 7b2bede..b723b46 100644 --- a/layouts/partials/post_header.html +++ b/layouts/partials/post_header.html @@ -1,18 +1,18 @@ - +
-

{{ .Date.Format "Jan 2, 2006" }} - {{ if not .Site.Params.disableReadingTime }} - {{ .ReadingTime }} minute read {{ end }} - {{ if .Site.DisqusShortname }} - Comments{{ end }} +

{{ .Date.Format "Jan 2, 2006" }} + {{ if not .Site.Params.disableReadingTime }} - {{ .ReadingTime }} minute read {{ end }} + {{ if .Site.DisqusShortname }} - Comments{{ end }} - {{ if isset .Params "categories" }} - - - {{ range .Params.categories }}{{ . }} {{ end }} - {{ end }} -

-

- {{ if ($.Scratch.Get "isHome") }}{{ .Title }}{{ else }} {{ .Title }} {{ end }} -

+ {{ if isset .Params "categories" }} + + - {{ range .Params.categories }}{{ . }} {{ end }} + {{ end }} +

+

+ {{ if ($.Scratch.Get "isHome") }}{{ .Title }}{{ else }} {{ .Title }} {{ end }} +

-- cgit v1.2.3