From 435636d7458f97b95d466ae9abaacd9b51efa0f1 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Wed, 25 Jul 2018 12:26:05 +1000 Subject: [PATCH] refactors layouts for portfolio and sidebar --- layouts/partials/portfolio/content.html | 11 ++++------- layouts/partials/sidebar.html | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/layouts/partials/portfolio/content.html b/layouts/partials/portfolio/content.html index 33f0e98..6ce1150 100644 --- a/layouts/partials/portfolio/content.html +++ b/layouts/partials/portfolio/content.html @@ -15,9 +15,6 @@

{{ .Content }} @@ -32,11 +29,11 @@
{{ range (where .Data.Pages "Params.featured" "!=" "true").ByDate.Reverse }}
- - {{ .Title }} - -
+ {{ .Title }} +
+
{{ .Title }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index f8e849d..497e1a0 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -8,9 +8,9 @@ {{ with .Site.Params.authorimage }} {{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }} {{ $authorImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }} -

+

Author Image -

+
{{ end }}

{{ with .Site.Params.description }} {{.}} {{ else }} Your site's description {{end}}