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-07-02 03:58:00 +0300
committerYurizal Susanto <rizal.sagi@gmail.com>2017-07-02 03:58:00 +0300
commit7422e3fc270c2530b0031bbb0777e827ccdaa1f9 (patch)
tree527ee0f480b85b8c463d66d16f5638a09ee76f18 /layouts
parentd0a556f7172a07170aa26938ac99774bbdc714c2 (diff)
Use title template
Replace all the title to get uniform look
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html5
-rw-r--r--layouts/index.html1
3 files changed, 3 insertions, 5 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ae91cf9..0ec93ff 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,6 +1,6 @@
{{ partial "header" . }}
<section>
- <h2>{{ .Title | title }}</h2>
+ {{ partial "title" . }}
{{ with .Content }}{{.}}{{ end }}
</section>
{{ range .Pages.GroupByDate "Jan, 2006" }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 77d8613..f4367d7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,9 +1,6 @@
{{ partial "header" . }}
<article>
- <header>
- <h1>{{ .Title }}</h1>
- </header>
+ <header>{{ partial "title" . }}</header>
{{ .Content }}
- <hr/>
</article>
{{ partial "footer" . }}
diff --git a/layouts/index.html b/layouts/index.html
index de86453..de48aae 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,6 @@
{{ partial "header" . }}
{{ $latestcount := .Site.Params.latestcount | default 5 }}
+{{ partial "title" . }}
<section>
<h4>{{ T "latestPost" }}</h4>
<ul class="no-bullet">