Merge branch 'master' of github.com:themefisher/dot-hugo-documentation-theme

This commit is contained in:
somrat 2019-11-16 13:57:19 +06:00
commit 109c92be39
2 changed files with 7 additions and 8 deletions

View file

@ -29,10 +29,9 @@
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="section bg-white shadow text-center"> <div class="section bg-white shadow text-center">
{{ with .Site.Params.cta.title }} <h2 class="mb-4">{{ . }}</h2> {{ end }} {{ with .Site.Params.cta.title }} <h2 class="mb-4">{{ . }}</h2> {{ end }}
{{ with .Site.Params.cta.description }} <p class="mb-4">{{ . }}</p> {{ end }} {{ with .Site.Params.cta.description }} <p class="mb-4">{{ . }}</p> {{ end }}
<a href="{{ with .Site.Params.cta.btnURL}}{{ . | absURL }}{{ end }}" <a href="{{ with .Site.Params.cta.btnURL}}{{ . | relLangURL }}{{ end }}" class="btn btn-primary">{{ with .Site.Params.cta.btnText}}{{ . }}{{ end }}</a>
class="btn btn-primary">{{ with .Site.Params.cta.btnText}}{{ . }}{{ end }}</a>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,5 +1,5 @@
<nav class="navbar navbar-expand-lg navbar-light"> <nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}"> <a class="navbar-brand" href="{{ .Site.BaseURL | relLangURL }}{{ .Language.LanguageName | lower }}">
{{ $logo:= .Site.Params.logo }} {{ $logo:= .Site.Params.logo }}
{{ $logoWhite:= .Site.Params.logoWhite }} {{ $logoWhite:= .Site.Params.logoWhite }}
{{ if (or (eq $logo "") (eq $logoWhite "")) }} {{ if (or (eq $logo "") (eq $logoWhite "")) }}
@ -20,7 +20,7 @@
<div class="collapse navbar-collapse text-center" id="navigation"> <div class="collapse navbar-collapse text-center" id="navigation">
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}">{{ .Site.Params.home }}</a> <a class="nav-link text-dark" href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.home }}</a>
</li> </li>
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if .HasChildren }} {{ if .HasChildren }}
@ -31,13 +31,13 @@
</a> </a>
<div class="dropdown-menu" > <div class="dropdown-menu" >
{{ range .Children }} {{ range .Children }}
<a class="dropdown-item" href="{{ .URL | absURL }}">{{ .Name }}</a> <a class="dropdown-item" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
{{ end }} {{ end }}
</div> </div>
</li> </li>
{{ else }} {{ else }}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link text-dark" href="{{ .URL | absURL }}">{{ .Name }}</a> <a class="nav-link text-dark" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}