mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Use absURL
so that we get consistent URLs. (#29226)
This commit is contained in:
parent
3d8c5b9640
commit
34afe84424
@ -4,15 +4,15 @@
|
||||
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}">
|
||||
<meta name="twitter:title" content="{{ .Title | markdownify }}">
|
||||
<meta name="twitter:description" content="{{ .Page.Params.description | default .Site.Params.description | markdownify }}">
|
||||
<meta name="twitter:image" content="{{ if .IsHome }}{{ .Site.BaseURL }}{{ .Site.Params.social_logo_path }}{{ else }}{{ .Site.BaseURL }}{{ .Site.Params.social_image_path }}{{ end }}">
|
||||
<meta name="twitter:image" content="{{ if .IsHome }}{{ .Site.Params.social_logo_path | absURL }}{{ else }}{{ .Site.Params.social_image_path | absURL }}{{ end }}">
|
||||
|
||||
{{ "<!-- Facebook -->" | safeHTML }}
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:title" content="{{ .Title | markdownify }}">
|
||||
<meta property="og:description" content="{{ .Page.Params.description | default .Site.Params.description | markdownify }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:image" content="{{ replace .Site.BaseURL "https://" "http://" }}{{ .Site.Params.social_image_path }}">
|
||||
<meta property="og:image:secure_url" content="{{ .Site.BaseURL }}{{ .Site.Params.social_image_path }}">
|
||||
<meta property="og:image" content="{{ replace (.Site.Params.social_image_path | absURL) "https://" "http://" }}">
|
||||
<meta property="og:image:secure_url" content="{{ .Site.Params.social_image_path | absURL }}">
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
|
@ -9,4 +9,4 @@
|
||||
{{- end }}
|
||||
User-agent: *
|
||||
Disallow:{{ if not $allowCrawling }} /{{ end }}
|
||||
Sitemap: {{ .Site.BaseURL }}/sitemap.xml
|
||||
Sitemap: {{ "/sitemap.xml" | absURL }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user