Skip to content

Commit

Permalink
background image is showing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bskdany committed Jul 30, 2023
1 parent e1423e8 commit aa3b3dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions assets/sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
margin-top: 2rem;
margin-bottom: 2rem;
text-align: center;
position: relative;
background-image: url("background.jpg");
background-size: cover;
background-position: center;

@include media-query($on-mobile) {
margin-bottom: 3em;
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/bio.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ $background_img_alt := "My Custom Image" }}
{{ $background := resources.Get $background_img }}

<div class="author">
<div class="author" style="background-image: url({{ $background.RelPermalink }}); background-size: cover; background-position: center" />

{{ with $image }}
{{ $image := $image.Fill "100x100 webp" }}
Expand Down

0 comments on commit aa3b3dd

Please sign in to comment.