Commit 76f7be69 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Only show title class attribute if a class exists

Related to #154
parent 41066046
{{- /* show title. if taxonomy list, include taxonony name */ -}}
{{- $class := partial "classnames/title.html" . }}
{{- /* don’t display a title on the homepage */ -}}
{{- if .IsHome }}{{- else }}
<h1 class='{{ partial "classnames/title.html" . }}'>
{{if eq .Kind "term"}}{{ .Data.Singular | humanize }}: {{ end }}{{ .Title }}
<h1{{ if ne $class "" }} class='{{ $class }}'{{- end }}>
{{- if eq .Kind "term"}}{{ .Data.Singular | humanize }}: {{ end }}{{ .Title }}
</h1>
{{- end }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment