partial fixes

This commit is contained in:
Denys Konovalov 2022-10-24 16:15:18 +02:00
parent 112680323e
commit 421a9fe7fa
4 changed files with 42 additions and 8 deletions

@ -4,7 +4,7 @@
{{ if $data.homepage.slider.enable }} {{ if $data.homepage.slider.enable }}
{{ with $data.homepage.slider }} {{ with $data.homepage.slider }}
<section class="hero-section overlay bg-cover" data-background="{{ .bg_image | absURL }}"> <section class="hero-section overlay bg-cover hero-default" data-background="{{ .bg_image | absURL }}">
<div class="container"> <div class="container">
<div class="hero-slider"> <div class="hero-slider">
{{ range .slider_item }} {{ range .slider_item }}
@ -24,6 +24,33 @@
</div> </div>
</section> </section>
{{ end }} {{ end }}
<noscript>
<style>
.hero-default {
display: none;
}
</style>
<section class="hero-section overlay bg-cover" style="background-image: url({{ $data.homepage.slider.bg_image | absURL }});">
<div class="container">
<div class="hero-slider">
{{ range first 1 $data.homepage.slider.slider_item }}
<div class="hero-slider-item">
<div class="row">
<div class="col-md-8">
<h1 class="text-white">{{ $data.homepage.slider.title | markdownify }}</h1>
<p class="text-muted mb-4">{{ .content | markdownify }}</p>
{{ if .button.enable }}
<a href="{{ .button.link | absLangURL }}" class="btn btn-primary" data-animation-out="fadeOut{{.animation_out | title }}" data-delay-out="5" data-duration-in=".3" data-animation-in="fadeIn{{.animation_in | title }}" data-delay-in=".7">{{ .button.label }}</a>
{{ end }}
</div>
</div>
</div>
{{ end }}
</div>
</div>
</section>
</noscript>
{{ end }} {{ end }}
{{ if $data.homepage.about.enable }} {{ if $data.homepage.about.enable }}

@ -66,13 +66,6 @@
{{ $script := resources.Get "js/script.js" | minify}} {{ $script := resources.Get "js/script.js" | minify}}
<script src="{{ $script.Permalink }}"></script> <script src="{{ $script.Permalink }}"></script>
<noscript>
<style>
.preloader {
opacity: 0;
}
</style>
</noscript>
{{ if ($.Scratch.Get "photoswipeloaded") }} {{ if ($.Scratch.Get "photoswipeloaded") }}
<script src="/js/load-photoswipe.js"></script> <script src="/js/load-photoswipe.js"></script>

@ -81,4 +81,11 @@
</nav> </nav>
</div> </div>
</div> </div>
<noscript>
<style>
.navigation {
background-color: #1a1a37;
}
</style>
</noscript>
</header> </header>

@ -4,4 +4,11 @@
<img src="{{ . | absURL }}" width="222px" alt="preloader"> <img src="{{ . | absURL }}" width="222px" alt="preloader">
{{ end }} {{ end }}
</div> </div>
<noscript>
<style>
.preloader {
display: none;
}
</style>
</noscript>
{{ end }} {{ end }}