{{/*These templates contains some more complex logic and shared between partials*/}}
{{ define "title" }}
{{ if and .File .Pages }}
{{ $sections := split (trim .File.Dir "/") "/" }}
{{ $title := index ($sections | last 1) 0 | humanize | title }}
{{ default $title .Title }}
{{ else if .File }}
{{ $title := .File.BaseFileName | humanize | title }}
{{ default $title .Title }}
{{ end }}
{{ end }}
{{ define "hrefhack" }}
{{ $attrEq := "$=" }}
{{ $attrVal := .RelPermalink }}
{{ if eq .RelPermalink "/" }}
{{ $attrEq = "=" }}
{{ $attrVal = .Permalink }}
{{ end }}
{{ end }}
{{ define "jsmenu" }}
{{ end }}