Hello,
I have his in my partials/header.html
:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base href="{{ .Site.BaseURL }}">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title> {{ .Title }} </title>
<link rel="canonical" href="{{ .RelPermalink }}">
{{ partial "head_includes.html" . }}
</head>
But I get a screen full of
2016/10/11 00:54:30 template.go:132: template: theme/partials/header.html:18:39: executing "theme/partials/header.html" at <.RelPermalink>: can't evaluate field RelPermalink in type *hugolib.Node in theme/partials/header.html
ERROR: 2016/10/11 00:54:30 template.go:132: template: theme/partials/header.html:18:39: executing "theme/partials/header.html" at <.RelPermalink>: can't evaluate field RelPermalink in type *hugolib.Node in theme/partials/header.html
ERROR: 2016/10/11 00:54:30 template.go:132: template: theme/partials/header.html:18:39: executing "theme/partials/header.html" at <.RelPermalink>: can't evaluate field RelPermalink in type *hugolib.Node in theme/partials/header.html
ERROR: 2016/10/11 00:54:30 template.go:132: template: theme/partials/header.html:18:39: executing "theme/partials/header.html" at <.RelPermalink>: can't evaluate field RelPermalink in type *hugolib.Node in theme/partials/header.html
ERROR: 2016/10/11 00:54:30 template.go:132: template: theme/partials/header.html:18:39: executing "theme/partials/header.html" at <.RelPermalink>: can't evaluate field RelPermalink in type *hugolib.Node in theme/partials/header.html
This is my Hugo version: Hugo Static Site Generator v0.18-DEV BuildDate: 2016-10-10T09:22:21-04:00
I am using a modified version of the Lanyon theme for Hugo: https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/tree/master/themes/Lanyon/layouts
The difference between the committed code above and above code snippet is the use of {{ .RelPermalink }}
.