Revert + fix language var names in exampleSite/config.toml

This commit is contained in:
Janne Cederberg 2017-04-25 11:18:18 +03:00
parent f71071185d
commit 726321bac3
3 changed files with 7 additions and 7 deletions

View file

@ -90,19 +90,19 @@ disable404 = true
dates = "2007 - 2011"
# Languages section
[params.languages]
[params.language]
enable = true
title = "Languages"
[[params.languages.list]]
[[params.language.list]]
language = "English"
level = "Native"
[[params.languages.list]]
[[params.language.list]]
language = "French"
level = "Professional"
[[params.languages.list]]
[[params.language.list]]
language = "Russian"
level = "Professional"

View file

@ -1,7 +1,7 @@
<div class="language-container container-block">
<h2 class="container-block-title">{{ i18n "language" }}</h2>
<ul class="list-unstyled interests-list">
{{ range .Site.Params.languages.list }}
{{ range .Site.Params.language.list }}
<li>{{ .language }} <span class="lang-desc">({{ .level }})</span></li>
{{ end }}
</ul>

View file

@ -14,8 +14,8 @@
{{ partial "education.html" . }}
{{ end }}
{{ if .Site.Params.languages.enable }}
{{ partial "languages.html" . }}
{{ if .Site.Params.language.enable }}
{{ partial "language.html" . }}
{{ end }}
{{ if .Site.Params.interests.enable }}