From 94207f4938a24d36ef5a891c7babea7b292d6d9a Mon Sep 17 00:00:00 2001 From: pacollins Date: Thu, 12 Oct 2017 09:55:09 -0400 Subject: Revert to 80752d9 --- layouts/_default/header.html | 22 +++---- layouts/_default/list.html | 20 +++--- layouts/_default/single.html | 22 +++---- layouts/about/list.html | 22 +++---- layouts/contact/list.html | 86 +++++++++++++------------- layouts/index.html | 20 +++--- layouts/itemized/content-list.html | 2 +- layouts/itemized/footer-category.html | 70 ++++++++++----------- layouts/itemized/header.html | 38 ++++++------ layouts/itemized/single.html | 20 +++--- layouts/partials/favicon.html | 26 ++++---- layouts/partials/footer.html | 8 +-- layouts/partials/general-title.html | 14 ++--- layouts/partials/header.html | 112 +++++++++++++++++----------------- layouts/partials/img-path.html | 28 ++++----- layouts/partials/navbar.html | 73 +++++++++++----------- layouts/partials/pagination.html | 30 ++++----- layouts/partials/share-menu.html | 16 ++--- layouts/post/comments.html | 14 ++--- layouts/post/content-list.html | 18 +++--- layouts/post/content-single.html | 2 - layouts/post/featured.html | 18 +++--- layouts/post/footer-category.html | 70 +++++++++++---------- layouts/post/header.html | 44 ++++++------- layouts/post/prev-next.html | 18 +++--- layouts/post/single.html | 20 +++--- layouts/post/staticman.html | 2 +- layouts/shortcodes/img-fit.html | 58 +++++++++--------- layouts/shortcodes/img-post.html | 78 ++++++++++++----------- layouts/shortcodes/url-link.html | 12 ++-- layouts/taxonomy/category.html | 22 +++---- layouts/taxonomy/category.terms.html | 54 ++++++++-------- static/css/main.css | 29 ++++----- 33 files changed, 534 insertions(+), 554 deletions(-) diff --git a/layouts/_default/header.html b/layouts/_default/header.html index 92b0dc1..f7184e7 100644 --- a/layouts/_default/header.html +++ b/layouts/_default/header.html @@ -1,13 +1,13 @@
-
- {{ if $.Scratch.Get "h1" }} -

{{ .Title }}

- {{ $.Scratch.Set "h1" false }} - {{ else }} -

{{ .Title }}

- {{ end }} - {{ with .Description }} -

{{ . }}

- {{ end }} -
+
+ {{ if $.Scratch.Get "h1" }} +

{{ .Title }}

+ {{ $.Scratch.Set "h1" false }} + {{ else }} +

{{ .Title }}

+ {{ end }} + {{ with .Description }} +

{{ . }}

+ {{ end }} +
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9a8d157..9eaffcc 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,15 +1,15 @@ {{ partial "general-title" . }} {{ partial "header" . }} -{{ partial "navbar" . }} - -
- {{ $paginator := .Paginate .Data.Pages }} - {{ range .Paginator.Pages }} - {{ .Render "content-list" }} - {{ end }} + {{ partial "navbar" . }} + +
+ {{ $paginator := .Paginate .Data.Pages }} + {{ range .Paginator.Pages }} + {{ .Render "content-list" }} + {{ end }} - {{ partial "pagination" . }} -
-{{ partial "sidebar" . }} + {{ partial "pagination" . }} +
+ {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d94cf5a..d0160bc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,16 +1,16 @@ {{ partial "general-title" . }} {{ partial "header" . }} -{{ partial "navbar" . }} - -
-
- {{ $.Scratch.Set "h1" true }} - {{ .Render "header" }} -
- {{ .Content }} + {{ partial "navbar" . }} + +
+
+ {{ $.Scratch.Set "h1" true }} + {{ .Render "header" }} +
+ {{ .Content }} +
+
-
-
-{{ partial "sidebar" . }} + {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/layouts/about/list.html b/layouts/about/list.html index d490e3d..e821afd 100644 --- a/layouts/about/list.html +++ b/layouts/about/list.html @@ -6,17 +6,17 @@
-
- {{ if $.Scratch.Get "h1" }} -

{{ .Title }}

- {{ $.Scratch.Set "h1" false }} - {{ else }} -

{{ .Title }}

- {{ end }} - {{ with .Description }} -

{{ . }}

- {{ end }} -
+
+ {{ if $.Scratch.Get "h1" }} +

{{ .Title }}

+ {{ $.Scratch.Set "h1" false }} + {{ else }} +

{{ .Title }}

+ {{ end }} + {{ with .Description }} +

{{ . }}

+ {{ end }} +
{{ .Content }} diff --git a/layouts/contact/list.html b/layouts/contact/list.html index a585a4b..cc2f35b 100644 --- a/layouts/contact/list.html +++ b/layouts/contact/list.html @@ -1,48 +1,48 @@ {{ partial "general-title" . }} {{ partial "header" . }} -{{ partial "navbar" . }} - -
-
-
-
- {{ if $.Scratch.Get "h1" }} -

{{ .Title }}

- {{ $.Scratch.Set "h1" false }} - {{ else }} -

{{ .Title }}

- {{ end }} - {{ with .Description }} -

{{ . }}

- {{ end }} -
-
-
- {{ .Content }} -
- {{ if .Params.netlify }} -
- {{ else }} - - {{ end }} -

Replies Typically Within 24 Hours.

-
- -
-
- -
-
- -
-
- -
-
-
+ {{ partial "navbar" . }} + +
+
+
+
+ {{ if $.Scratch.Get "h1" }} +

{{ .Title }}

+ {{ $.Scratch.Set "h1" false }} + {{ else }} +

{{ .Title }}

+ {{ end }} + {{ with .Description }} +

{{ . }}

+ {{ end }} +
+
+
+ {{ .Content }} +
+ {{ if .Params.netlify }} +
+ {{ else }} + + {{ end }} +

Replies Typically Within 24 Hours.

+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
-
-
-{{ partial "sidebar" . }} + {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/layouts/index.html b/layouts/index.html index d5bc1a6..be5f8da 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,13 @@ {{ partial "header" . }} -{{ $.Scratch.Set "shareNav" true }} -{{ partial "navbar" . }} - -
- {{ range first 4 (where .Site.Pages "Type" "post") }} - {{ .Render "content-list" }} + {{ $.Scratch.Set "shareNav" true }} + {{ partial "navbar" . }} + +
+ {{ range first 1 (where .Site.Pages "Type" "post") }} + {{ .Render "content-single" }} - {{ partial "share-menu" . }} - {{ end }} -
-{{ partial "sidebar" . }} + {{ partial "share-menu" . }} + {{ end }} +
+ {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/layouts/itemized/content-list.html b/layouts/itemized/content-list.html index 703baa9..ae5be37 100644 --- a/layouts/itemized/content-list.html +++ b/layouts/itemized/content-list.html @@ -1,3 +1,3 @@
- {{ .Render "header" }} + {{ .Render "header" }}
diff --git a/layouts/itemized/footer-category.html b/layouts/itemized/footer-category.html index 47a4308..35d85a9 100644 --- a/layouts/itemized/footer-category.html +++ b/layouts/itemized/footer-category.html @@ -1,44 +1,44 @@
    - {{ if isset .Params "categories" }} - {{ $categoryCount := (len .Params.categories) }} + {{ if isset .Params "categories" }} + {{ $categoryCount := (len .Params.categories) }} - - {{ if ge $categoryCount 1 }} -
  • - {{ $categoryMenu := (where .Site.Menus.main "Name" "Categories") }} - {{ if ne (len $categoryMenu) 0 }} - {{ $categoryMenu := index $categoryMenu 0 }} + + {{ if ge $categoryCount 1 }} +
  • + {{ $categoryMenu := (where .Site.Menus.main "Name" "Categories") }} + {{ if ne (len $categoryMenu) 0 }} + {{ $categoryMenu := index $categoryMenu 0 }} - {{ $.Scratch.Set "categoryUrl" $categoryMenu.URL }} + {{ $.Scratch.Set "categoryUrl" $categoryMenu.URL }} - {{ with $categoryMenu.Identifier }} -   - {{ end }} + {{ with $categoryMenu.Identifier }} +   + {{ end }} - {{ if gt $categoryCount 1 }} - {{ $categoryMenu.Name }} - {{ else }} - {{ $categoryMenu.Name | singularize }} - {{ end }} - {{ else }} - {{ $.Scratch.Set "categoryUrl" "/categories/" }} + {{ if gt $categoryCount 1 }} + {{ $categoryMenu.Name }} + {{ else }} + {{ $categoryMenu.Name | singularize }} + {{ end }} + {{ else }} + {{ $.Scratch.Set "categoryUrl" "/categories/" }} - {{ if gt $categoryCount 1 }} - Categories - {{ else }} - Category - {{ end }} - {{ end }} -
  • + {{ if gt $categoryCount 1 }} + Categories + {{ else }} + Category + {{ end }} + {{ end }} + + {{ end }} {{ end }} - {{ end }} - - {{ range .Params.categories }} -
  • {{ . }}
  • - {{ end }} + + {{ range .Params.categories }} +
  • {{ . }}
  • + {{ end }}
diff --git a/layouts/itemized/header.html b/layouts/itemized/header.html index 52f5fc1..9193947 100644 --- a/layouts/itemized/header.html +++ b/layouts/itemized/header.html @@ -1,22 +1,22 @@
-
- {{ if $.Scratch.Get "h1" }} -

{{ .Title }}

- {{ $.Scratch.Set "h1" false }} - {{ else }} -

{{ .Title }}

- {{ end }} - {{ with .Description }} -

{{ . }}

- {{ end }} -
-
+
+ {{ if $.Scratch.Get "h1" }} +

{{ .Title }}

+ {{ $.Scratch.Set "h1" false }} + {{ else }} +

{{ .Title }}

+ {{ end }} + {{ with .Description }} +

{{ . }}

+ {{ end }} +
+
- {{ .Params.author }} - {{ .Params.format }} - {{ if isset .Params "link" }} - Link - {{ end }} - -
+ {{ .Params.author }} + {{ .Params.format }} + {{ if isset .Params "link" }} + Link + {{ end }} + +
diff --git a/layouts/itemized/single.html b/layouts/itemized/single.html index a9f19af..20f53ad 100644 --- a/layouts/itemized/single.html +++ b/layouts/itemized/single.html @@ -1,12 +1,12 @@ {{ partial "header" . }} -{{ $.Scratch.Set "shareNav" true }} -{{ partial "navbar" . }} -{{ partial "share-menu" . }} - -
- - {{ $.Scratch.Set "h1" true }} - {{ .Render "content-single" }} -
-{{ partial "sidebar" . }} + {{ $.Scratch.Set "shareNav" true }} + {{ partial "navbar" . }} + {{ partial "share-menu" . }} + +
+ + {{ $.Scratch.Set "h1" true }} + {{ .Render "content-single" }} +
+ {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html index 194762c..47ddd20 100644 --- a/layouts/partials/favicon.html +++ b/layouts/partials/favicon.html @@ -1,16 +1,18 @@ {{ if .Site.Params.loadFavicon }} - {{ with .Site.Params.faviconVersion }} - {{ $.Scratch.Set "favVer" "-" }} - {{ $.Scratch.Add "favVer" . }} - {{ else }} - {{ $.Scratch.Set "favVer" "" }} - {{ end }} + {{ with .Site.Params.faviconVersion }} + {{ $.Scratch.Set "favVer" "-" }} + {{ $.Scratch.Add "favVer" . }} + {{ else }} + {{ $.Scratch.Set "favVer" "" }} + {{ end }} - {{ $favVer := $.Scratch.Get "favVer" }} + {{ $favVer := $.Scratch.Get "favVer" }} - - - - - + + + + + {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 957db5c..2bc8f0b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -21,10 +21,10 @@ {{ end }} {{ if ne ($.Scratch.Get "jsFiles") false }} - {{ range $.Scratch.Get "jsFiles" }} - {{ if ne . "default" }} - - {{ end }} +{{ range $.Scratch.Get "jsFiles" }} + {{ if ne . "default" }} + + {{ end }} {{ end }} {{ end }} diff --git a/layouts/partials/general-title.html b/layouts/partials/general-title.html index aac7af8..f21be7e 100644 --- a/layouts/partials/general-title.html +++ b/layouts/partials/general-title.html @@ -1,14 +1,14 @@ {{ $.Scratch.Set "generalTitle" .Title }} {{ if eq ($.Scratch.Get "generalTitle") "Blogs" }} - {{ $.Scratch.Set "generalTitle" "Blog" }} + {{ $.Scratch.Set "generalTitle" "Blog" }} {{ end }} {{ if and (.IsNode) (eq .Data.Plural "categories") }} - {{ if ne .Data.Plural (lower .Title) }} - {{ $.Scratch.Add "generalTitle" " Posts - " }} - {{ else }} - {{ $.Scratch.Add "generalTitle" " - " }} - {{ end }} + {{ if ne .Data.Plural (lower .Title) }} + {{ $.Scratch.Add "generalTitle" " Posts - " }} + {{ else }} + {{ $.Scratch.Add "generalTitle" " - " }} + {{ end }} {{ else }} - {{ $.Scratch.Add "generalTitle" " - " }} + {{ $.Scratch.Add "generalTitle" " - " }} {{ end }} {{ $.Scratch.Add "generalTitle" .Site.Title }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 05e7ed3..54953d9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,68 +5,68 @@ Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> - - {{ with $.Scratch.Get "generalTitle" }} - {{ . }} - {{ else }} - {{ with .Title }} - {{ . }} - {{ else }} - {{ .Site.Title }} - {{ end }} - {{ end }} + + {{ with $.Scratch.Get "generalTitle" }} + {{ . }} + {{ else }} + {{ with .Title }} + {{ . }} + {{ else }} + {{ .Site.Title }} + {{ end }} + {{ end }} - - - {{ .Hugo.Generator }} - {{ partial "favicon" . }} + + + {{ .Hugo.Generator }} + {{ partial "favicon" . }} - {{ with .Params.author }} - - {{ end }} - {{ with .Description }} - - {{ else }} - {{ with .Site.Params.description }} - - {{ end }} - {{ end }} + {{ with .Params.author }} + + {{ end }} + {{ with .Description }} + + {{ else }} + {{ with .Site.Params.description }} + + {{ end }} + {{ end }} - {{ template "_internal/twitter_cards.html" . }} - {{ template "_internal/opengraph.html" . }} - {{ template "_internal/schema.html" . }} - {{ template "_internal/google_news.html" . }} + {{ template "_internal/twitter_cards.html" . }} + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/schema.html" . }} + {{ template "_internal/google_news.html" . }} - {{ if isset .Site.Params "customcss" }} - {{ $.Scratch.Set "cssFiles" .Site.Params.customCSS }} - {{ else }} - {{ $.Scratch.Set "cssFiles" false }} - {{ end }} + {{ if isset .Site.Params "customcss" }} + {{ $.Scratch.Set "cssFiles" .Site.Params.customCSS }} + {{ else }} + {{ $.Scratch.Set "cssFiles" false }} + {{ end }} - - {{ if or (in ($.Scratch.Get "cssFiles") "default") (eq ($.Scratch.Get "cssFiles") false) }} - - - - - - - {{ end }} + + {{ if or (in ($.Scratch.Get "cssFiles") "default") (eq ($.Scratch.Get "cssFiles") false) }} + + + + + + + {{ end }} - {{ if ne ($.Scratch.Get "cssFiles") false }} - {{ range $.Scratch.Get "cssFiles" }} - {{ if ne . "default" }} - + {{ if ne ($.Scratch.Get "cssFiles") false }} + {{ range $.Scratch.Get "cssFiles" }} + {{ if ne . "default" }} + + {{ end }} + {{ end }} {{ end }} - {{ end }} - {{ end }} - {{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }} - {{ template "_internal/google_analytics.html" . }} - {{ end }} - - + {{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }} + {{ template "_internal/google_analytics.html" . }} + {{ end }} + + - -
+ +
diff --git a/layouts/partials/img-path.html b/layouts/partials/img-path.html index c2eccd5..dabfa61 100644 --- a/layouts/partials/img-path.html +++ b/layouts/partials/img-path.html @@ -1,5 +1,5 @@ diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index fd1b902..a47ff0a 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,22 +1,16 @@ diff --git a/layouts/partials/share-menu.html b/layouts/partials/share-menu.html index 88c09aa..9ecfb08 100644 --- a/layouts/partials/share-menu.html +++ b/layouts/partials/share-menu.html @@ -1,10 +1,10 @@
-
- -
+
+ +
diff --git a/layouts/post/comments.html b/layouts/post/comments.html index 9b993d7..bdea945 100644 --- a/layouts/post/comments.html +++ b/layouts/post/comments.html @@ -1,11 +1,11 @@ {{ if ne .Site.DisqusShortname "" }} - {{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }} + {{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} +{{ else if .Site.Params.staticman.staticman }}
- {{ template "_internal/disqus.html" . }} + {{ .Render "staticman" }}
- {{ end }} -{{ else if .Site.Params.staticman.staticman }} -
- {{ .Render "staticman" }} -
{{ end }} diff --git a/layouts/post/content-list.html b/layouts/post/content-list.html index b051f4a..32c4bcf 100644 --- a/layouts/post/content-list.html +++ b/layouts/post/content-list.html @@ -1,12 +1,12 @@
- {{ .Render "header" }} - {{ .Render "featured" }} -

{{ printf "%s" .Summary | markdownify }}

+ {{ .Render "header" }} + {{ .Render "featured" }} +

{{ printf "%s" .Summary | markdownify }}

- +
diff --git a/layouts/post/content-single.html b/layouts/post/content-single.html index 2266fca..b047740 100644 --- a/layouts/post/content-single.html +++ b/layouts/post/content-single.html @@ -18,6 +18,4 @@ {{ .Render "footer-category" }}
- -{{ .Render "comments" }} {{ .Render "prev-next" }} diff --git a/layouts/post/featured.html b/layouts/post/featured.html index 861bfe9..7b7aa42 100644 --- a/layouts/post/featured.html +++ b/layouts/post/featured.html @@ -1,13 +1,13 @@ {{ if and (isset .Params "featuredpath") (ne .Params.featuredpath "") }} - {{ $.Scratch.Set "path" .Params.featuredpath }} + {{ $.Scratch.Set "path" .Params.featuredpath }} - {{ if and (isset .Params "featured") (ne .Params.featuredpath "") }} - {{ $.Scratch.Set "structType" "page" }} - {{ partial "img-path" . }} - {{ $path := $.Scratch.Get "path" }} + {{ if and (isset .Params "featured") (ne .Params.featuredpath "") }} + {{ $.Scratch.Set "structType" "page" }} + {{ partial "img-path" . }} + {{ $path := $.Scratch.Get "path" }} - - {{ .Params.featuredalt }} - - {{ end }} + + {{ .Params.featuredalt }} + + {{ end }} {{ end }} diff --git a/layouts/post/footer-category.html b/layouts/post/footer-category.html index 9888746..35d85a9 100644 --- a/layouts/post/footer-category.html +++ b/layouts/post/footer-category.html @@ -1,46 +1,44 @@ diff --git a/layouts/post/header.html b/layouts/post/header.html index 2e44285..e500a35 100644 --- a/layouts/post/header.html +++ b/layouts/post/header.html @@ -1,25 +1,25 @@
-
- {{ if $.Scratch.Get "h1" }} -

{{ .Title }}

- {{ $.Scratch.Set "h1" false }} - {{ else }} -

{{ .Title }}

- {{ end }} - {{ with .Description }} -

{{ . }}

- {{ end }} -
-
- {{ $.Scratch.Set "dateType" .Date }} +
+ {{ if $.Scratch.Get "h1" }} +

{{ .Title }}

+ {{ $.Scratch.Set "h1" false }} + {{ else }} +

{{ .Title }}

+ {{ end }} + {{ with .Description }} +

{{ . }}

+ {{ end }} +
+
+ {{ $.Scratch.Set "dateType" .Date }} - - {{ .Params.author }} - {{ if .Site.Params.includeReadingTime }} -

{{ .ReadingTime }} minute read

- {{ end }} - -
+ + {{ .Params.author }} + {{ if .Site.Params.includeReadingTime }} +

{{ .ReadingTime }} minute read

+ {{ end }} + +
diff --git a/layouts/post/prev-next.html b/layouts/post/prev-next.html index 6279865..64b56de 100644 --- a/layouts/post/prev-next.html +++ b/layouts/post/prev-next.html @@ -1,13 +1,11 @@ diff --git a/layouts/post/single.html b/layouts/post/single.html index a9f19af..20f53ad 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,12 +1,12 @@ {{ partial "header" . }} -{{ $.Scratch.Set "shareNav" true }} -{{ partial "navbar" . }} -{{ partial "share-menu" . }} - -
- - {{ $.Scratch.Set "h1" true }} - {{ .Render "content-single" }} -
-{{ partial "sidebar" . }} + {{ $.Scratch.Set "shareNav" true }} + {{ partial "navbar" . }} + {{ partial "share-menu" . }} + +
+ + {{ $.Scratch.Set "h1" true }} + {{ .Render "content-single" }} +
+ {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/layouts/post/staticman.html b/layouts/post/staticman.html index 4c5964e..955846b 100644 --- a/layouts/post/staticman.html +++ b/layouts/post/staticman.html @@ -40,7 +40,7 @@
{{ end }} - {{ end }} +{{ end }} {{ end }} {{ if eq ($.Scratch.Get "hasComments") 0 }} diff --git a/layouts/shortcodes/img-fit.html b/layouts/shortcodes/img-fit.html index b8603d2..08e8224 100644 --- a/layouts/shortcodes/img-fit.html +++ b/layouts/shortcodes/img-fit.html @@ -39,37 +39,37 @@ --> {{ $numOfParams := sub (len .Params) 1 }} {{ if and (ge $numOfParams 3) (not (modBool $numOfParams 2)) }} - {{ $.Scratch.Set "path" (.Get $numOfParams) }} + {{ $.Scratch.Set "path" (.Get $numOfParams) }} - {{ $.Scratch.Set "structType" "shortcode" }} - {{ partial "img-path" . }} - {{ $path := $.Scratch.Get "path" }} + {{ $.Scratch.Set "structType" "shortcode" }} + {{ partial "img-path" . }} + {{ $path := $.Scratch.Get "path" }} -
-
- {{ $.Scratch.Set "count" 1 }} - {{ $.Scratch.Set "imgFile" "" }} - {{ range first $numOfParams .Params }} - {{ if eq ($.Scratch.Get "count") 1 }} -
- {{ else if eq ($.Scratch.Get "count") 2 }} - {{ if eq . "" }} -
- {{ $.Scratch.Set "imgFile" "" }} - {{ else }} - {{ $.Scratch.Set "imgFile" . }} - +
+
+ {{ $.Scratch.Set "count" 1 }} + {{ $.Scratch.Set "imgFile" "" }} + {{ range first $numOfParams .Params }} + {{ if eq ($.Scratch.Get "count") 1 }} +
+ {{ else if eq ($.Scratch.Get "count") 2 }} + {{ if eq . "" }} +
+ {{ $.Scratch.Set "imgFile" "" }} + {{ else }} + {{ $.Scratch.Set "imgFile" . }} + + {{ end }} + {{ else }} + {{ if ne ($.Scratch.Get "imgFile") "" }} + {{ . }} +
+ {{ end }} + {{ $.Scratch.Set "count" 0 }} + {{ end }} + {{ $.Scratch.Add "count" 1 }} {{ end }} - {{ else }} - {{ if ne ($.Scratch.Get "imgFile") "" }} - {{ . }} - -
- {{ end }} - {{ $.Scratch.Set "count" 0 }} - {{ end }} - {{ $.Scratch.Add "count" 1 }} - {{ end }} +
- {{ end }} diff --git a/layouts/shortcodes/img-post.html b/layouts/shortcodes/img-post.html index 6749f96..6143696 100644 --- a/layouts/shortcodes/img-post.html +++ b/layouts/shortcodes/img-post.html @@ -22,49 +22,47 @@ --> {{ $numOfParams := len .Params }} {{ if and (ge $numOfParams 2) (le $numOfParams 4) }} - - {{ if .IsNamedParams }} - {{ $.Scratch.Set "path" (.Get "path") }} - {{ $.Scratch.Set "file" (.Get "file") }} - {{ $.Scratch.Set "alt" (.Get "alt") }} - {{ $.Scratch.Set "type" (.Get "type") }} - {{ else }} - {{ $.Scratch.Set "path" (.Get 0) }} - {{ $.Scratch.Set "file" (.Get 1) }} - {{ if ge $numOfParams 3 }} - {{ $.Scratch.Set "alt" (.Get 2) }} + + {{ if .IsNamedParams }} + {{ $.Scratch.Set "path" (.Get "path") }} + {{ $.Scratch.Set "file" (.Get "file") }} + {{ $.Scratch.Set "alt" (.Get "alt") }} + {{ $.Scratch.Set "type" (.Get "type") }} {{ else }} - {{ $.Scratch.Set "alt" "" }} + {{ $.Scratch.Set "path" (.Get 0) }} + {{ $.Scratch.Set "file" (.Get 1) }} + {{ if ge $numOfParams 3 }} + {{ $.Scratch.Set "alt" (.Get 2) }} + {{ else }} + {{ $.Scratch.Set "alt" "" }} + {{ end }} + {{ if ge $numOfParams 4 }} + {{ $.Scratch.Set "type" (.Get 3) }} + {{ else }} + {{ $.Scratch.Set "type" "center" }} + {{ end }} {{ end }} - {{ if ge $numOfParams 4 }} - {{ $.Scratch.Set "type" (.Get 3) }} - {{ else }} - {{ $.Scratch.Set "type" "center" }} - {{ end }} - {{ end }} - {{ $file := $.Scratch.Get "file" }} - {{ $type := $.Scratch.Get "type" }} - {{ $alt := $.Scratch.Get "alt" }} + {{ $file := $.Scratch.Get "file" }} + {{ $type := $.Scratch.Get "type" }} + {{ $alt := $.Scratch.Get "alt" }} - {{ $.Scratch.Set "structType" "shortcode" }} - {{ partial "img-path" . }} - {{ $path := $.Scratch.Get "path" }} + {{ $.Scratch.Set "structType" "shortcode" }} + {{ partial "img-path" . }} + {{ $path := $.Scratch.Get "path" }} - {{ if eq $type "left" }} - - {{ $alt }} - - {{ else if eq $type "right" }} - - {{ $alt }} - - {{ else }} -

- - {{ $alt }} - -

- {{ end }} + {{ if eq $type "left" }} + + {{ $alt }} + + {{ else if eq $type "right" }} + + {{ $alt }} + + {{ else }} +

+ {{ $alt }} +

+ {{ end }} {{ end }} diff --git a/layouts/shortcodes/url-link.html b/layouts/shortcodes/url-link.html index c2b5f5e..419c098 100644 --- a/layouts/shortcodes/url-link.html +++ b/layouts/shortcodes/url-link.html @@ -1,10 +1,10 @@ {{ $numOfParams := len .Params }} {{ if and (ge $numOfParams 2) (le $numOfParams 3) }} - {{ if eq $numOfParams 3 }} - {{ $.Scratch.Set "target" (.Get 2) }} - {{ else }} - {{ $.Scratch.Set "target" "_blank" }} - {{ end }} + {{ if eq $numOfParams 3 }} + {{ $.Scratch.Set "target" (.Get 2) }} + {{ else }} + {{ $.Scratch.Set "target" "_blank" }} + {{ end }} - {{ .Get 0 }} + {{ .Get 0 }} {{ end }} diff --git a/layouts/taxonomy/category.html b/layouts/taxonomy/category.html index 0fd749f..8881b14 100644 --- a/layouts/taxonomy/category.html +++ b/layouts/taxonomy/category.html @@ -1,16 +1,16 @@ {{ partial "general-title" . }} {{ partial "header" . }} -{{ partial "navbar" . }} - -
-

{{ .Title }}

- {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} - {{ range $paginator.Pages }} - {{ .Render "content-list" }} - {{ end }} + {{ partial "navbar" . }} + +
+

{{ .Title }}

+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ range $paginator.Pages }} + {{ .Render "content-list" }} + {{ end }} - {{ partial "pagination" . }} -
-{{ partial "sidebar" . }} + {{ partial "pagination" . }} +
+ {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/layouts/taxonomy/category.terms.html b/layouts/taxonomy/category.terms.html index 9affa3a..5e504c0 100644 --- a/layouts/taxonomy/category.terms.html +++ b/layouts/taxonomy/category.terms.html @@ -1,33 +1,33 @@ {{ partial "general-title" . }} {{ partial "header" . }} -{{ partial "navbar" . }} - -
- {{ if .Site.Params.categoriesByCount }} - {{ $.Scratch.Set "categories" .Data.Terms.ByCount }} - {{ else }} - {{ $.Scratch.Set "categories" .Data.Terms.Alphabetical }} - {{ end }} + {{ partial "navbar" . }} + +
+ {{ if .Site.Params.categoriesByCount }} + {{ $.Scratch.Set "categories" .Data.Terms.ByCount }} + {{ else }} + {{ $.Scratch.Set "categories" .Data.Terms.Alphabetical }} + {{ end }} -
    -
    -

    {{ .Data.Plural }}

    -
    - {{ $data := .Data }} - {{ range $key, $value := $.Scratch.Get "categories" }} -
  • - -
  • - {{ end }} -
-
+ +
-{{ $.Scratch.Set "showCategories" false }} -{{ partial "sidebar" . }} + {{ $.Scratch.Set "showCategories" false }} + {{ partial "sidebar" . }} {{ partial "footer" . }} diff --git a/static/css/main.css b/static/css/main.css index 00f8dbd..d1ac152 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -307,9 +307,9 @@ text-align: right; } -/* Author and Format */ +/* Author */ - .author, .format { + .author { display: -moz-flex; display: -webkit-flex; display: -ms-flex; @@ -335,7 +335,7 @@ white-space: nowrap; } - .author .name, .format .name { + .author .name { -moz-transition: border-bottom-color 0.2s ease; -webkit-transition: border-bottom-color 0.2s ease; -ms-transition: border-bottom-color 0.2s ease; @@ -345,13 +345,13 @@ margin: 0 1.5em 0 0; } - .author img, .format img { + .author img { border-radius: 100%; display: block; width: 4em; } - .author:hover .name, .format:hover .name { + .author:hover .name { border-bottom-color: transparent; } @@ -1213,7 +1213,7 @@ text-transform: uppercase; } - .mini-post header .author, .mini-post header .format { + .mini-post header .author { position: absolute; right: 2em; top: 2em; @@ -1792,8 +1792,7 @@ margin-top: 0; } - .itemized > header .meta .author, - .itemized > header .meta .format, { + .itemized > header .meta .author { -moz-flex-direction: row-reverse; -webkit-flex-direction: row-reverse; -ms-flex-direction: row-reverse; @@ -1801,14 +1800,12 @@ margin-bottom: 0; } - .itemized > header .meta .author .name, - .itemized > header .meta .format .name { + .itemized > header .meta .author .name { margin: 0 0 0 1.5em; } - .itemized > header .meta .author img, - .itemized > header .meta .format img { + .itemized > header .meta .author img { width: 3.5em; } @@ -1960,7 +1957,6 @@ table > thead > tr > td, table > tbody > tr > td, table > tfoot > tr > td { - vertical-align: middle; padding: 0.5em; -webkit-transition: all 0.3s ease; -o-transition: all 0.3s ease; @@ -2216,6 +2212,7 @@ line-height: inherit; padding: 0 0 0 1.5em; white-space: nowrap; + min-width: 12.4em; } #header h1 a { @@ -2524,7 +2521,7 @@ /* Modern Browsers */ opacity: 0.65; font-size: 0.9em; - padding: 0; + padding: 1.25em 1.25em 0.1em 1.25em } @media screen and (max-width: 1280px) { @@ -2839,16 +2836,14 @@ .share-btn.facebook { background: #3B5998; } .share-btn.linkedin { background: #4875B4; } .share-btn.stumbleupon { background: #EB4823; } - .share-btn.pinterest { background: #BD081C; } .share-btn.reddit { background: #ff5700; } .share-btn.email { background: #444444; } - .share-btn.twitter:hover { background: #4c9ad6; } + .share-btn.twitter:hover { background: #4c9ad6 } .share-btn.google-plus:hover { background: #c64333; } .share-btn.facebook:hover { background: #2f4779; } .share-btn.linkedin:hover { background: #4069a2; } .share-btn.stumbleupon:hover { background: #d3401f; } - .share-btn.pinterest:hover { background: #AD0000; } .share-btn.reddit:hover { background: #e54e00; } .share-btn.email:hover { background: #363636; } -- cgit v1.2.3