Revert "Adding background_position option"

This reverts commit ed508759b2.
This commit is contained in:
L Laniewski-Wollk 2020-08-18 14:54:13 +10:00
parent ed508759b2
commit 1b75fd41bd
2 changed files with 1 additions and 4 deletions

View file

@ -32,8 +32,6 @@ params:
# background image of the landing page
background: "images/background.jpg"
# optional alignment of the background image
#background-position: center
# Provide logos for your site. The inverted logo will be used in the initial
# transparent navbar and the main logo will be used in the non-transparent navbar.

View file

@ -1,8 +1,7 @@
<div class="container-fluid home" id="home">
<div
class="background container-fluid"
style="background-image: url('{{ if .Site.Params.background }}{{ .Site.Params.background }}{{ else }}/assets/images/default-background.jpg{{ end }}');
{{ if .Site.Params.background_position }}background-position: {{ .Site.Params.background_position }};{{ end }}"
style="background-image: url('{{ if .Site.Params.background }}{{ .Site.Params.background }}{{ else }}/assets/images/default-background.jpg{{ end }}');"
></div>
<div class="container content text-center">
<img src="{{ if .Site.Params.author.image }}{{ .Site.Params.author.image }}{{ else }}/assets/images/default-avatar.png{{ end }}"