Explorar el Código

use `site` instead of `.Site`

tags/v1.0.0
Didier GEORGIEFF hace 4 años
padre
commit
12d625d722

+ 2
- 2
layouts/404.html Ver fichero

@@ -8,10 +8,10 @@
<div class="col-12 text-center">
<h1>404</h1>
<h2>Page Not Found</h2>
<a class="btn btn-main" href="{{ .Site.BaseURL | relLangURL }}">Back to home</a>
<a class="btn btn-main" href="{{ site.BaseURL | relLangURL }}">Back to home</a>
</div>
</div>
</div>
</section>

{{ end }}
{{ end }}

+ 2
- 2
layouts/_default/baseof.html Ver fichero

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<html lang="{{ with site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
{{ partial "head.html" . }}

<body id="body" data-spy="scroll" data-target=".navbar" data-offset="55">
@@ -10,4 +10,4 @@
{{- partial "footer.html" . -}}
</body>

</html>
</html>

+ 1
- 1
layouts/_default/single.html Ver fichero

@@ -17,7 +17,7 @@
<div class="post-single-content">
{{ .Content }}
</div>
{{ if .Site.Params.post_share }}
{{ if site.Params.post_share }}
{{ partial "post-share.html" . }}
{{ end }}
<!-- comments -->

+ 2
- 2
layouts/author/single.html Ver fichero

@@ -50,10 +50,10 @@
<div class="border-meghna"></div>
</div>
</div>
{{ range where .Site.RegularPages "Params.author" .Title }}
{{ range where site.RegularPages "Params.author" .Title }}
{{ .Render "article" }}
{{ end }}
</div>
</div>
</section>
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/about.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.about.about.enable }}
{{ with $data.about.about }}
@@ -36,4 +36,4 @@
</section>
{{"<!-- /about -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/banner.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.banner.banner.enable }}
{{ with $data.banner.banner }}
@@ -24,4 +24,4 @@
</section>
{{"<!-- /Welcome Slider-->" | safeHTML}}
{{end}}
{{end}}
{{end}}

+ 2
- 2
layouts/partials/blog.html Ver fichero

@@ -1,4 +1,4 @@
{{ if gt .Site.RegularPages 0}}
{{ if gt site.RegularPages 0}}
{{"<!-- Start Blog Section -->" | safeHTML}}
<section id="blog" class="section">
<div class="container">
@@ -13,7 +13,7 @@
</div>
{{"<!-- /section title -->" | safeHTML}}

{{ range first 3 (where .Site.RegularPages "Section" "==" "blog")}}
{{ range first 3 (where site.RegularPages "Section" "==" "blog")}}
{{ .Render "article"}}
{{ end }}


+ 3
- 3
layouts/partials/contact.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.contact.contact.enable }}
{{ with $data.contact.contact }}
@@ -20,7 +20,7 @@
<div class="contact-info col-lg-6 wow fadeInUp" data-wow-duration="500ms">
<h3>{{ .subtitle | markdownify }}</h3>
<p> {{ .content | markdownify }} </p>
{{ if .contact_form.enable }}
<div class="contact-details">
{{ range .contact_list }}
@@ -71,4 +71,4 @@
</section>
{{"<!-- /contact -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 1
- 1
layouts/partials/cta.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.cta.cta.enable}}
{{ with $data.cta.cta}}

+ 2
- 2
layouts/partials/feature.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.feature.feature.enable }}
{{ with $data.feature.feature }}
@@ -38,4 +38,4 @@
</section>
{{"<!-- /feature -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 7
- 7
layouts/partials/footer.html Ver fichero

@@ -7,7 +7,7 @@
{{"<!-- Footer Social Links -->" | safeHTML}}
<div class="social-icon">
<ul class="list-inline">
{{ range .Site.Params.social }}
{{ range site.Params.social }}
<li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
{{ end }}
</ul>
@@ -15,11 +15,11 @@

{{"<!-- copyright -->" | safeHTML}}
<div class="copyright text-center">
<a href="{{ .Site.BaseURL | absLangURL }}">
<img src="{{ .Site.Params.logo | absURL }}" alt="{{ .Site.Title }}" />
<a href="{{ site.Home.Permalink }}">
<img src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}" />
</a>
<br>
<p>{{ .Site.Params.copyright | markdownify }}</p>
<p>{{ site.Params.copyright | markdownify }}</p>
</div>
</div>
</div>
@@ -28,12 +28,12 @@
{{"<!-- /footer -->" | safeHTML}}

{{ "<!-- Google Map API -->" | safeHTML }}
{{ if .Site.Params.map.enable }}
<script src="{{ .Site.Params.map.gmap_api | safeURL }}"></script>
{{ if site.Params.map.enable }}
<script src="{{ site.Params.map.gmap_api | safeURL }}"></script>
{{ end }}

{{ "<!-- JS Plugins -->" | safeHTML }}
{{ range .Site.Params.plugins.js}}
{{ range site.Params.plugins.js}}
<script src="{{ .link | absURL }}"></script>
{{ end }}


+ 2
- 2
layouts/partials/funfacts.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.funfacts.funfacts.enable }}
{{ with $data.funfacts.funfacts }}
@@ -22,4 +22,4 @@
</section>
{{"<!-- /Counter Section -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 4
- 4
layouts/partials/head.html Ver fichero

@@ -4,13 +4,13 @@

{{ "<!-- mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with .Site.Params.author }}
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with site.Params.author }}
<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}

{{ "<!-- plugins -->" | safeHTML }}
{{ range .Site.Params.plugins.css }}
{{ range site.Params.plugins.css }}
<link rel="stylesheet" href="{{ .link | absURL }}">
{{ end }}

@@ -25,7 +25,7 @@
<link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">

{{ with .Site.Params.google_analytics_id }}
{{ with site.Params.google_analytics_id }}
{{ "<!-- Global Site Tag (gtag.js) - Google Analytics -->" | safeHTML }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
<script>

+ 4
- 4
layouts/partials/map.html Ver fichero

@@ -1,11 +1,11 @@
{{ if .Site.Params.map.enable }}
{{ with .Site.Params.map }}
{{ if site.Params.map.enable }}
{{ with site.Params.map }}
{{"<!-- Google Map -->" | safeHTML}}
<div class="google-map">
<div id="map" data-latitude="{{ .map_latitude }}"
data-longitude="{{ .map_longitude }}"
data-marker="{{ .map_marker | absURL }}"
data-marker-name="{{ $.Site.Title }}"></div>
data-marker-name="{{ $site.Title }}"></div>
</div>
{{ end }}
{{ end }}
{{ end }}

+ 13
- 13
layouts/partials/navigation.html Ver fichero

@@ -1,11 +1,11 @@
<section class="sticky-top navigation">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark">
<a class="navbar-brand p-0" href="{{ .Site.BaseURL | relLangURL }}">
{{ if .Site.Params.logo }}
<img class="img-fluid" src="{{ .Site.Params.logo | absURL }}" alt="{{ .Site.Title }}">
<a class="navbar-brand p-0" href="{{ site.BaseURL | relLangURL }}">
{{ if site.Params.logo }}
<img class="img-fluid" src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}">
{{ else }}
{{ .Site.Title }}
{{ site.Title }}
{{ end }}
</a>

@@ -15,31 +15,31 @@

<div class="collapse navbar-collapse" id="navigation">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="#body">{{ .Site.Params.home }}</a></li>
<li class="nav-item"><a class="nav-link" href="#body">{{ site.Params.home }}</a></li>
{{ if .IsHome }}
{{ range .Site.Menus.main }}
{{ range site.Menus.main }}
<li class="nav-item"><a class="nav-link" href="#{{ .URL }}">{{ i18n .Name }}</a></li>
{{ end }}

{{ else }}

{{ range .Site.Menus.main }}
<li class="nav-item"><a class="nav-link" href="{{ $.Site.BaseURL | relLangURL }}#{{ .URL }}">{{ i18n .Name }}</a>
{{ range site.Menus.main }}
<li class="nav-item"><a class="nav-link" href="{{ $site.BaseURL | relLangURL }}#{{ .URL }}">{{ i18n .Name }}</a>
</li>
{{ end }}
{{ end }}

{{ range .Site.Menus.static }}

{{ range site.Menus.static }}
<li class="nav-item"><a class="nav-link" target="_blank" href="{{ .URL }}">{{ i18n .Name }}</a>
</li>
{{ end }}
</ul>
<!-- Language List -->
{{- if .Site.IsMultiLingual }}
{{- if site.IsMultiLingual }}
<select id="select-language" onchange="location = this.value;">
{{ $siteLanguages := .Site.Languages}}
{{ $siteLanguages := site.Languages}}
{{ $pageLang := .Page.Lang}}
{{ range .Page.AllTranslations }}
{{ $translation := .}}

+ 2
- 2
layouts/partials/portfolio.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.portfolio.portfolio.enable }}
{{ with $data.portfolio.portfolio }}
@@ -67,4 +67,4 @@
</section>
{{"<!-- /Portfolio -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 3
- 3
layouts/partials/preloader.html Ver fichero

@@ -1,9 +1,9 @@
{{ if .Site.Params.preloader.enable }}
{{ if site.Params.preloader.enable }}
{{ "<!-- preloader start -->" | safeHTML }}
<div class="preloader">
{{ with .Site.Params.preloader.preloader }}
{{ with site.Params.preloader.preloader }}
<img src="{{ . | absURL }}" alt="preloader">
{{ end }}
</div>
{{ "<!-- preloader end -->" | safeHTML }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/pricing.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.pricing.pricing.enable }}
{{ with $data.pricing.pricing }}
@@ -48,4 +48,4 @@
</section>
{{"<!-- /pricing -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/service.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.service.service.enable}}
{{ with $data.service.service}}
@@ -34,4 +34,4 @@
</section>
{{"<!-- /service -->" | safeHTML }}
{{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/skill.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.skill.skill.enable }}
{{ with $data.skill.skill }}
@@ -45,4 +45,4 @@
</section>
{{"<!-- /skill -->" | safeHTML }}
{{ end }}
{{ end }}
{{ end }}

+ 1
- 1
layouts/partials/team.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.team.team.enable }}
{{ with $data.team.team }}

+ 2
- 2
layouts/partials/testimonial.html Ver fichero

@@ -1,4 +1,4 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}

{{ if $data.testimonial.testimonial.enable }}
{{ with $data.testimonial.testimonial }}
@@ -41,4 +41,4 @@
</section>
{{"<!-- /testimonial -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

Cargando…
Cancelar
Guardar