diff options
author | somrat <monnaf37@gmail.com> | 2019-02-06 09:09:13 +0300 |
---|---|---|
committer | somrat <monnaf37@gmail.com> | 2019-02-06 09:09:13 +0300 |
commit | 893c479e122838675d27c0001c363b3eb95c9ed6 (patch) | |
tree | 1ab1aeaec0f64e355f4734bb7bbc6af4e207531e /layouts | |
parent | 6629a0455fb4daa144439fb9ddf6ed2fc011098d (diff) |
modified exampleSite
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/about.html | 71 | ||||
-rw-r--r-- | layouts/partials/clients.html | 65 | ||||
-rw-r--r-- | layouts/partials/cta.html | 2 | ||||
-rw-r--r-- | layouts/partials/feature.html | 43 | ||||
-rw-r--r-- | layouts/partials/flags.html | 12 | ||||
-rw-r--r-- | layouts/partials/footer.html | 14 | ||||
-rw-r--r-- | layouts/partials/header.html | 14 | ||||
-rw-r--r-- | layouts/partials/hero.html | 2 | ||||
-rw-r--r-- | layouts/partials/navigation.html | 18 | ||||
-rw-r--r-- | layouts/partials/philosophy.html | 81 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 93 | ||||
-rw-r--r-- | layouts/partials/pricing.html | 81 | ||||
-rw-r--r-- | layouts/partials/service.html | 57 | ||||
-rw-r--r-- | layouts/partials/team.html | 131 | ||||
-rw-r--r-- | layouts/partials/testimonial.html | 57 | ||||
-rw-r--r-- | layouts/partials/workingprocess.html | 79 |
16 files changed, 440 insertions, 380 deletions
diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 4d3461d..4f19b8d 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -1,39 +1,42 @@ -{{ if .Site.Data.about.enable }} -{{ "<!-- About Section Start -->" | safeHTML }} -<section class="about section-sm" id="about"> - <div class="container"> - {{ range .Site.Data.about.item }} - {{ if .positionRight }} - <div class="row mt-50 justify-content-center"> - <div class="col-md-5 col-md-5 col-sm-12 offset-md-1"> - <div class="content"> - <h2>{{ .title }}</h2> - <p> - {{ .description }} - </p> +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.about }} + {{ if .enable }} + {{ "<!-- About Section Start -->" | safeHTML }} + <section class="about section-sm" id="about"> + <div class="container"> + {{ range .item }} + {{ if .positionRight }} + <div class="row mt-50 justify-content-center"> + <div class="col-md-5 col-md-5 col-sm-12 offset-md-1"> + <div class="content"> + <h2>{{ .title }}</h2> + <p> + {{ .description }} + </p> + </div> + </div> + <div class="col-12 col-md-5 col-sm-12 text-center"> + <img src="{{ .image | absURL }}" class="img-fluid rounded shadow" alt="about-image"> </div> </div> - <div class="col-12 col-md-5 col-sm-12 text-center"> - <img src="{{ .image }}" class="img-fluid rounded shadow" alt="about-image"> - </div> - </div> - {{ else }} - <div class="row mb-50 justify-content-center"> - <div class="col-md-5 col-sm-12 text-center offset-md-1"> - <img src="{{ .image }}" class="img-fluid rounded shadow" alt="about-image"> - </div> - <div class="col-md-5 col-sm-12"> - <div class="content"> - <h2>{{ .title }}</h2> - <p> - {{ .description }} - </p> + {{ else }} + <div class="row mb-50 justify-content-center"> + <div class="col-md-5 col-sm-12 text-center offset-md-1"> + <img src="{{ .image | absURL }}" class="img-fluid rounded shadow" alt="about-image"> + </div> + <div class="col-md-5 col-sm-12"> + <div class="content"> + <h2>{{ .title }}</h2> + <p> + {{ .description }} + </p> + </div> </div> </div> - </div> + {{ end }} {{ end }} - {{ end }} - </div> -</section> -{{"<!-- About section End -->" | safeHTML}} -{{ end }}
\ No newline at end of file + </div> + </section> + {{"<!-- About section End -->" | safeHTML}} + {{ end }} +{{ end }} diff --git a/layouts/partials/clients.html b/layouts/partials/clients.html index 6e49727..11fadbe 100644 --- a/layouts/partials/clients.html +++ b/layouts/partials/clients.html @@ -1,37 +1,40 @@ -{{ if .Site.Data.clients.enable }} -{{ "<!-- Client Section Start -->" | safeHTML }} -<section class="section"> - <div class="container"> - <div class="row"> - <div class="col-md-6 text-center"> - {{ with .Site.Data.clients.image }}<img class="img-fluid shadow rounded" src="{{ . | absURL }}" alt="service-image"/>{{ end }} - </div> - <div class="col-md-6 align-self-center"> - {{ with .Site.Data.clients.title }}<h2>{{.}}</h2>{{ end }} - {{ with .Site.Data.clients.description }}<p>{{.}}</p>{{ end }} - <div class="row"> - <div class="col-md-6"> - <ul class="color-gray client-service-list"> - {{ range .Site.Data.clients.servicelist }} - <li> - <i class="tf-ion-android-checkbox-outline"></i> {{ .name }} - </li> - {{ end }} - </ul> +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.clients }} + {{ if .enable }} + {{ "<!-- Client Section Start -->" | safeHTML }} + <section class="section"> + <div class="container"> + <div class="row"> + <div class="col-md-6 text-center"> + {{ with .image }}<img class="img-fluid shadow rounded" src="{{ . | absURL }}" alt="service-image"/>{{ end }} + </div> + <div class="col-md-6 align-self-center"> + {{ with .title }}<h2>{{.}}</h2>{{ end }} + {{ with .description }}<p>{{.}}</p>{{ end }} + <div class="row"> + <div class="col-md-6"> + <ul class="color-gray client-service-list"> + {{ range .servicelist }} + <li> + <i class="tf-ion-android-checkbox-outline"></i> {{ .name }} + </li> + {{ end }} + </ul> + </div> </div> </div> </div> - </div> - <div class="row"> - <div class="col-md-12"> - <div id="clients-slider" class="clients-logo-slider"> - {{ range .Site.Data.clients.clientLogo }} - <img src="{{ .image | absURL }}" alt="client-logo"> - {{ end }} + <div class="row"> + <div class="col-md-12"> + <div id="clients-slider" class="clients-logo-slider"> + {{ range .clientLogo }} + <img src="{{ .image | absURL }}" alt="client-logo"> + {{ end }} + </div> </div> </div> </div> - </div> -</section> -{{ "<!-- Client Section End -->" | safeHTML }} -{{ end }}
\ No newline at end of file + </section> + {{ "<!-- Client Section End -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/cta.html b/layouts/partials/cta.html index 282cf5f..a4433de 100644 --- a/layouts/partials/cta.html +++ b/layouts/partials/cta.html @@ -6,7 +6,7 @@ <div class="col-md-12 text-center"> {{ with .Site.Params.cta.title }}<h2>{{ . }}</h2>{{ end }} {{ with .Site.Params.cta.subtitle }}<p>{{ . | safeHTML }}</p>{{ end }} - {{ with .Site.Params.cta.btnText }}<a href="{{ "/contact" | absURL }}" class="btn btn-main">{{ . }}</a>{{ end }} + {{ with .Site.Params.cta.btnText }}<a href="{{ "contact" | absURL }}" class="btn btn-main">{{ . }}</a>{{ end }} </div> </div> </div> diff --git a/layouts/partials/feature.html b/layouts/partials/feature.html index 13384b8..4e78359 100644 --- a/layouts/partials/feature.html +++ b/layouts/partials/feature.html @@ -1,23 +1,26 @@ -{{ if .Site.Data.feature.enable }} -{{ "<!-- Feature Section Start -->" | safeHTML }} -<section class="services section-xs" id="services"> - <div class="container"> - <div class="row"> - {{ range .Site.Data.feature.item }} - {{ "<!-- Single Feature Item -->" | safeHTML }} - <div class="col-md-4 col-sm-6 col-xs-12"> - <div class="service-block color-bg text-center"> - <div class="service-icon text-center"> - <i class="{{ .icon }}"></i> +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.feature }} + {{ if .enable }} + {{ "<!-- Feature Section Start -->" | safeHTML }} + <section class="services section-xs" id="services"> + <div class="container"> + <div class="row"> + {{ range .item }} + {{ "<!-- Single Feature Item -->" | safeHTML }} + <div class="col-md-4 col-sm-6 col-xs-12"> + <div class="service-block color-bg text-center"> + <div class="service-icon text-center"> + <i class="{{ .icon }}"></i> + </div> + <h3>{{ .title }}</h3> + <p>{{ .description }}</p> </div> - <h3>{{ .title }}</h3> - <p>{{ .description }}</p> </div> - </div> - {{ "<!-- End Single Feature Item -->" | safeHTML }} - {{ end }} + {{ "<!-- End Single Feature Item -->" | safeHTML }} + {{ end }} + </div> </div> - </div> -</section> -{{ "<!-- End Feature section -->" | safeHTML }} -{{ end }}
\ No newline at end of file + </section> + {{ "<!-- End Feature section -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/flags.html b/layouts/partials/flags.html new file mode 100644 index 0000000..68d8552 --- /dev/null +++ b/layouts/partials/flags.html @@ -0,0 +1,12 @@ +<!-- Menu de changement de langue --> +{{ $icone_base_url := "images/logos/lang-" }} +{{ $icone_end_url := ".gif" }} +<!-- Utilise ".liste" et ".site" passés dans le scope du range pour obtenir .Site.Language--> +{{ $icone_url := delimit (slice $icone_base_url .liste.code $icone_end_url) "" }} +<!-- TODO : Faire un style adapté aux drapeaux/langue + highligh l'actuel --> +{{ if eq (string .liste.code) (string .site.Language) }} + <a href="{{ .liste.code | absURL }}" class="selected"><img src= {{ $icone_url | absURL }} alt="IMAGE" />{{ .liste.code }} + {{ else }} + <a href="{{ .liste.code | absURL }}"><img src= {{ $icone_url | absURL }} alt="IMAGE" /> +{{ end }} +</a> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f42fbd0..a54fae7 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,31 +4,31 @@ <div class="container"> <div class="row"> <div class="col-sm-3 col-md-3 col-lg-3"> - <h3>About</h3> + <h3>{{ .Site.Params.footerAboutTitle }}</h3> {{ with .Site.Params.footerDescription }}<p>{{ . }}</p>{{ end }} </div> <div class="col-sm-3 col-md-3 col-lg-3"> - <h3>Our Services</h3> + <h3>{{ .Site.Params.footerServiceTitle }}</h3> <ul> {{ range .Site.Menus.service }} <li> - <a href="{{ .URL }}">{{ .Name }}</a> + <a href="{{ .URL | absLangURL }}">{{ i18n .Name }}</a> </li> {{ end }} </ul> </div> <div class="col-sm-3 col-md-3 col-lg-3"> - <h3>Quick Links</h3> + <h3>{{ .Site.Params.footerQuicklinkTitle }}</h3> <ul> {{ range .Site.Menus.quicklink }} <li> - <a href="{{ .URL }}">{{ .Name }}</a> + <a href="{{ .URL | absLangURL }}">{{ i18n .Name }}</a> </li> {{ end }} </ul> </div> <div class="col-sm-3 col-md-3 col-lg-3"> - <h3>Subscribe Now</h3> + <h3>{{ .Site.Params.footerSubscribeTitle }}</h3> <form class="subscribe-form"> <div class="form-group"> <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"> @@ -73,4 +73,4 @@ </body> -</html>
\ No newline at end of file +</html> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7b9cfd3..3b35060 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,7 +5,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="Navigator Hugo Template"> -<meta name="author" content="Themefisher.com"> +<meta name="author" content="Themefisher.com"> {{ .Hugo.Generator }} <title>{{ .Site.Title }}</title> @@ -14,7 +14,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> {{ "<!-- Favicon -->" | safeHTML }} -<link rel="shortcut icon" type="image/x-icon" href="{{ "images/favicon.png" | absURL }}" /> +<link rel="shortcut icon" type="image/x-icon" href="{{ "images/favicon.ico" | absURL }}" /> {{"<!-- Stylesheets -->" | safeHTML}} {{ "<!-- Themefisher Icon font -->" | safeHTML }} @@ -27,8 +27,14 @@ <link rel="stylesheet" href="{{ "plugins/slick-carousel/slick/slick.css" | absURL }}"> <link rel="stylesheet" href="{{ "plugins/slick-carousel/slick/slick-theme.css" | absURL }}"> {{ "<!-- Main Stylesheet -->" | safeHTML }} -<link rel="stylesheet" href="{{ "css/style.css" | absURL }}"> + +<!-- gestion de la personalisation de la css du theme --> +{{ $style_original := resources.Get "css/style_original.css" }} +{{ $style_site := resources.Get "css/my_style.css" }} +{{ $style := slice $style_original $style_site | resources.Concat "css/style.css" | minify }} +<link rel="stylesheet" href="{{ $style.RelPermalink }}"> +<!-- <link rel="stylesheet" href="{{ "css/style.css" | absURL }}"> --> </head> -<body id="body">
\ No newline at end of file +<body id="body"> diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index fb4d61b..c774798 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -5,7 +5,7 @@ <div class="row"> <div class="col-md-6"> <div class="video-player"> - <img class="img-fluid rounded" src="{{ with .Site.Params.hero.videoThumb }}{{.}}{{ end }}" alt="video-thumb"> + <img class="img-fluid rounded" src="{{ with .Site.Params.hero.videoThumb }}{{.| absURL }}{{ end }}" alt="video-thumb"> <a class="play-icon" href="javascript:void(0)"> <i class="tf-ion-play" data-video="{{ with .Site.Params.hero.videoURL }}{{.}}{{ end }}?autoplay=1"></i> </a> diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 2bce642..d52080c 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,5 +1,10 @@ {{ "<!-- Fixed Navigation -->" | safeHTML }} -<section class="header navigation"> +<!-- <section class="top-bar animated-header"> emprunt depuis timer theme --> +{{ if .Site.Params.menufixed }} + <section class="header navigation top-bar animated-header"> +{{ else }} + <section class="header navigation"> +{{ end }} <div class="container"> <div class="row"> <div class="col-md-12"> @@ -11,6 +16,13 @@ aria-expanded="false" aria-label="Toggle navigation"> <span class="tf-ion-android-menu"></span> </button> + <!-- Icones & drapeaux de choix des langues --> + <div id="drapeaux"> + <!-- Pour passer la langue actuelle (variable globale) dans la range => explicitement --> + {{ range .Site.Params.listeLangues }} + {{ partial "flags.html" (dict "site" $.Site "liste" .) }} + {{ end }} + </div> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav ml-auto"> <li class="nav-item"> @@ -18,7 +30,7 @@ </li> {{ range .Site.Menus.nav }} <li class="nav-item"> - <a class="nav-link" href="{{ .URL }}">{{ .Name }}</a> + <a class="nav-link" href="{{ .URL | absLangURL }}">{{ i18n .Name }}</a> </li> {{ end }} </ul> @@ -27,4 +39,4 @@ </div> </div> </div> -</section>
\ No newline at end of file +</section> diff --git a/layouts/partials/philosophy.html b/layouts/partials/philosophy.html index 3b38c0b..695c10c 100644 --- a/layouts/partials/philosophy.html +++ b/layouts/partials/philosophy.html @@ -1,48 +1,51 @@ -{{ if .Site.Data.philosophy.enable }} -{{ "<!-- Philosophy Section Start -->" | safeHTML }} -<section class="about-mission-vision section"> - <div class="container"> - <div class="row"> - <div class="col"> - <div class="title"> - {{ with .Site.Data.philosophy.topTitle }}<h4>{{ . }}</h4>{{ end }} - {{ with .Site.Data.philosophy.title }} - <h2>{{ . }}</h2> - <span class="border"></span> - {{ end }} - {{ with .Site.Data.philosophy.subtitle }}<p>{{ . }}</p>{{ end }} +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.philosophy }} + {{ if .enable }} + {{ "<!-- Philosophy Section Start -->" | safeHTML }} + <section class="about-mission-vision section"> + <div class="container"> + <div class="row"> + <div class="col"> + <div class="title"> + {{ with .topTitle }}<h4>{{ . }}</h4>{{ end }} + {{ with .title }} + <h2>{{ . }}</h2> + <span class="border"></span> + {{ end }} + {{ with .subtitle }}<p>{{ . }}</p>{{ end }} + </div> </div> </div> - </div> - <div class="row"> - <div class="col-md-12"> - <div class="commonTab"> - <ul class="nav nav-tabs justify-content-center" id="myTab"> - {{ range $index, $element := .Site.Data.philosophy.tabItem }} - <li class="nav-item"> - <a class="nav-link {{ if eq $index 0 }}active{{ end }}" id="{{ .id }}-tab" data-toggle="tab" href="#{{.id}}">{{ .title }}</a> - </li> - {{ end }} - </ul> - <div class="tab-content" id="myTabContent"> - {{ range $index, $element := .Site.Data.philosophy.tabItem }} - <div class="tab-pane fade {{ if eq $index 0 }}show active{{ end }}" id="{{ .id }}"> - <div class="row"> - <div class="col-md-6 align-self-center"> - {{ with .heading }}<h2>{{ . }}</h2>{{ end }} - {{ with .content }}<p>{{ . | safeHTML }}</p>{{ end }} - </div> - <div class="col-md-6"> - <img class="img-fluid rounded shadow" src="{{ .image | absURL }}" alt="tab-image"> + <div class="row"> + <div class="col-md-12"> + <div class="commonTab"> + <ul class="nav nav-tabs justify-content-center" id="myTab"> + {{ range $index, $element := .tabItem }} + <li class="nav-item"> + <a class="nav-link {{ if eq $index 0 }}active{{ end }}" id="{{ .id }}-tab" data-toggle="tab" href="#{{.id}}">{{ .title }}</a> + </li> + {{ end }} + </ul> + <div class="tab-content" id="myTabContent"> + {{ range $index, $element := .tabItem }} + <div class="tab-pane fade {{ if eq $index 0 }}show active{{ end }}" id="{{ .id }}"> + <div class="row"> + <div class="col-md-6 align-self-center"> + {{ with .heading }}<h2>{{ . }}</h2>{{ end }} + {{ with .content }}<p>{{ . | safeHTML }}</p>{{ end }} + </div> + <div class="col-md-6"> + <img class="img-fluid rounded shadow" src="{{ .image | absURL }}" alt="tab-image"> + </div> </div> </div> + {{ end }} </div> - {{ end }} </div> </div> </div> </div> - </div> -</section> -{{ "<!-- Philosophy Section End -->" | safeHTML }} -{{ end }}
\ No newline at end of file + </section> + {{ "<!-- Philosophy Section End -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index b0afb3c..9b011ea 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -1,52 +1,55 @@ -{{ if .Site.Data.portfolio.enable }} -{{ "<!-- Start Portfolio Section -->" | safeHTML }} -<section class="portfolio section" id="portfolio"> - <div class="container-fluid"> - <div class="row"> - <div class="col"> - <div class="title text-center"> - {{ with .Site.Data.portfolio.topTitle }} - <h4>{{ . }}</h4> - {{ end }} - {{ with .Site.Data.portfolio.title }} - <h2>{{ . }}</h2> - <span class="border"></span> - {{ end }} - {{ with .Site.Data.portfolio.subtitle }} - <p>{{ . }}</p> - {{ end }} +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.portfolio }} + {{ if .enable }} + {{ "<!-- Start Portfolio Section -->" | safeHTML }} + <section class="portfolio section" id="portfolio"> + <div class="container-fluid"> + <div class="row"> + <div class="col"> + <div class="title text-center"> + {{ with .topTitle }} + <h4>{{ . }}</h4> + {{ end }} + {{ with .title }} + <h2>{{ . }}</h2> + <span class="border"></span> + {{ end }} + {{ with .subtitle }} + <p>{{ . }}</p> + {{ end }} + </div> </div> </div> - </div> - <div class="row"> - <div class="col-lg-12"> - <div class="portfolio-filter"> - <button type="button" data-filter="all">All</button> - {{ range .Site.Data.portfolio.filtermenu }} - <button type="button" data-filter=".{{ .category }}">{{ .name }}</button> - {{ end }} + <div class="row"> + <div class="col-lg-12"> + <div class="portfolio-filter"> + <button type="button" data-filter="all">All</button> + {{ range .filtermenu }} + <button type="button" data-filter=".{{ .category }}">{{ .name }}</button> + {{ end }} + </div> </div> </div> - </div> - <div class="row portfolio-items-wrapper"> - {{ range .Site.Data.portfolio.item }} - <div class="col-6 col-md-4 padding-0 mix {{.category}}"> - <div class="portfolio-block"> - <img class="img-fluid" src="{{ .image | absURL }}" alt="portfolio-image"> - <div class="caption"> - <a class="search-icon" href="{{ .image | absURL }}" data-lightbox="image-1"> - <i class="tf-ion-ios-search-strong"></i> - </a> - <h4> - <a href="">{{ .title }}</a> - </h4> + <div class="row portfolio-items-wrapper"> + {{ range .item }} + <div class="col-6 col-md-4 padding-0 mix {{.category}}"> + <div class="portfolio-block"> + <img class="img-fluid" src="{{ .image | absURL }}" alt="portfolio-image"> + <div class="caption"> + <a class="search-icon" href="{{ .image | absURL }}" data-lightbox="image-1"> + <i class="tf-ion-ios-search-strong"></i> + </a> + <h4> + <a href="">{{ .title }}</a> + </h4> + </div> </div> </div> - </div> - {{ end }} + {{ end }} + </div> </div> - </div> - <!-- end row --> -</section> -{{ "<!-- End section -->" | safeHTML }} -{{ end }}
\ No newline at end of file + <!-- end row --> + </section> + {{ "<!-- End section -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/pricing.html b/layouts/partials/pricing.html index 7e82708..bb5b80d 100644 --- a/layouts/partials/pricing.html +++ b/layouts/partials/pricing.html @@ -1,45 +1,48 @@ -{{ if .Site.Data.pricing.enable }} -{{ "<!-- Start Pricing section -->" | safeHTML }} -<section class="pricing-table section" id="pricing"> - <div class="container"> - <div class="row"> - <div class="col"> - <div class="title text-center"> - {{ with .Site.Data.pricing.topTitle }}<h4>{{.}}</h4>{{ end }} - {{ with .Site.Data.pricing.title }} - <h2>{{.}}</h2> - <span class="border"></span> - {{ end }} - {{ with .Site.Data.pricing.subtitle }}<p>{{.}}</p>{{ end }} +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.pricing }} + {{ if .enable }} + {{ "<!-- Start Pricing section -->" | safeHTML }} + <section class="pricing-table section" id="pricing"> + <div class="container"> + <div class="row"> + <div class="col"> + <div class="title text-center"> + {{ with .topTitle }}<h4>{{.}}</h4>{{ end }} + {{ with .title }} + <h2>{{.}}</h2> + <span class="border"></span> + {{ end }} + {{ with .subtitle }}<p>{{.}}</p>{{ end }} + </div> </div> </div> - </div> - <div class="row justify-content-center"> - {{ range .Site.Data.pricing.item }} - {{ "<!-- single pricing table -->" | safeHTML }} - <div class="col-md-4 col-sm-6 col-xs-12"> - <div class="pricing-item"> - {{ "<!-- plan name & value -->" | safeHTML }} - <div class="price-title bg-pricing"> - {{ with .name }}<h3>{{.}}</h3>{{ end }} - {{ with .price }}<strong class="value">{{.}}</strong>{{ end }} - {{ with .description }}<p>{{.}}</p>{{ end }} + <div class="row justify-content-center"> + {{ range .item }} + {{ "<!-- single pricing table -->" | safeHTML }} + <div class="col-md-4 col-sm-6 col-xs-12"> + <div class="pricing-item"> + {{ "<!-- plan name & value -->" | safeHTML }} + <div class="price-title bg-pricing"> + {{ with .name }}<h3>{{.}}</h3>{{ end }} + {{ with .price }}<strong class="value">{{.}}</strong>{{ end }} + {{ with .description }}<p>{{.}}</p>{{ end }} + </div> + {{ "<!-- plan description -->" | safeHTML }} + <ul> + {{ range .featurelist }} + <li>{{.item}}</li> + {{ end }} + </ul> + {{ "<!-- signup button -->" | safeHTML }} + <a class="btn btn-main" href="{{.btnURL}}">{{.btnText}}</a> </div> - {{ "<!-- plan description -->" | safeHTML }} - <ul> - {{ range .featurelist }} - <li>{{.item}}</li> - {{ end }} - </ul> - {{ "<!-- signup button -->" | safeHTML }} - <a class="btn btn-main" href="{{.btnURL}}">{{.btnText}}</a> </div> + {{ end }} </div> - {{ end }} + <!-- End row --> </div> - <!-- End row --> - </div> - <!-- End container --> -</section> -{{ "<!-- End section -->" | safeHTML }} -{{ end }}
\ No newline at end of file + <!-- End container --> + </section> + {{ "<!-- End section -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/service.html b/layouts/partials/service.html index ddb46e3..091c920 100644 --- a/layouts/partials/service.html +++ b/layouts/partials/service.html @@ -1,32 +1,35 @@ -{{ if .Site.Data.service.enable }} -{{ "<!-- Service Section Start -->" | safeHTML }} -<section class="service-list section bg-gray"> - <div class="container"> - <div class="row"> - <div class="col"> - <div class="title text-center"> - {{ with .Site.Data.service.topTitle }}<h4>{{.}}</h4>{{ end }} - {{ with .Site.Data.service.title }}<h2>{{.}}</h2><span class="border"></span>{{ end }} - {{ with .Site.Data.service.subtitle }}<p>{{.}}</p>{{ end }} +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.service }} + {{ if .enable }} + {{ "<!-- Service Section Start -->" | safeHTML }} + <section class="service-list section bg-gray"> + <div class="container"> + <div class="row"> + <div class="col"> + <div class="title text-center"> + {{ with .topTitle }}<h4>{{.}}</h4>{{ end }} + {{ with .title }}<h2>{{.}}</h2><span class="border"></span>{{ end }} + {{ with .subtitle }}<p>{{.}}</p>{{ end }} + </div> </div> </div> - </div> - <div class="row"> - {{ range .Site.Data.service.item }} - <div class="col-md-4"> - <div class="block"> - {{ with .icon }}<i class="{{.}}"></i>{{ end }} - {{ with .title }}<h3>{{.}}</h3>{{ end }} - <ul> - {{ range .list }} - <li>{{.name}}</li> - {{ end }} - </ul> + <div class="row"> + {{ range .item }} + <div class="col-md-4"> + <div class="block"> + {{ with .icon }}<i class="{{.}}"></i>{{ end }} + {{ with .title }}<h3>{{.}}</h3>{{ end }} + <ul> + {{ range .list }} + <li>{{.name}}</li> + {{ end }} + </ul> + </div> </div> + {{ end }} </div> - {{ end }} </div> - </div> -</section> -{{ "<!-- Service Section Start -->" | safeHTML }} -{{ end }}
\ No newline at end of file + </section> + {{ "<!-- Service Section Start -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/team.html b/layouts/partials/team.html index 625d0ce..ffd7f2d 100644 --- a/layouts/partials/team.html +++ b/layouts/partials/team.html @@ -1,70 +1,73 @@ -{{ if .Site.Data.team.enable }} -{{ "<!-- Team Section Start -->" | safeHTML }} -<section class="team section bg-gray" id="team"> - <div class="container"> - <div class="row"> - <div class="col"> - <div class="title text-center"> - {{ with .Site.Data.team.topTitle }}<h4>{{ . }}</h4>{{ end }} - {{ with .Site.Data.team.title }} - <h2>{{ . }}</h2> - <span class="border"></span> - {{ end }} - {{ with .Site.Data.team.subtitle }}<p>{{ . }}</p>{{ end }} +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.team }} + {{ if .enable }} + {{ "<!-- Team Section Start -->" | safeHTML }} + <section class="team section bg-gray" id="team"> + <div class="container"> + <div class="row"> + <div class="col"> + <div class="title text-center"> + {{ with .topTitle }}<h4>{{ . }}</h4>{{ end }} + {{ with .title }} + <h2>{{ . }}</h2> + <span class="border"></span> + {{ end }} + {{ with .subtitle }}<p>{{ . }}</p>{{ end }} + </div> </div> </div> - </div> - <div class="row justify-content-center"> - {{ range .Site.Data.team.member }} - {{ "<!-- team member -->" | safeHTML }} - <div class="col-12 col-md-3 col-sm-6"> - <div class="team-member text-center"> - <div class="member-photo"> - <img class="img-fluid" src="{{.image | absURL }}" alt="team people"> - </div> - {{ "<!-- member name & designation -->" | safeHTML }} - <div class="member-content"> - <h3>{{ .name }}</h3> - <span>{{ .designation }}</span> - <p>{{ .description }}</p> - <ul class="list-inline"> - {{ with .facebookURL }} - <li class="list-inline-item"> - <a href="{{.}}"> - <i class="tf-ion-social-facebook"></i> - </a> - </li> - {{ end }} - {{ with .twitterURL }} - <li class="list-inline-item"> - <a href="{{.}}"> - <i class="tf-ion-social-twitter"></i> - </a> - </li> - {{ end }} - {{ with .gplusURL }} - <li class="list-inline-item"> - <a href="{{.}}"> - <i class="tf-ion-social-google-outline"></i> - </a> - </li> - {{ end }} - {{ with .dribbbleURL }} - <li class="list-inline-item"> - <a href="{{.}}"> - <i class="tf-ion-social-dribbble"></i> - </a> - </li> - {{ end }} - </ul> + <div class="row justify-content-center"> + {{ range .member }} + {{ "<!-- team member -->" | safeHTML }} + <div class="col-12 col-md-3 col-sm-6"> + <div class="team-member text-center"> + <div class="member-photo"> + <img class="img-fluid" src="{{.image | absURL }}" alt="team people"> + </div> + {{ "<!-- member name & designation -->" | safeHTML }} + <div class="member-content"> + <h3>{{ .name }}</h3> + <span>{{ .designation }}</span> + <p>{{ .description }}</p> + <ul class="list-inline"> + {{ with .facebookURL }} + <li class="list-inline-item"> + <a href="{{.}}"> + <i class="tf-ion-social-facebook"></i> + </a> + </li> + {{ end }} + {{ with .twitterURL }} + <li class="list-inline-item"> + <a href="{{.}}"> + <i class="tf-ion-social-twitter"></i> + </a> + </li> + {{ end }} + {{ with .gplusURL }} + <li class="list-inline-item"> + <a href="{{.}}"> + <i class="tf-ion-social-google-outline"></i> + </a> + </li> + {{ end }} + {{ with .dribbbleURL }} + <li class="list-inline-item"> + <a href="{{.}}"> + <i class="tf-ion-social-dribbble"></i> + </a> + </li> + {{ end }} + </ul> + </div> </div> </div> - </div> - {{ "<!-- end team member -->" | safeHTML }} - {{ end }} + {{ "<!-- end team member -->" | safeHTML }} + {{ end }} + </div> </div> - </div> -</section> -{{ "<!-- End section -->" | safeHTML }} -{{ end }}
\ No newline at end of file + </section> + {{ "<!-- End section -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/testimonial.html b/layouts/partials/testimonial.html index 33411cc..9f4775c 100644 --- a/layouts/partials/testimonial.html +++ b/layouts/partials/testimonial.html @@ -1,32 +1,35 @@ -{{ if .Site.Data.testimonial.enable }} -<section class="testimonial section" id="testimonial"> - <div class="container"> - <div class="row"> - <div class="col-lg-12"> - {{ "<!-- testimonial wrapper -->" | safeHTML }} - <div class="testimonial-slider"> - {{ range .Site.Data.testimonial.item }} - {{ "<!-- testimonial single -->" | safeHTML }} - <div class="item text-center"> - <i class="tf-ion-quote"></i> - {{ "<!-- client quote -->" | safeHTML }} - <div class="client-details"> - <p>{{ .quote }}</p> - </div> - {{ "<!-- client photo -->" | safeHTML }} - <div class="client-thumb"> - <img src="{{ .clientThumb | absURL }}" class="img-fluid" alt="client-image"> - </div> - <div class="client-meta"> - <h4>{{ .clientName }}</h4> - <span>{{ .clientDesignation }}</span> +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.testimonial }} + {{ if .enable }} + <section class="testimonial section" id="testimonial"> + <div class="container"> + <div class="row"> + <div class="col-lg-12"> + {{ "<!-- testimonial wrapper -->" | safeHTML }} + <div class="testimonial-slider"> + {{ range .item }} + {{ "<!-- testimonial single -->" | safeHTML }} + <div class="item text-center"> + <i class="tf-ion-quote"></i> + {{ "<!-- client quote -->" | safeHTML }} + <div class="client-details"> + <p>{{ .quote }}</p> + </div> + {{ "<!-- client photo -->" | safeHTML }} + <div class="client-thumb"> + <img src="{{ .clientThumb | absURL }}" class="img-fluid" alt="client-image"> + </div> + <div class="client-meta"> + <h4>{{ .clientName }}</h4> + <span>{{ .clientDesignation }}</span> + </div> </div> + {{ end }} </div> - {{ end }} </div> </div> </div> - </div> -</section> -{{ "<!-- End Section -->" | safeHTML }} -{{ end }}
\ No newline at end of file + </section> + {{ "<!-- End Section -->" | safeHTML }} + {{ end }} +{{ end }} diff --git a/layouts/partials/workingprocess.html b/layouts/partials/workingprocess.html index 0f4ca53..599d13d 100644 --- a/layouts/partials/workingprocess.html +++ b/layouts/partials/workingprocess.html @@ -1,47 +1,50 @@ -{{ if .Site.Data.workingprocess.enable }} -{{ "<!-- Work Process Section Start -->" | safeHTML }} -<section class="service-2 section bg-gray"> - <div class="container"> - <div class="row"> - <div class="col"> - <div class="title text-center"> - {{ with .Site.Data.workingprocess.topTitle }} - <h4>{{ . }}</h4> - {{ end }} - {{ with .Site.Data.workingprocess.title }} - <h2>{{ . }}</h2> - <span class="border"></span> - {{ end }} - {{ with .Site.Data.workingprocess.subtitle }} - <p>{{ . }}</p> - {{ end }} - </div> - </div> - </div> - <div class="row justify-content-center"> - {{ range $index, $element:= .Site.Data.workingprocess.item }} - <div class="col-md-4 col-sm-6 p-0"> - <div class="service-item text-center"> - {{ with .number }} - <span class="count">{{ . }}.</span> - {{ end }} - {{ with .icon }} - <i class="{{ . }}"></i> +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.workingprocess }} + {{ if .enable }} + {{ "<!-- Work Process Section Start -->" | safeHTML }} + <section class="service-2 section bg-gray"> + <div class="container"> + <div class="row"> + <div class="col"> + <div class="title text-center"> + {{ with .topTitle }} + <h4>{{ . }}</h4> {{ end }} {{ with .title }} - <h4>{{ . }}</h4> + <h2>{{ . }}</h2> + <span class="border"></span> {{ end }} - {{ with .description }} + {{ with .subtitle }} <p>{{ . }}</p> {{ end }} </div> </div> - {{ if eq (mod $index 2) 1 }} - <div class="w-100"></div> + </div> + <div class="row justify-content-center"> + {{ range $index, $element:= .item }} + <div class="col-md-4 col-sm-6 p-0"> + <div class="service-item text-center"> + {{ with .number }} + <span class="count">{{ . }}.</span> + {{ end }} + {{ with .icon }} + <i class="{{ . }}"></i> + {{ end }} + {{ with .title }} + <h4>{{ . }}</h4> + {{ end }} + {{ with .description }} + <p>{{ . }}</p> + {{ end }} + </div> + </div> + {{ if eq (mod $index 2) 1 }} + <div class="w-100"></div> + {{ end }} {{ end }} - {{ end }} + </div> </div> - </div> -</section> -{{ "<!-- Work Process section end -->" | safeHTML }} -{{ end }}
\ No newline at end of file + </section> + {{ "<!-- Work Process section end -->" | safeHTML }} + {{ end }} +{{ end }} |