Skip to content

Commit

Permalink
banner.html: use path.Join
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 14, 2024
1 parent 15bd1b1 commit 65d2591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/partials/banner.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- /* Accepts 1 parameter, the "context" */ -}}

{{- $src := .context.Page.Params.banner -}}
{{- $config := imageConfig (add "/src/static" $src) -}}
{{- $config := imageConfig (path.Join "/src/static" $src) -}}
{{- $classes := "d-block img-fluid rounded-3 mb-4" -}}

<img src="{{ $src }}" class="{{ $classes }}" alt="" loading="lazy" width="{{ $config.Width }}" height="{{ $config.Height }}">
<img src="{{ $src }}" class="{{ $classes }}" alt="" width="{{ $config.Width }}" height="{{ $config.Height }}" loading="lazy">

0 comments on commit 65d2591

Please sign in to comment.