2022-03-11 07:23:52 -06:00
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
|
|
<meta property="twitter:domain"
|
|
|
|
content='{{ trim (trim .Site.BaseURL "http://") "https://" }}'
|
|
|
|
/>
|
|
|
|
<meta property="twitter:url" content="{{ .Permalink | absURL }}" />
|
|
|
|
|
|
|
|
{{ if .IsPage }}
|
|
|
|
<meta name="twitter:title" content="{{ .Title }}" />
|
|
|
|
|
2022-10-24 01:02:44 -05:00
|
|
|
{{ $image := .Site.Params.icon512 | default "/img/icon.svg" }}
|
|
|
|
{{ if .Params.Image }}
|
|
|
|
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
|
|
|
{{ $image = .Params.Image }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $image = path.Join (path.Join .File.Dir .Params.Image) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-03-11 07:23:52 -06:00
|
|
|
<meta name="twitter:image"
|
2022-10-24 01:02:44 -05:00
|
|
|
content="{{ $image | absURL }}" />
|
2022-03-11 07:23:52 -06:00
|
|
|
{{ if .Params.description }}
|
|
|
|
<meta name="twitter:description" content="{{ .Params.description }}" />
|
|
|
|
{{ else }}
|
|
|
|
<meta name="twitter:description" content="{{ substr .Summary 0 160 }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<meta name="twitter:title"
|
|
|
|
content='{{ .Site.Title | default "Ficurinia" }}' />
|
|
|
|
{{ if .Site.Params.description }}
|
|
|
|
<meta name="twitter:description" content="{{ .Site.Params.description }}" />
|
|
|
|
{{ end }}
|
|
|
|
<meta name="twitter:image"
|
|
|
|
content='{{ .Site.Params.icon512 | default "/img/icon.svg" | absURL }}' />
|
|
|
|
{{ end }}
|