En cours...
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user