-
-
Save jakegalson/7cdd9fdeef08b0e023808aa8047e2fc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ if isset .Site.Params "carousel" }} | |
{{ if .Site.Params.carousel.enable }} | |
{{ if gt (len .Site.Data.carousel) 0 }} | |
<section> | |
<div class="home-carousel"> | |
<div class="dark-mask"></div> | |
<div class="container"> | |
<div class="homepage owl-carousel"> | |
{{ range sort .Site.Data.carousel "weight" }} | |
<div class="item"> | |
<div class="row"> | |
<div class="col-sm-5 right"> | |
<h1>{{ .title }}</h1> | |
{{ .description | safeHTML }} | |
</div> | |
<div class="col-sm-7"> | |
<img class="img-responsive" src="{{ .image }}" alt=""> | |
</div> | |
</div> | |
</div> | |
{{ end }} | |
</div> | |
<!-- /.project owl-slider --> | |
</div> | |
</div> | |
</section> | |
{{ end }} | |
{{ end }} | |
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="{{ .Site.LanguageCode }}"> | |
{{ partial "head.html" . }} | |
<body> | |
<div id="all"> | |
<header> | |
{{ partial "nav.html" . }} | |
</header> | |
{{ partial "breadcrumbs.html" . }} | |
<div id="content"> | |
{{ if isset .Params "id" }} | |
{{ partial .Params.id . }} | |
{{ else }} | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div> | |
{{ .Content }} | |
</div> | |
</div> | |
</div> | |
<!-- /.row --> | |
</div> | |
<!-- /.container --> | |
{{ end }} | |
</div> | |
<!-- /#content --> | |
{{ partial "carousel.html" . }} | |
{{ partial "footer.html" . }} | |
</div> | |
<!-- /#all --> | |
{{ partial "scripts.html" . }} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment