Nettoyage des templates inutiles.
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
{{ define "main" }}
|
||||
{{ if eq .Kind "home" }}
|
||||
{{ .Content }}
|
||||
{{ range .Site.RegularPages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ end }}
|
||||
{{ else if eq .Kind "page" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ else if in (slice "section" "taxonomy" "term") .Kind }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ errorf "Unsupported page kind: %s" .Kind }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -1,6 +0,0 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -1,3 +0,0 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user