Browse Source

modified config file

tags/v1.0.0
Themefisher Dev 5 years ago
parent
commit
c8219c0c7c
2 changed files with 2 additions and 5 deletions
  1. 0
    3
      exampleSite/config.toml
  2. 2
    2
      layouts/partials/navigation.html

+ 0
- 3
exampleSite/config.toml View File

@@ -8,9 +8,6 @@ paginate = "6"
summaryLength = "15"
# disqus short name
disqusShortname = "" # get your shortname form here : https://disqus.com
# default content language
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true
# disable language
disableLanguages = []


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

@@ -54,10 +54,10 @@
{{ if eq $translation.Lang .Lang }}
{{ $selected := false }}
{{ if eq $pageLang .Lang}}
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}" selected>{{ .LanguageName }}
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}
</option>
{{ else }}
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}">{{ .LanguageName }}</option>
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
{{ end }}
{{ end }}
{{ end }}

Loading…
Cancel
Save