Skip to content

Commit a9ae2a1

Browse files
committed
don't display home page name
1 parent 4272440 commit a9ae2a1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

template.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func Partial(path string, data Locals) template.HTML {
7272
data = Locals{}
7373
}
7474

75+
data["INDEX"] = INDEX
7576
data["SITENAME"] = SITENAME
7677
data["READONLY"] = READONLY
7778

templates/title.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
{{ end }}
1414
</div>
1515

16+
{{ if ne .INDEX .page.Name }}
1617
<div dir="auto" class="title is-1 has-text-weight-bold">{{ .title }}</div>
18+
{{ end }}

0 commit comments

Comments
 (0)