Files
cocoa-eh-hugo-theme/layouts/partials/head.html
Nishanth Shanmugham 994913289e Use .BaseURL instead of .BaseUrl
Closes #2
2015-11-08 22:48:12 -06:00

15 lines
392 B
HTML

<head>
{{ partial "meta.html" . }}
<base href="{{ .Site.BaseURL }}">
<title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if eq $url "/" }}
{{ .Site.Title }}
{{ else }}
{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}
{{ end }}
</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ partial "head_includes.html" . }}
</head>