瀏覽代碼

Replace hardcoded title of lists and terms

Now the title for lists and terms is the same
as the name chosen for the menu entry.
pull/3/head
dataCobra 4 年之前
父節點
當前提交
c36750873c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      layouts/_default/list.html
  2. +1
    -1
      layouts/_default/terms.html

+ 1
- 1
layouts/_default/list.html 查看文件

@@ -9,7 +9,7 @@
{{ if isset .Data "Term" }}
<h2>{{ .Data.Term }}</h2>
{{ else }}
<h2 class="page-title">All posts</h2>
<h2 class="page-title">{{ .Name }}</h2>
{{ end }}

<ul class="posts flat">

+ 1
- 1
layouts/_default/terms.html 查看文件

@@ -6,7 +6,7 @@
<div class="container wrapper tags">
{{ partial "head.html" . }}

<h1 class="page-title">All tags</h1>
<h1 class="page-title">{{ .Name }}</h1>

{{ $biggest := 1 }}
{{ $smallest := 1 }}

Loading…
取消
儲存