mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 12:13:58 +00:00
1 parent
4c9c743ae6
commit
11a859dca2
2 files changed
+3
-3
No files matched your search
@@ -2,10 +2,10 @@
|
||||
{{ $page := .page }}
|
||||
{{ $header := $page.Params.header }}
|
||||
|
||||
{{/* Compute image path outside of HTML style element due to Hugo limitation. */}}
|
||||
{{/* See Hugo note on linking assets in styles: https://github.com/gohugoio/hugoThemes#common-permalink-issues */}}
|
||||
{{ $overlay_img := "" }}
|
||||
{{ if $header.overlay_img }}
|
||||
{{ $overlay_img = (printf "img/%s" $header.overlay_img) | relURL }}
|
||||
{{ $overlay_img = printf "img/%s" $header.overlay_img | absURL }}
|
||||
{{end}}
|
||||
|
||||
<section id="{{ $page.File.TranslationBaseName }}" class="hero-overlay" style="
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
{{ if $item.overlay_img }}
|
||||
background-image:
|
||||
{{ if $item.overlay_filter }}linear-gradient(rgba(0, 0, 0, {{ $item.overlay_filter }}), rgba(0, 0, 0, {{ $item.overlay_filter }})), {{ end }}
|
||||
url('{{ printf "/img/%s" $item.overlay_img | absURL }}');
|
||||
url('{{ printf "img/%s" $item.overlay_img | absURL }}');
|
||||
{{ end }}
|
||||
;">
|
||||
<div class="container" style="text-align: {{$item.align | default "left"}};">
|
||||
|
||||
Reference in new issue
Block a user