feat: update for netlify dev support

This commit is contained in:
Henk Verlinde
2021-04-02 19:45:05 +02:00
parent 73cc63324e
commit 10d0b45203
37 changed files with 112 additions and 102 deletions

View File

@ -23,15 +23,15 @@
{{ end -}}
{{ if $.Scratch.Get "paginator" }}
<link rel="canonical" href="{{ .Paginator.URL | absURL }}">
<link rel="canonical" href="{{ .Paginator.URL | relURL }}">
{{ if .Paginator.HasPrev -}}
<link rel="prev" href="{{ .Paginator.Prev.URL | absURL }}">
<link rel="prev" href="{{ .Paginator.Prev.URL | relURL }}">
{{ end -}}
{{ if .Paginator.HasNext -}}
<link rel="next" href="{{ .Paginator.Next.URL | absURL }}">
<link rel="next" href="{{ .Paginator.Next.URL | relURL }}">
{{ end -}}
{{ else -}}
<link rel="canonical" href="{{ .Permalink }}">
<link rel="canonical" href="{{ .RelPermalink }}">
{{ end -}}
{{ partial "head/twitter_cards.html" . }}
@ -44,7 +44,7 @@
<meta property="og:locale" content="{{ .Site.Params.ogLocale }}">
{{ range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .RelPermalink | safeURL }}">
{{ end -}}
{{ partial "head/structured-data.html" . }}