mirror of https://github.com/escalate/hugo-split-theme.git

Felix Boerner
04.37.2024 cb585a2dc075f9c715e144e6f482fcfa253d2755
feat: add bg image
2 files modified
6 ■■■■ changed files
assets/scss/_content.scss 4 ●●●● patch | view | raw | blame | history
assets/scss/split.scss 2 ●●● patch | view | raw | blame | history
assets/scss/_content.scss
@@ -158,8 +158,8 @@
  -webkit-flex: 0 auto;
  -ms-flex: 0 auto;
  flex: 0 auto;
  background-image: url('../images/split.jpg');
  background-position: 50% 50%;
  background-image: $image-background;
  background-position: $image-position;
  background-size: cover;
  -o-object-fit: cover;
  object-fit: cover;
assets/scss/split.scss
@@ -17,7 +17,7 @@
// Image
$image-background   : {{ if .Site.Params.visual.image.enable }}url('../{{ .Site.Params.visual.image.file | default "images/background.jpg" }}'){{ else }}none{{ end }};
$image-position     : {{ if .Site.Params.visual.image.enable }}{{ .Site.Params.visual.image.position | default "center center" }}{{ else }}0% 0%{{ end }};
$image-position     : {{ if .Site.Params.visual.image.enable }}{{ .Site.Params.visual.image.position | default "50% 50%" }}{{ else }}0% 0%{{ end }};
// Animation
$animation-name     : fadein;