{{- partial "style.html" . -}} {{ if .IsHome }} {{- partial "home.html" . -}} {{ else if eq .Page.File.Dir "about/" }} {{- partial "about.html" . -}} {{ else }}
{{ if eq .Page.Path "blog" }}

{{ .Site.Title }}

{{ else if not .Page.IsPage }}
{{ $path := "" }} {{ with .Page.File }} {{ $path = .Dir }} {{ end }} {{ $segments := split $path "/" }} {{ $currentPath := "" }} {{ range $index, $element := $segments }} {{ if ne $element "" }} {{ if $index }} / {{ end }} {{ $currentPath = printf "%s/%s" $currentPath $element }} {{ $element }} {{ end }} {{ end }} /
{{ end }}
{{- block "main" . }}{{- end }}
{{ end }}