Move link rel canonical from meta.html that is cached and add it directly in baseof.html
This commit is contained in:
parent
aaab808e87
commit
72948a55f0
4 changed files with 4 additions and 6 deletions
|
|
@ -4,7 +4,8 @@
|
|||
<meta charset="utf-8">
|
||||
<title>{{ block "title" . }}{{ .Title }} – {{ .Site.Title }}{{ end }}</title>
|
||||
{{ block "meta" . }}{{ end }}
|
||||
{{ partialCached "meta.html" . -}}
|
||||
{{- partialCached "meta.html" . -}}
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
</head>
|
||||
|
||||
<body class="{{ if $.Param "sidebar" | default true }}one-sidebar sidebar-second{{ else }}no-sidebars{{ end }}">
|
||||
|
|
|
|||
|
|
@ -7,5 +7,3 @@
|
|||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "meta" }}
|
||||
{{ partial "section_meta.html" . -}}
|
||||
{{- partial "section_meta.html" . -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" -}}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "meta" }}
|
||||
{{ partial "single_meta.html" . -}}
|
||||
{{- partial "single_meta.html" . -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue