Browse Source

use `site` instead of `.Site`

tags/v1.0.0
Didier GEORGIEFF 4 years ago
parent
commit
12d625d722

+ 2
- 2
layouts/404.html View File

<div class="col-12 text-center"> <div class="col-12 text-center">
<h1>404</h1> <h1>404</h1>
<h2>Page Not Found</h2> <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> </div>
</div> </div>
</section> </section>


{{ end }}
{{ end }}

+ 2
- 2
layouts/_default/baseof.html View File

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


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


</html>
</html>

+ 1
- 1
layouts/_default/single.html View File

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

+ 2
- 2
layouts/author/single.html View File

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

+ 2
- 2
layouts/partials/about.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


{{ if $data.about.about.enable }} {{ if $data.about.about.enable }}
{{ with $data.about.about }} {{ with $data.about.about }}
</section> </section>
{{"<!-- /about -->" | safeHTML}} {{"<!-- /about -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/banner.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


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

+ 2
- 2
layouts/partials/blog.html View File

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


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



+ 3
- 3
layouts/partials/contact.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


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

+ 1
- 1
layouts/partials/cta.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


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

+ 2
- 2
layouts/partials/feature.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


{{ if $data.feature.feature.enable }} {{ if $data.feature.feature.enable }}
{{ with $data.feature.feature }} {{ with $data.feature.feature }}
</section> </section>
{{"<!-- /feature -->" | safeHTML}} {{"<!-- /feature -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 7
- 7
layouts/partials/footer.html View File

{{"<!-- Footer Social Links -->" | safeHTML}} {{"<!-- Footer Social Links -->" | safeHTML}}
<div class="social-icon"> <div class="social-icon">
<ul class="list-inline"> <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> <li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
{{ end }} {{ end }}
</ul> </ul>


{{"<!-- copyright -->" | safeHTML}} {{"<!-- copyright -->" | safeHTML}}
<div class="copyright text-center"> <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> </a>
<br> <br>
<p>{{ .Site.Params.copyright | markdownify }}</p>
<p>{{ site.Params.copyright | markdownify }}</p>
</div> </div>
</div> </div>
</div> </div>
{{"<!-- /footer -->" | safeHTML}} {{"<!-- /footer -->" | safeHTML}}


{{ "<!-- Google Map API -->" | 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 }} {{ end }}


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



+ 2
- 2
layouts/partials/funfacts.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


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

+ 4
- 4
layouts/partials/head.html View File



{{ "<!-- mobile responsive meta -->" | safeHTML }} {{ "<!-- mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <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 }} <meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }} {{ hugo.Generator }}


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


<link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon"> <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"> <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 }} {{ "<!-- Global Site Tag (gtag.js) - Google Analytics -->" | safeHTML }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script> <script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
<script> <script>

+ 4
- 4
layouts/partials/map.html View File

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

+ 13
- 13
layouts/partials/navigation.html View File

<section class="sticky-top navigation"> <section class="sticky-top navigation">
<div class="container"> <div class="container">
<nav class="navbar navbar-expand-lg navbar-dark"> <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 }} {{ else }}
{{ .Site.Title }}
{{ site.Title }}
{{ end }} {{ end }}
</a> </a>




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


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

+ 2
- 2
layouts/partials/portfolio.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


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

+ 3
- 3
layouts/partials/preloader.html View File

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

+ 2
- 2
layouts/partials/pricing.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


{{ if $data.pricing.pricing.enable }} {{ if $data.pricing.pricing.enable }}
{{ with $data.pricing.pricing }} {{ with $data.pricing.pricing }}
</section> </section>
{{"<!-- /pricing -->" | safeHTML}} {{"<!-- /pricing -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/service.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


{{ if $data.service.service.enable}} {{ if $data.service.service.enable}}
{{ with $data.service.service}} {{ with $data.service.service}}
</section> </section>
{{"<!-- /service -->" | safeHTML }} {{"<!-- /service -->" | safeHTML }}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/skill.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


{{ if $data.skill.skill.enable }} {{ if $data.skill.skill.enable }}
{{ with $data.skill.skill }} {{ with $data.skill.skill }}
</section> </section>
{{"<!-- /skill -->" | safeHTML }} {{"<!-- /skill -->" | safeHTML }}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 1
- 1
layouts/partials/team.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


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

+ 2
- 2
layouts/partials/testimonial.html View File

{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $data := index site.Data site.Language.Lang }}


{{ if $data.testimonial.testimonial.enable }} {{ if $data.testimonial.testimonial.enable }}
{{ with $data.testimonial.testimonial }} {{ with $data.testimonial.testimonial }}
</section> </section>
{{"<!-- /testimonial -->" | safeHTML}} {{"<!-- /testimonial -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

Loading…
Cancel
Save