Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <rizal.sagi@gmail.com>2017-06-29 18:32:46 +0300
committerYurizal Susanto <rizal.sagi@gmail.com>2017-06-29 18:32:46 +0300
commitb64aff95dea66f426b8ff6d17087755602902682 (patch)
tree49eeb50ddd9b211984e0f3aaf0af36a5a9b1e47e /layouts
parent8595ef0187afdf1faa9780929202ef00c56cf992 (diff)
Change few template variables to reduce redundancy
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 30b02d0..ae91cf9 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,6 +1,6 @@
{{ partial "header" . }}
<section>
- <h2>{{ .Section | title }}</h2>
+ <h2>{{ .Title | title }}</h2>
{{ with .Content }}{{.}}{{ end }}
</section>
{{ range .Pages.GroupByDate "Jan, 2006" }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index b9ff285..0d69cba 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -7,7 +7,7 @@
{{ if .Site.Params.themeAttrib }}
{{ T "usedTheme" }} <a href="https://github.com/yursan9/manis-hugo-theme">Manis</a><br>
{{ end }}
- {{ with .Site.Params.License }}
+ {{ with .Site.Copyright }}
{{ . | safeHTML }} |
<a href="/about/license">{{ T "license" }}</a>
{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 166edc1..68f2983 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{.Site.LanguageCode}}">
+<html lang="{{.Language}}">
{{ partial "meta" . }}
<body>
{{ partial "nav" . }}