diff options
author | danielkvist <d94.zaragoza@gmail.com> | 2019-04-02 13:12:59 +0300 |
---|---|---|
committer | danielkvist <d94.zaragoza@gmail.com> | 2019-04-02 13:12:59 +0300 |
commit | 796b09f02d7de34987684d24507fae00c8dcf6c3 (patch) | |
tree | 5982b78fb9ace691517788ef477fba7b18f4172e | |
parent | f4d77300627662f04ab43d9c46ec4641530d15f4 (diff) |
fix border bottom on single pages
-rw-r--r-- | archetypes/default.md | 1 | ||||
-rw-r--r-- | assets/css/single.css | 4 | ||||
-rw-r--r-- | exampleSite/content/about.md | 1 | ||||
-rw-r--r-- | layouts/_default/single.html | 9 |
4 files changed, 1 insertions, 14 deletions
diff --git a/archetypes/default.md b/archetypes/default.md index a44279e..9629d3f 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -3,7 +3,6 @@ title: "{{ replace .Name "-" " " | title }}" description: "" draft: true images: [] -borderColor: "" menu: main weight: 0 --- diff --git a/assets/css/single.css b/assets/css/single.css index 9384c5a..1b23bd7 100644 --- a/assets/css/single.css +++ b/assets/css/single.css @@ -1,8 +1,4 @@ /* HEADER */ -.single { - border-bottom: 5px solid var(--purple); -} - .single__header { align-items: center; display: flex; diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index 535d172..b5a7f07 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -3,7 +3,6 @@ title: "About" description: "Hugo, the world’s fastest framework for building websites" draft: false images: [] -borderColor: "yellow" menu: main weight: 2 --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 82dd5a8..7d2f167 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,12 +1,5 @@ {{ define "main" }} - -{{ $bc := "" }} - -{{ if .Params.borderColor }} -{{ $bc = printf "%s%s%s" "border-bottom: 5px solid var(--" (.Params.borderColor) ");"}} -{{ end }} - -<article class="single" style="{{ safeCSS $bc }}"> +<article class="single"> {{ $bkg := "" }} {{ if gt (len .Params.Images) 0 }} {{ $bkgImage := print (index .Params.images 0) }} |