Adding image to Twitter meta data (#13261)
This commit is contained in:
parent
8ac581b50e
commit
14bfed8631
|
@ -22,6 +22,7 @@
|
|||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:title" content="{{ if .Params.title }}{{ .Title }}{{ else }}{{ .Summary | truncate 10 }}{{ end }}">
|
||||
<meta name="twitter:title" content="{{ if .Params.title }}{{ .Title }}{{ else }}{{ .Summary | truncate 10 }}{{ end }}">
|
||||
<meta name="twitter:image" content="https://kubernetes.io/images/favicon.png" />
|
||||
<!-- Alt text for the site image -->
|
||||
<meta name="twitter:image:alt" content="{{ site.Title }}">
|
||||
{{ if $isBlogPost }}
|
||||
|
@ -29,7 +30,7 @@
|
|||
<meta property="og:image" content="{{ index . 0 | replaceRE ".*src=\"(.+?)\".*" "$1" }}">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<meta property="og:image" content="{{ "images/kubernetes-horizontal-color.png" | relURL }}">
|
||||
<meta property="og:image" content="{{ "/images/kubernetes-horizontal-color.png" | relURL }}">
|
||||
{{ end }}
|
||||
<meta property="og:type" content="{{ $ogType }}">
|
||||
<script src="{{ "js/anchor-4.1.1.min.js" | relURL }}"></script>
|
||||
|
|
Loading…
Reference in New Issue