Skip to content

Commit

Permalink
Replace relative links with absolute ones in meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-dejongh committed May 21, 2024
1 parent 7eb34ec commit 3b579a9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions layouts/partials/meta.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{{ template "_internal/google_analytics.html" . }}
<meta name="description" content="{{ if .Params.summary }}{{ .Params.summary }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Hardcoded description; the author should update :){{ end }}" />
<meta name="description" content="{{ if .Params.Description }}{{ .Params.Description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Hardcoded description; the author should update :){{ end }}" />
<meta name="keywords" content="{{ if .Params.Tags }}{{ .Params.Tags }}{{ else if .Site.Params.Keywords }}{{ .Site.Params.Keywords }}{{ else }}learning,improvement{{ end }}" />
<meta name="robots" content="nofollow" />

{{ if eq .Site.Params.openGraph true }}
{{ if .Params.Title }}<meta property="og:title" content="SD Development: {{ .Params.Title }}">{{ end }}
{{ if .Params.Description }}<meta property="og:description" content="{{ .Params.Description}}" />{{ end }}
{{ if .Params.Image }}<meta property="og:image" content="/images/{{ .Params.Image }}" />{{ end }}
{{ end }}
{{ if .Params.Title }}<meta property="og:title" content="SD Development: {{ .Params.Title }}">{{ end }}
{{ if .Params.Description }}<meta property="og:description" content="{{ .Params.Description}}" />{{ end }}
{{ if .Params.Image }}<meta property="og:image" content="{{ .Site.BaseURL }}/images/{{ .Params.Image }}" />{{ end }}

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">

0 comments on commit 3b579a9

Please sign in to comment.