2019-11-04 13:09:44 +00:00
|
|
|
{{ if .IsHome }}
|
2019-11-11 03:11:03 +00:00
|
|
|
<header class="header">
|
2019-11-15 08:37:32 +00:00
|
|
|
{{ if and .Site.Params.homeHeaderType (eq .Site.Params.homeHeaderType "slide") }}
|
|
|
|
{{ partial "header/header-slide" . }}
|
|
|
|
{{ else if and .Site.Params.homeHeaderType (eq .Site.Params.homeHeaderType "img") }}
|
|
|
|
{{ partial "header/header-img" . }}
|
|
|
|
{{ else if and .Site.Params.homeHeaderType (eq .Site.Params.homeHeaderType "text") }}
|
|
|
|
{{ partial "header/header-text" . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ end }}
|
2019-11-04 13:09:44 +00:00
|
|
|
</header>
|
2019-11-14 15:02:27 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/swiper/css/swiper.min.css">
|
|
|
|
<script src="https://unpkg.com/swiper/js/swiper.min.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
{{ $swiper := .Site.Data.swiper }}
|
|
|
|
var options = JSON.parse({{ $swiper | jsonify }});
|
|
|
|
|
|
|
|
var mySwiper = new Swiper('.swiper-container', options);
|
|
|
|
</script>
|
|
|
|
|
2019-11-04 13:09:44 +00:00
|
|
|
{{ end }}
|