En cours...
This commit is contained in:
0
themes/hargo-hugo/layouts/404.html
Normal file
0
themes/hargo-hugo/layouts/404.html
Normal file
10
themes/hargo-hugo/layouts/_default/baseof.html
Normal file
10
themes/hargo-hugo/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ with site.Params.LanguageCode }}{{ . }}{{ else }}fr{{ end }}">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "preloader.html" . -}}
|
||||
{{- partial "header.html" . -}}
|
||||
{{- block "main" . }}{{- end }}
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
33
themes/hargo-hugo/layouts/_default/list.html
Normal file
33
themes/hargo-hugo/layouts/_default/list.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="col-lg-8 mx-auto mb-5">
|
||||
<article class="card rounded-0 border-0">
|
||||
{{ partial "image.html" (dict "Src" .Params.Image "Alt" .Title "Class" "card-img-top rounded-top-0") }}
|
||||
<div class="card-body px-0">
|
||||
<a href="{{ .Permalink }}" class="h4 d-block">{{ .Title | markdownify }}</a>
|
||||
<ul class="list-inline">
|
||||
<li class="list-inline-item"><i class="ti-pencil-alt text-primary mr-2"></i> By {{ .Params.Author }}</li>
|
||||
<li class="list-inline-item"><i class="ti-calendar text-primary mr-2"></i>
|
||||
{{ .PublishDate.Format "02 Jan, 2006" }}</li>
|
||||
</ul>
|
||||
<p>{{ .Summary }}</p>
|
||||
<a href="{{ .Permalink }}" class="btn btn-sm btn-outline-primary">Read More</a>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "cta.html" . }}
|
||||
|
||||
{{ end }}
|
||||
26
themes/hargo-hugo/layouts/_default/single.html
Normal file
26
themes/hargo-hugo/layouts/_default/single.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<article>
|
||||
<h2>{{ .Title }}</h2>
|
||||
<ul class="list-inline mb-4">
|
||||
<li class="list-inline-item"><i class="ti-pencil-alt text-primary mr-2"></i> By {{ .Params.Author }}</li>
|
||||
<li class="list-inline-item"><i class="ti-calendar text-primary mr-2"></i>
|
||||
{{ .PublishDate.Format "02 Jan, 2006" }}</li>
|
||||
</ul>
|
||||
{{ partial "image.html" (dict "Src" .Params.Image "Alt" .Title "Class" "img-fluid w-100 mb-4") }}
|
||||
<div class="content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "cta.html" . }}
|
||||
|
||||
{{ end }}
|
||||
19
themes/hargo-hugo/layouts/cgv/list.html
Normal file
19
themes/hargo-hugo/layouts/cgv/list.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 mb-5">
|
||||
<div class="content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "cta.html" . }}
|
||||
|
||||
{{ end }}
|
||||
52
themes/hargo-hugo/layouts/contact/list.html
Normal file
52
themes/hargo-hugo/layouts/contact/list.html
Normal file
@@ -0,0 +1,52 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
{{ if site.Data.contact.contact.enable }}
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-sm-6">
|
||||
{{ with site.Data.contact.contact.office }}
|
||||
<h3 class="mb-4">{{ .title | markdownify }}</h3>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
{{ end }}
|
||||
|
||||
<ul class="list-unstyled">
|
||||
<li class="mb-3"><a class="text-color" href="tel:{{ site.Params.mobile }}"><i
|
||||
class="ti-mobile text-primary mr-2"></i>
|
||||
{{ site.Params.mobile }}</a></li>
|
||||
<li class="mb-3"><a class="text-color" href="mailto:{{ site.Params.email }}"><i
|
||||
class="ti-email text-primary mr-2"></i>{{ site.Params.email }}</a></li>
|
||||
<li class="mb-3"><i class="ti-location-pin text-primary mr-2"></i>{{ site.Params.location }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-3 offset-lg-1 col-sm-6">
|
||||
{{ with site.Data.contact.contact.opennigHour }}
|
||||
<h3 class="mb-4">{{ .title | markdownify }}</h3>
|
||||
<ul class="list-unstyled">
|
||||
{{ range .dayTimeList }}
|
||||
<li class="mb-3">{{ .dayTime | markdownify }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if site.Data.contact.map.enable }}
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div id="map_canvas">
|
||||
<iframe width="100%" height="100%" frameborder="0" allowfullscreen allow="geolocation" src="//umap.openstreetmap.fr/fr/map/rennes_1281988?scaleControl=false&miniMap=false&scrollWheelZoom=false&zoomControl=true&editMode=disabled&moreControl=true&searchControl=null&tilelayersControl=null&embedControl=null&datalayersControl=true&onLoadPanel=none&captionBar=false&captionMenus=true"></iframe><p><a href="//umap.openstreetmap.fr/fr/map/rennes_1281988?scaleControl=false&miniMap=false&scrollWheelZoom=true&zoomControl=true&editMode=disabled&moreControl=true&searchControl=null&tilelayersControl=null&embedControl=null&datalayersControl=true&onLoadPanel=none&captionBar=false&captionMenus=true">Voir en plein écran</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "cta.html" . }}
|
||||
|
||||
{{ end }}
|
||||
245
themes/hargo-hugo/layouts/index.html
Normal file
245
themes/hargo-hugo/layouts/index.html
Normal file
@@ -0,0 +1,245 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<!-- banner -->
|
||||
{{ if site.Data.homepage.banner.enable }}
|
||||
{{ with site.Data.homepage.banner }}
|
||||
<section class="section-sm">
|
||||
<div class="container">
|
||||
<div class="row justify-content-between align-items-center">
|
||||
<div class="col-lg-5 col-md-6 order-2 order-md-1">
|
||||
<h1>{{ .title | markdownify }}</h1>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
{{ if .button.enable }}
|
||||
{{ with .button }}
|
||||
<a href="{{ .link }}" class="btn btn-primary mr-3">{{ .label }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .video.enable }}
|
||||
{{ with .video }}
|
||||
<a data-toggle="modal" data-src="{{ .videoURL | safeURL }}" data-target="#videoModal"
|
||||
class="text-color video-modal"><i
|
||||
class="ti-control-play bg-gradient hover-shadow btn-play mr-2"></i><span>Watch Video</span></a>
|
||||
{{ end }}
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="videoModal" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content border-0 rounded-0">
|
||||
<iframe width="560" height="315" src="" id="video" frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-lg-7 col-md-6 order-1 order-lg-2">
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" "image" "Class" "img-fluid") }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /banner -->
|
||||
|
||||
<!-- about -->
|
||||
{{ if site.Data.homepage.about.enable }}
|
||||
{{ with site.Data.homepage.about }}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-around align-items-center">
|
||||
<div class="col-lg-5 col-md-6">
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" "image" "Class" "img-fluid") }}
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-5">
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /about -->
|
||||
|
||||
{{ if site.Data.homepage.cta.enable }}
|
||||
{{ partial "cta.html" . }}
|
||||
{{ end }}
|
||||
|
||||
<!-- material -->
|
||||
{{ if site.Data.homepage.material.enable }}
|
||||
{{ with site.Data.homepage.material }}
|
||||
<section class="section pb-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 mx-auto text-center">
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
<p>{{ .subtitle | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ range .materialItem }}
|
||||
<div class="col-lg-3 col-md-4 col-sm-6">
|
||||
<div class="card border-0 text-center">
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" "material" "Class" "card-img-top border-0") }}
|
||||
<div class="card-body">
|
||||
<h4>{{ .title | markdownify }}</h4>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /material -->
|
||||
|
||||
<!-- advantage -->
|
||||
{{ if site.Data.homepage.advantage.enable }}
|
||||
{{ with site.Data.homepage.advantage }}
|
||||
<section class="section pb-0">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-6">
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
<p class="mb-4">{{ .subtitle | markdownify }}</p>
|
||||
<ul class="list-unstyled" style="columns: 2;">
|
||||
{{ range .advantageList }}
|
||||
<li class="mb-3"><i class="ti-arrow-circle-right text-primary mr-2"></i>{{ .listItem }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" "image" "Class" "img-fluid") }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /advantage -->
|
||||
|
||||
<!-- promo video -->
|
||||
{{ if site.Data.homepage.video.enable }}
|
||||
{{ with site.Data.homepage.video }}
|
||||
<section class="section pb-0">
|
||||
<div class="container">
|
||||
<div class="row align-items-center justify-content-between">
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="img-border rounded mb-5 mb-md-0">
|
||||
{{ partial "image.html" (dict "Src" .videoThumb "Alt" "video thumb" "Class" "img-fluid rounded") }}
|
||||
<a data-toggle="modal" data-src="{{ .videoURL | safeURL }}" data-target="#videoModal2"
|
||||
class="text-color video-modal content-center"><i class="ti-control-play bg-gradient btn-play-lg"></i></a>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="videoModal2" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content border-0 rounded-0">
|
||||
<iframe width="560" height="315" src="" id="video2" frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /promo video -->
|
||||
|
||||
<!-- products -->
|
||||
{{ if site.Data.homepage.products.enable }}
|
||||
<section class="section pb-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 text-center mb-4">
|
||||
{{ with site.Data.homepage.products }}
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ range first 6 (where site.RegularPages "Type" "products") }}
|
||||
<div class="col-lg-4 col-sm-6 mb-4">
|
||||
<div class="card border-0 text-center">
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ range first 1 .Params.Images }}
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" .Title "Class" "card-img-top") }}
|
||||
{{ end }}
|
||||
</a>
|
||||
<div class="card-body">
|
||||
<a href="{{ .Permalink }}" class="h4">{{ .Title }}</a>
|
||||
<p>{{ .Params.Description }}</p>
|
||||
<div class="mb-4">
|
||||
{{ if .Params.PriceBefore }}
|
||||
<s>{{ site.Params.currencySymbol }}{{ .Params.PriceBefore }}</s>
|
||||
{{ end }}
|
||||
<span class="lead text-primary">{{ site.Params.currencySymbol }}{{ .Params.Price }}</span>
|
||||
</div>
|
||||
<!-- <button class="snipcart-add-item btn btn-sm btn-outline-primary" data-item-id="{{ .Params.ProductID }}"
|
||||
data-item-name="{{ .Title }}" {{ range first 1 .Params.Images }} data-item-image="{{ .image | absURL }}"
|
||||
{{ end }} data-item-price="{{ .Params.Price }}" data-item-url="{{ .Permalink }}" data-item-description="{{ .Description }}"> -->
|
||||
<button class="snipcart-add-item btn btn-primary" data-item-id="{{ .Params.ProductID }}"
|
||||
data-item-name="{{ .Title }}" {{ range first 1 .Params.Images }} data-item-image="{{ .image | absURL }}"
|
||||
{{ end }} data-item-price="{{ .Params.Price }}" data-item-url="{{ .Permalink }}" data-item-description="{{ .Description }}">
|
||||
Ajouter au Panier
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
<!-- /products -->
|
||||
|
||||
<!-- testimonial -->
|
||||
{{ if site.Data.homepage.testimonial.enable }}
|
||||
{{ with site.Data.homepage.testimonial }}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 text-center">
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row testimonial-slider">
|
||||
{{ range .testimonialItem }}
|
||||
<div class="col-4">
|
||||
<div class="card border-primary text-center">
|
||||
<div class="card-body">
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" .name "Class" "client-img") }}
|
||||
<p class="quoted">{{ .content | markdownify }}</p>
|
||||
<h6 class="font-weight-medium">{{ .name | markdownify }}</h6>
|
||||
<small>{{ .designation | markdownify }}</small>
|
||||
<ul class="list-inline rating {{ .rating | lower }} mt-3">
|
||||
<li class="list-inline-item mx-0"><i class="ti-star"></i></li>
|
||||
<li class="list-inline-item mx-0"><i class="ti-star"></i></li>
|
||||
<li class="list-inline-item mx-0"><i class="ti-star"></i></li>
|
||||
<li class="list-inline-item mx-0"><i class="ti-star"></i></li>
|
||||
<li class="list-inline-item mx-0"><i class="ti-star"></i></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /testimonial -->
|
||||
|
||||
{{ if site.Data.homepage.cta.enable }}
|
||||
{{ partial "cta.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
11
themes/hargo-hugo/layouts/partials/contact-form.html
Normal file
11
themes/hargo-hugo/layouts/partials/contact-form.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<form id="contact-form">
|
||||
<input type="text" required class="form-control mb-2" id="name" name="name" placeholder="Nom" />
|
||||
<input type="email" required class="form-control mb-2" id="email" name="email" placeholder="Email" />
|
||||
<textarea name="message" required class="form-control mb-2" id="message" placeholder="Sujet" rows="7"></textarea>
|
||||
<input type="hidden" class="form-control mb-2" id="Origin" name="Origin" value="https://shop.delmar.bzh" />
|
||||
<button type="submit" value="send" class="btn btn-block btn-outline-primary rounded">Envoyer</button>
|
||||
<div class="overlay">
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
23
themes/hargo-hugo/layouts/partials/cta.html
Normal file
23
themes/hargo-hugo/layouts/partials/cta.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!-- call to action -->
|
||||
{{ if site.Data.homepage.cta.enable }}
|
||||
{{ with site.Data.homepage.cta }}
|
||||
<section class="py-4 bg-gradient position-relative">
|
||||
{{ partial "image.html" (dict "Src" .overlayImage "Alt" "image" "Class" "img-fluid overlay-image") }}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-md-7">
|
||||
<h2 class="text-white">{{ .title | markdownify }}</h2>
|
||||
<p class="text-white">{{ .content | markdownify }}</p>
|
||||
{{ with .button }}
|
||||
<a href="{{ .link | absURL }}" class="btn btn-light">{{ .label }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-5 position-relative">
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" "image" "Class" "cta-image") }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /call to action -->
|
||||
119
themes/hargo-hugo/layouts/partials/footer.html
Normal file
119
themes/hargo-hugo/layouts/partials/footer.html
Normal file
@@ -0,0 +1,119 @@
|
||||
<footer class="section pb-0">
|
||||
<div class="container">
|
||||
<div class="row border-bottom pb-5 justify-content-between">
|
||||
<div class="col-12 text-center section-sm">
|
||||
<a href="{{ site.BaseURL }}">
|
||||
{{ partial "image.html" (dict "Src" site.Params.logo_footer "Alt" site.Title "Class" "img-fluid") }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<h5 class="font-weight-medium mb-4">{{i18n `important_link`}}</h5>
|
||||
<ul class="list-unstyled">
|
||||
{{ range site.Menus.footer }}
|
||||
<li class="mb-3"><a class="text-color" href="{{ .URL | absURL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<h5 class="font-weight-medium mb-4">{{i18n `connect_us`}}</h5>
|
||||
<ul class="list-unstyled mb-5">
|
||||
<li class="mb-3"><a class="text-color" href="tel:{{ site.Params.mobile }}"><i
|
||||
class="ti-mobile text-primary mr-2"></i>
|
||||
{{ site.Params.mobile }}</a></li>
|
||||
<li class="mb-3"><a class="text-color" href="mailto:{{ site.Params.email }}"><i
|
||||
class="ti-email text-primary mr-2"></i> {{ site.Params.email }}</a></li>
|
||||
<li class="mb-3"><i class="ti-location-pin text-primary mr-2"></i> {{ site.Params.location }}
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Social Icons -->
|
||||
<ul class="list-inline">
|
||||
{{ range site.Params.social }}
|
||||
<li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }} text-primary"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-5">
|
||||
<h5 class="font-weight-medium mb-4">Contact us</h5>
|
||||
{{- partial "contact-form.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 text-center py-4">
|
||||
{{ site.Params.copyright | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{ with site.Params.snipcartApiKey }}
|
||||
{{ "<!-- Snipcart -->" | safeHTML }}
|
||||
<div id="snipcart" data-api-key="{{ . }}" hidden></div>
|
||||
{{ end }}
|
||||
|
||||
{{ "<!-- Google Maps API -->" | safeHTML }}
|
||||
<script src="{{ site.Params.gmapAPI | absURL }}"></script>
|
||||
{{ "<!-- JS Plugins -->" | safeHTML }}
|
||||
{{ range site.Params.plugins.js}}
|
||||
<script src="{{ .link | absURL }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ "<!-- Main Script -->" | safeHTML }}
|
||||
{{ $script := resources.Get "js/script.js" | minify}}
|
||||
<script src="{{ $script.Permalink }}"></script>
|
||||
|
||||
{{ with site.Params.googleAnalyticsID }}
|
||||
{{ "<!-- Google Analytics -->" | safeHTML }}
|
||||
<script>
|
||||
(function (i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function () {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date();
|
||||
a = s.createElement(o),
|
||||
m = s.getElementsByTagName(o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', '{{ . }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if site.Params.rating.enable }}
|
||||
{{ "<!-- Product Ratings -->" | safeHTML }}
|
||||
<script>
|
||||
(function (d, t, e, m) {
|
||||
// Async Rating-Widget initialization
|
||||
window.RW_Async_Init = function () {
|
||||
RW.init({
|
||||
huid: "{{ site.Params.rating.websiteID }}",
|
||||
uid: "{{ site.Params.rating.publicKey }}",
|
||||
source: "website",
|
||||
options: {
|
||||
"size": "medium",
|
||||
"style": "oxygen",
|
||||
"isDummy": false
|
||||
}
|
||||
});
|
||||
RW.render();
|
||||
};
|
||||
// Append Rating-Widget JavaScript library
|
||||
var rw, s = d.getElementsByTagName(e)[0],
|
||||
id = "rw-js",
|
||||
l = d.location,
|
||||
ck = "Y" + t.getFullYear() +
|
||||
"M" + t.getMonth() + "D" + t.getDate(),
|
||||
p = l.protocol,
|
||||
f = ((l.search.indexOf("DBG=") > -1) ? "" : ".min"),
|
||||
a = ("https:" == p ? "secure." + m + "js/" : "js." + m);
|
||||
if (d.getElementById(id)) return;
|
||||
rw = d.createElement(e);
|
||||
rw.id = id;
|
||||
rw.async = true;
|
||||
rw.type = "text/javascript";
|
||||
rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck;
|
||||
s.parentNode.insertBefore(rw, s);
|
||||
}(document, new Date(), "script", "rating-widget.com/"));
|
||||
</script>
|
||||
{{ end }}
|
||||
34
themes/hargo-hugo/layouts/partials/head.html
Normal file
34
themes/hargo-hugo/layouts/partials/head.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
{{ "<!-- Mobile Responsive Meta -->" | safeHTML }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
|
||||
{{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<!-- theme meta -->
|
||||
<meta name="theme-name" content="hargo-hugo" />
|
||||
|
||||
{{ "<!-- Plugins -->" | safeHTML }}
|
||||
{{ range site.Params.plugins.css }}
|
||||
<link rel="stylesheet" href="{{ .link | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{ with site.Params.snipcartApiKey }}
|
||||
{{ "<!-- Snipcart -->" | safeHTML }}
|
||||
<link rel="preconnect" href="https://app.snipcart.com/">
|
||||
<link rel="preconnect" href="https://cdn.snipcart.com/">
|
||||
<link rel="stylesheet" href="https://cdn.snipcart.com/themes/v3.0.28/default/snipcart.css">
|
||||
<script async src="https://cdn.snipcart.com/themes/v3.0.28/default/snipcart.js"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ "<!-- Main Stylesheet -->" | safeHTML }}
|
||||
{{ $styles := resources.Get "scss/style.scss" | toCSS | minify }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
|
||||
|
||||
{{ "<!-- Favicon -->" | safeHTML }}
|
||||
<link rel="shortcut icon" href="{{ `favicon.png` | absURL }} " type="image/x-icon">
|
||||
<link rel="icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon">
|
||||
</head>
|
||||
42
themes/hargo-hugo/layouts/partials/header.html
Normal file
42
themes/hargo-hugo/layouts/partials/header.html
Normal file
@@ -0,0 +1,42 @@
|
||||
{{ "<!-- navigation -->" | safeHTML }}
|
||||
<header class="sticky-top navigation">
|
||||
<div class="container">
|
||||
<!-- navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-light">
|
||||
<a class="navbar-brand" href="{{ site.BaseURL }}">
|
||||
{{ partial "image.html" (dict "Src" site.Params.logo "Alt" site.Title "Class" "img-fluid") }}
|
||||
</a>
|
||||
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navigation">
|
||||
<i class="ti-menu"></i>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse text-center" id="navigation">
|
||||
<ul class="navbar-nav mx-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ site.BaseURL }}">{{ with site.Params.Home }} {{ . }} {{ end }}</a>
|
||||
</li>
|
||||
{{ range site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
<a class="dropdown-item" href="{{ .URL | absURL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ .URL | absURL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<button class="cart snipcart-summary"><a href="" class="snipcart-checkout text-dark"><i class="ti-shopping-cart"></i><span class="badge badge-primary snipcart-items-count"></span></a></button>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
{{ "<!-- /navigation -->" | safeHTML }}
|
||||
15
themes/hargo-hugo/layouts/partials/page-title.html
Normal file
15
themes/hargo-hugo/layouts/partials/page-title.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<section class="section-sm">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>{{ .Title }}</h2>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb bg-transparent p-0">
|
||||
<li class="breadcrumb-item"><a class="text-dark" href="{{ site.BaseURL }}">{{ site.Params.home }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
9
themes/hargo-hugo/layouts/partials/preloader.html
Normal file
9
themes/hargo-hugo/layouts/partials/preloader.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ if site.Params.preloader.enable }}
|
||||
{{ "<!-- preloader start -->" | safeHTML }}
|
||||
<div class="preloader">
|
||||
{{ with site.Params.preloader.preloader }}
|
||||
{{ partial "image.html" (dict "Src" . "Alt" "preloader") }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ "<!-- preloader end -->" | safeHTML }}
|
||||
{{ end }}
|
||||
48
themes/hargo-hugo/layouts/partials/script.html
Normal file
48
themes/hargo-hugo/layouts/partials/script.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<!-- Bootstrap scripts -->
|
||||
{{ $bootstrap := resources.Get "js/bootstrap.js" }}
|
||||
{{ $params := dict }}
|
||||
{{ $sourceMap := cond hugo.IsProduction "" "inline" }}
|
||||
{{ $opts := dict "sourceMap" $sourceMap "target" "es2018" "params" $params }}
|
||||
{{ $bootstrap = $bootstrap | js.Build $opts }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $bootstrap = $bootstrap | fingerprint "sha512" }}
|
||||
{{ end }}
|
||||
<script crossorigin="anonymous" defer {{ if hugo.IsProduction }}integrity="{{ $bootstrap.Data.Integrity }}"{{end}} type="application/javascript">{{$bootstrap.Content | safeJS}}</script>
|
||||
|
||||
<!-- JS Plugins + Main script -->
|
||||
{{ $scripts := slice }}
|
||||
{{ range site.Params.plugins.js }}
|
||||
{{ if findRE "^http" .link }}
|
||||
<script
|
||||
src="{{ .link | relURL }}"
|
||||
type="application/javascript"
|
||||
{{ .attributes | safeHTMLAttr }}></script>
|
||||
{{ else }}
|
||||
{{ $scripts = $scripts | append (resources.Get .link) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- main script -->
|
||||
{{ $scripts = $scripts | append (resources.Get "js/script.js") }}
|
||||
{{ $scripts = $scripts | resources.Concat "js/scripts.js" }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $scripts = $scripts | fingerprint "sha512" }}
|
||||
{{ end }}
|
||||
<script crossorigin="anonymous" defer {{ if hugo.IsProduction }}integrity="{{ $scripts.Data.Integrity }}"{{end}} type="application/javascript">{{$scripts.Content | safeJS}}</script>
|
||||
|
||||
<!-- font family -->
|
||||
{{ $pf:= site.Params.variables.font_primary }}
|
||||
{{ $sf:= site.Params.variables.font_secondary }}
|
||||
<script type="application/javascript">
|
||||
WebFont.load({
|
||||
google: {
|
||||
api: 'https://fonts.googleapis.com/css2',
|
||||
families: ['{{$pf | default `Lato:wght@400`}}{{if not $sf}}&display=swap{{end}}'{{with $sf}},'{{. | default `Lato:wght@400`}}&display=swap'{{end}}],
|
||||
version: 2
|
||||
},
|
||||
active: () => {sessionStorage.fontsLoaded = true}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
39
themes/hargo-hugo/layouts/partials/style.html
Normal file
39
themes/hargo-hugo/layouts/partials/style.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!-- DNS preconnect -->
|
||||
<meta http-equiv="x-dns-prefetch-control" content="on" />
|
||||
<link rel="preconnect" href="//ajax.googleapis.com" />
|
||||
<link
|
||||
rel="preconnect"
|
||||
href="https://fonts.gstatic.com"
|
||||
crossorigin="anonymous" />
|
||||
<link rel="preconnect" href="https://use.fontawesome.com" crossorigin />
|
||||
<link rel="preconnect" href="//cdnjs.cloudflare.com" />
|
||||
<link rel="preconnect" href="//www.googletagmanager.com" />
|
||||
<link rel="preconnect" href="//www.google-analytics.com" />
|
||||
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
|
||||
<link rel="dns-prefetch" href="https://use.fontawesome.com" />
|
||||
<link rel="dns-prefetch" href="//ajax.googleapis.com" />
|
||||
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com" />
|
||||
<link rel="dns-prefetch" href="//www.googletagmanager.com" />
|
||||
<link rel="dns-prefetch" href="//www.google-analytics.com" />
|
||||
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
|
||||
<link rel="dns-prefetch" href="//connect.facebook.net" />
|
||||
<link rel="dns-prefetch" href="//platform.linkedin.com" />
|
||||
<link rel="dns-prefetch" href="//platform.twitter.com" />
|
||||
|
||||
<!-- plugins + stylesheet -->
|
||||
{{ $styles := slice }}
|
||||
{{ range site.Params.plugins.css }}
|
||||
{{ if findRE "^http" .link }}
|
||||
<link
|
||||
crossorigin="anonymous"
|
||||
media="all"
|
||||
rel="stylesheet"
|
||||
href="{{ .link | relURL }}"
|
||||
{{ .attributes | safeHTMLAttr }} />
|
||||
{{ else }}
|
||||
{{ $styles = $styles | append (resources.Get .link) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $styles := $styles | append (resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS) }}
|
||||
{{ $styles := $styles | resources.Concat "/css/style.css" | fingerprint "sha512" }}
|
||||
<style type="text/css">{{$styles.Content | safeCSS}}</style>
|
||||
53
themes/hargo-hugo/layouts/pdc/list.html
Normal file
53
themes/hargo-hugo/layouts/pdc/list.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
{{ if site.Data.contact.contact.enable }}
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 mb-5">
|
||||
<div class="content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="sticky-top top-100">
|
||||
<h3 class="mb-4">Ask Your Question</h3>
|
||||
<form action="{{ site.Params.contact.formAction }}" method="POST">
|
||||
<input type="text" class="form-control mb-2" id="name" name="name" placeholder="Your Name">
|
||||
<input type="email" class="form-control mb-2" id="email" name="email" placeholder="Your Email">
|
||||
<textarea name="message" id="message" class="form-control mb-2" placeholder="Your Message"></textarea>
|
||||
<button type="submit" value="send" class="btn btn-block btn-outline-primary rounded">Send Now</button>
|
||||
</form>
|
||||
</div></div>
|
||||
{{ with site.Data.faq}}
|
||||
<div class="col-lg-7 offset-lg-1">
|
||||
<div id="accordion" class="mt-5">
|
||||
{{ $.Scratch.Set "counter" 0 }}
|
||||
{{ range .faqItem }}
|
||||
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
|
||||
{{ "<!-- accordion item -->" | safeHTML }}
|
||||
<div class="card mb-1 rounded-0 border-0">
|
||||
<div class="card-header rounded-0 bg-white border p-0 border-0">
|
||||
<a class="card-link h4 d-flex tex-dark mb-0 p-2 justify-content-between" data-toggle="collapse"
|
||||
href="#collapse{{$.Scratch.Get `counter`}}">
|
||||
<span>{{ .title | markdownify }}</span> <div class="ml-3"><i class="ti-plus h6 text-primary text-right border p-2 d-inline-block border-primary"></i></div>
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse{{$.Scratch.Get `counter`}}" class="collapse" data-parent="#accordion">
|
||||
<div class="card-body p-2 font-secondary text-color">{{ .content | markdownify }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "cta.html" . }}
|
||||
|
||||
{{ end }}
|
||||
40
themes/hargo-hugo/layouts/products/list.html
Normal file
40
themes/hargo-hugo/layouts/products/list.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{ range .Data.Pages }}
|
||||
<div class="col-lg-4 col-sm-6 mb-4">
|
||||
<div class="card border-0 text-center">
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ range first 1 .Params.Images }}
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" .Title "Class" "card-img-top") }}
|
||||
{{ end }}
|
||||
</a>
|
||||
<div class="card-body">
|
||||
<a href="{{ .Permalink }}" class="h4">{{ .Title }}</a>
|
||||
<p>{{ .Params.Description }}</p>
|
||||
<div class="mb-4">
|
||||
{{ if .Params.PriceBefore }}
|
||||
<s>{{ site.Params.currencySymbol }}{{ .Params.PriceBefore }}</s>
|
||||
{{ end }}
|
||||
<span class="lead text-primary">{{ site.Params.currencySymbol }}{{ .Params.Price }}</span>
|
||||
</div>
|
||||
<button class="snipcart-add-item btn btn-sm btn-outline-primary" data-item-id="{{ .Params.ProductID }}"
|
||||
data-item-name="{{ .Title }}" {{ range first 1 .Params.Images }} data-item-image="{{ .image | absURL }}"
|
||||
{{ end }} data-item-price="{{ .Params.Price }}" data-item-url="{{ .Permalink }}" data-item-description="{{ .Description }}">
|
||||
Ajouter au Panier
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "cta.html" . }}
|
||||
|
||||
{{ end }}
|
||||
64
themes/hargo-hugo/layouts/products/single.html
Normal file
64
themes/hargo-hugo/layouts/products/single.html
Normal file
@@ -0,0 +1,64 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-5 mb-4 mb-lg-0">
|
||||
<!-- product image slider -->
|
||||
<div class="product-slider">
|
||||
{{ range .Params.Images }}
|
||||
<div data-image="{{ .image | absURL }}">
|
||||
{{ partial "image.html" (dict "Src" .image "Alt" "product-img" "Class" "img-fluid w-100") }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5 offset-lg-1">
|
||||
<h4 class="font-weight-medium">{{ .Title }}</h4>
|
||||
<!-- rating star -->
|
||||
{{ if site.Params.rating.enable }}
|
||||
<div class="rw-ui-container"></div>
|
||||
{{ end }}
|
||||
<div class="my-4">
|
||||
{{ if .Params.PriceBefore }}
|
||||
<s>{{ site.Params.currencySymbol }}{{ .Params.PriceBefore }}</s>
|
||||
{{ end }}
|
||||
<span class="lead text-primary font-weight-medium">{{ site.Params.currencySymbol }}{{ .Params.Price }}</span>
|
||||
</div>
|
||||
<h5>{{i18n `shortDescriptionTitle`}}</h5>
|
||||
<p>{{ .Params.ShortDescription | markdownify }}</p>
|
||||
<button class="snipcart-add-item btn btn-primary" data-item-id="{{ .Params.ProductID }}"
|
||||
data-item-name="{{ .Title }}" {{ range first 1 .Params.Images }} data-item-image="{{ .image | absURL }}"
|
||||
{{ end }} data-item-price="{{ .Params.Price }}" data-item-url="{{ .Permalink }}" data-item-description="{{ .Description }}">
|
||||
Ajouter au Panier
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-12 mt-5">
|
||||
<ul class="nav nav-tabs border-bottom-0" id="myTab" role="tablist">
|
||||
<li class="nav-item mr-3">
|
||||
<a class="nav-link active" id="description-tab" data-toggle="tab" href="#description" role="tab"
|
||||
aria-controls="description" aria-selected="true">Description</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="reviews-tab" data-toggle="tab" href="#reviews" role="tab" aria-controls="reviews"
|
||||
aria-selected="false">Avis</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="description" role="tabpanel" aria-labelledby="description-tab">
|
||||
<div class="content">{{ .Content }}</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="reviews" role="tabpanel" aria-labelledby="reviews-tab">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "cta.html" . }}
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user