fixed hugo depricated issues
This commit is contained in:
parent
24fcdf79d6
commit
3f41c9d0b9
5 changed files with 36 additions and 36 deletions
|
@ -1,5 +1,5 @@
|
|||
baseURL = "gethugothemes.com"
|
||||
theme = "dot"
|
||||
theme = "dot-hugo-documentation-theme"
|
||||
|
||||
|
||||
[params]
|
||||
|
@ -28,41 +28,41 @@ whiteColor = "#ffffff"
|
|||
[[Languages.en.menu.main]]
|
||||
weight = 2
|
||||
name = "Faq"
|
||||
url = "/faq"
|
||||
url = "faq"
|
||||
|
||||
[[Languages.en.menu.main]]
|
||||
weight = 2
|
||||
name = "contact"
|
||||
url = "/contact"
|
||||
url = "contact"
|
||||
|
||||
[[Languages.en.menu.main]]
|
||||
weight = 2
|
||||
name = "pages"
|
||||
url = "/pages"
|
||||
url = "pages"
|
||||
hasChildren = true
|
||||
|
||||
[[Languages.en.menu.main]]
|
||||
parent = "pages"
|
||||
name = "Elements"
|
||||
URL = "/elements"
|
||||
url = "elements"
|
||||
weight = 1
|
||||
|
||||
[[Languages.en.menu.main]]
|
||||
parent = "pages"
|
||||
name = "Installation"
|
||||
URL = "/installation"
|
||||
url = "installation"
|
||||
weight = 2
|
||||
|
||||
[[Languages.en.menu.main]]
|
||||
parent = "pages"
|
||||
name = "Billing and Pricing"
|
||||
URL = "/billing-pricing"
|
||||
url = "billing-pricing"
|
||||
weight = 3
|
||||
|
||||
[[Languages.en.menu.main]]
|
||||
parent = "pages"
|
||||
name = "Features"
|
||||
URL = "/features"
|
||||
url = "features"
|
||||
weight = 4
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@ whiteColor = "#ffffff"
|
|||
title = "Didn't find an answer to your question?"
|
||||
description = "Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam."
|
||||
btnText = "contact us"
|
||||
btnURL = "/contact"
|
||||
btnURL = "contact"
|
||||
|
||||
# contact
|
||||
[Languages.en.params.contact]
|
||||
|
@ -95,19 +95,19 @@ whiteColor = "#ffffff"
|
|||
# footer social icon
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-facebook"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-twitter-alt"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-vimeo-alt"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-instagram"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
||||
|
||||
|
||||
|
||||
|
@ -130,12 +130,12 @@ whiteColor = "#ffffff"
|
|||
[[Languages.fr.menu.main]]
|
||||
weight = 2
|
||||
name = "Faq"
|
||||
url = "/fr/faq"
|
||||
url = "fr/faq"
|
||||
|
||||
[[Languages.fr.menu.main]]
|
||||
weight = 2
|
||||
name = "contact"
|
||||
url = "/fr/contact"
|
||||
url = "fr/contact"
|
||||
|
||||
[[Languages.fr.menu.main]]
|
||||
weight = 2
|
||||
|
@ -145,25 +145,25 @@ whiteColor = "#ffffff"
|
|||
[[Languages.fr.menu.main]]
|
||||
parent = "pages"
|
||||
name = "Elements"
|
||||
URL = "/elements"
|
||||
url = "elements"
|
||||
weight = 1
|
||||
|
||||
[[Languages.fr.menu.main]]
|
||||
parent = "les sujets"
|
||||
name = "Commencer"
|
||||
URL = "/fr/installation"
|
||||
url = "fr/installation"
|
||||
weight = 2
|
||||
|
||||
[[Languages.fr.menu.main]]
|
||||
parent = "les sujets"
|
||||
name = "Compte et facturation"
|
||||
URL = "/fr/billing-pricing"
|
||||
url = "fr/billing-pricing"
|
||||
weight = 3
|
||||
|
||||
[[Languages.fr.menu.main]]
|
||||
parent = "les sujets"
|
||||
name = "Dépannage"
|
||||
URL = "/fr/features"
|
||||
url = "fr/features"
|
||||
weight = 4
|
||||
|
||||
# banner
|
||||
|
@ -193,16 +193,16 @@ whiteColor = "#ffffff"
|
|||
# footer social icon
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-facebook"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-twitter-alt"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-vimeo-alt"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-instagram"
|
||||
URL = "/#"
|
||||
linkURL = "#"
|
|
@ -29,7 +29,7 @@
|
|||
{{ if in .Site.Params.menu_exclusion .Section }}
|
||||
{{- else -}}
|
||||
{{- safeHTML .Params.head -}}
|
||||
<li class="{{ if .IsAncestor $currentNode }}parent d-block {{ end }}{{ if eq .UniqueID $currentNode.UniqueID }} active {{ end }}{{ if .Params.alwaysopen }} parent {{ end }}"><a href="{{ .URL }}">{{ .Title }}</a>
|
||||
<li class="{{ if .IsAncestor $currentNode }}parent d-block {{ end }}{{ if eq .File.UniqueID $currentNode.File.UniqueID }} active {{ end }}{{ if .Params.alwaysopen }} parent {{ end }}"><a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{- $numberOfPages := (add (len .Pages) (len .Sections)) -}}
|
||||
{{if ne $numberOfPages 0}}
|
||||
<ul class="{{ if .IsAncestor $currentNode }}sub-menu{{ end }}">
|
||||
|
@ -44,7 +44,7 @@
|
|||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- if not .Params.Hidden -}}
|
||||
<li class="{{ if eq .UniqueID $currentNode.UniqueID }}active{{ end }}"><a href="{{ .URL }}">{{ .Title }}</a></li>
|
||||
<li class="{{ if eq .File.UniqueID $currentNode.File.UniqueID }}active{{ end }}"><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{- end -}}
|
||||
{{ end -}}
|
||||
{{ end }}
|
||||
|
@ -59,10 +59,10 @@
|
|||
<nav class="pagination mt-3">
|
||||
{{- template "pagination" dict "menu" .Site.Home "currentnode" $currentNode "menu_exclusion" .Site.Params.menu_exclusion -}}
|
||||
{{- with ($.Scratch.Get "prevPage") -}}
|
||||
<a class="nav nav-prev" href="{{ .URL }}" title="{{ .Title }}"><i class="ti-arrow-left mr-2"></i>{{ .Title }}</a>
|
||||
<a class="nav nav-prev" href="{{ .Permalink }}" title="{{ .Title }}"><i class="ti-arrow-left mr-2"></i>{{ .Title }}</a>
|
||||
{{ end -}}
|
||||
{{- with ($.Scratch.Get "nextPage") -}}
|
||||
<a class="nav nav-next" href="{{ .URL }}" title="{{ .Title }}">{{ .Title }}<i class="ti-arrow-right ml-2"></i></a>
|
||||
<a class="nav nav-next" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}<i class="ti-arrow-right ml-2"></i></a>
|
||||
{{- end }}
|
||||
</nav>
|
||||
|
||||
|
@ -70,7 +70,7 @@
|
|||
{{- $currentNode := .currentnode -}}
|
||||
{{- $menu_exclusion := .menu_exclusion -}}
|
||||
|
||||
{{- if hasPrefix $currentNode.URL .menu.URL -}}
|
||||
{{- if hasPrefix $currentNode.Permalink .menu.Permalink -}}
|
||||
{{- $currentNode.Scratch.Set "NextPageOK" "OK" -}}
|
||||
{{- if .menu.IsHome -}}
|
||||
{{- $currentNode.Scratch.Set "prevPage" "" -}}
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 text-center mx-auto">
|
||||
{{ with .Site.Params.banner.title }} <h1 class="text-white mb-3">{{ . }}</h1> {{ end }}
|
||||
{{ with .Site.Params.banner.description }} <p class="text-white mb-4">{{ . }}</p> {{ end }}
|
||||
<h1 class="text-white mb-3">{{ .Site.Params.banner.title }}</h1>
|
||||
<p class="text-white mb-4">{{ .Site.Params.banner.description }}</p>
|
||||
<div class="position-relative">
|
||||
{{ with .Site.Params.banner.placeholder }} <input id="search" class="form-control" placeholder="{{ . }}"> {{ end }}
|
||||
<input id="search" class="form-control" placeholder="{{ .Site.Params.banner.placeholder }}">
|
||||
<!-- Javascript -->
|
||||
<script>
|
||||
$(function() {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="col-md-4 text-md-right text-center">
|
||||
<ul class="list-inline mb-3">
|
||||
{{ range .Site.Params.socialIcon }}
|
||||
<li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .URL | absURL}}"><i class="{{ .icon }}"></i></a></li>
|
||||
<li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .linkURL }}"><i class="{{ .icon }}"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<nav class="navbar navbar-expand-lg navbar-light">
|
||||
<a class="navbar-brand" href="{{ .Site.BaseURL }}">{{ .Site.Params.logo }}</a>
|
||||
<a class="navbar-brand" href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}">{{ .Site.Params.logo }}</a>
|
||||
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navigation"
|
||||
aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
@ -8,7 +8,7 @@
|
|||
<div class="collapse navbar-collapse text-center" id="navigation">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}">{{ .Site.Params.home }}</a>
|
||||
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}">{{ .Site.Params.home }}</a>
|
||||
</li>
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
|
@ -19,13 +19,13 @@
|
|||
</a>
|
||||
<div class="dropdown-menu" >
|
||||
{{ range .Children }}
|
||||
<a class="dropdown-item" href="{{ .URL }}">{{ .Name }}</a>
|
||||
<a class="dropdown-item" href="{{ .URL | absURL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="{{ .URL }}">{{ .Name }}</a>
|
||||
<a class="nav-link text-dark" href="{{ .URL | absURL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue