diff --git a/config.toml.sample b/config.toml.sample index 92e0b65..0e75467 100644 --- a/config.toml.sample +++ b/config.toml.sample @@ -9,6 +9,15 @@ theme = "landingpage-flex-hugo-for-noobs" [params] custom_css = ["css/custom.css"] # can add other files in array and file in assets/css/ # font = "Acme" # a valid google font name, default Roboto, sets for entire site, can be specifically overridden +# imagespath = "" # prepended to any image filename otherwise /images is assumed. Allow you to house images elsewhere like s3 bucket + +[params.contact] + # name = "" + # email = "" + # address = "" + # cell = "541-xxx-xxx" + # cell_image = "cell.jpg" + # avatar = "me.jpg" [params.navbar] #logo_text = "Will override site title" # default is to use the site title @@ -73,6 +82,8 @@ custom_css = ["css/custom.css"] # can add other files in array and file in asse # hover_color ="purple" # hover_bg_color ="white" + + # TODO enable via shortcode [[params.social]] #title = "email" diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index 9b7d1e2..0dd55b5 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -49,7 +49,10 @@ {{ with .hero }} {{ with .img }} - #hero {background-image: url("{{ . }}");} + {{ with $.Site.Params.imagespath }} {{ $.Scratch.Set "path" ( . ) }} {{ else }}{{ $.Scratch.Set "path" "/images/" }}{{ end }} + #hero { + background-image: url("{{ $.Scratch.Get "path" }}{{ . }}"); + } {{ end }} {{ with .font }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index b1176e2..ec181e7 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -5,7 +5,7 @@ - +