diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-30 12:00:06 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-30 12:00:06 +0200 |
| commit | 0c1f6c8a7041b7231592472c7445eeb6ce2c73dc (patch) | |
| tree | 057f420ba8b978fb81b6b4ddc5f2ca9e96fcea66 /layouts/partials/head.html | |
| parent | 1e34e9ced64160d4ff6b42a3271f28ea129570d9 (diff) | |
| download | gohugo-theme-ed-0c1f6c8a7041b7231592472c7445eeb6ce2c73dc.tar.gz | |
Improve links
Diffstat (limited to 'layouts/partials/head.html')
| -rw-r--r-- | layouts/partials/head.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c8cbb2e..d9b87f8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,7 +11,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no"> - <base href="{{ .Site.BaseURL }}"> + <base href="{{ "/" | absURL }}"> <link rel="canonical" href="{{ .Permalink }}"> <title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ .Site.Title }}{{ end }}</title> @@ -30,7 +30,8 @@ <!-- Open Graph metadata --> <meta property="og:title" content="{{ .Title }}"> <meta property="og:url" content="{{ .Permalink }}"> - <meta property="og:image" content="{{ .Site.BaseURL | safeURL }}{{ "img/open-graph-logo.png" }}"> + {{/* TODO: Check for reatured image */ -}} + <meta property="og:image" content="{{ "img/open-graph-logo.png" | absURL }}"> <meta property="og:image:width" content="200"> <meta property="og:image:height" content="200"> {{- /* TODO: add fb:admins and fb:app_id */ -}} |
