mirror of
https://github.com/Extroonie/extroonie.com.git
synced 2026-10-12 17:48:06 -07:00
17 lines
1.1 KiB
HTML
17 lines
1.1 KiB
HTML
|
|
{{- $source := resources.Get (index site.Params.images 0) -}}
|
||
|
|
{{- $earth := ($source.Crop "220x294 Right").Crop "220x220 Bottom" -}}
|
||
|
|
{{- $icon := $earth.Resize "64x64 png lanczos" -}}
|
||
|
|
{{- $touch := $earth.Resize "180x180 png lanczos" -}}
|
||
|
|
{{- $preview := (($source.Crop "300x232 Right").Crop "300x158 Bottom").Fill "1200x630 Center jpg q85 lanczos" -}}
|
||
|
|
{{- $alt := "Earth as a tiny pale dot in a sunbeam, photographed by Voyager 1." -}}
|
||
|
|
<meta property="og:image" content="{{ $preview.Permalink }}" />
|
||
|
|
<meta property="og:image:type" content="{{ $preview.MediaType.Type }}" />
|
||
|
|
<meta property="og:image:width" content="{{ $preview.Width }}" />
|
||
|
|
<meta property="og:image:height" content="{{ $preview.Height }}" />
|
||
|
|
<meta property="og:image:alt" content="{{ $alt }}" />
|
||
|
|
<meta name="twitter:card" content="summary_large_image" />
|
||
|
|
<meta name="twitter:image" content="{{ $preview.Permalink }}" />
|
||
|
|
<meta name="twitter:image:alt" content="{{ $alt }}" />
|
||
|
|
<link rel="icon" type="image/png" sizes="64x64" href="{{ $icon.RelPermalink }}" />
|
||
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ $touch.RelPermalink }}" />
|