mirror of
https://github.com/Extroonie/extroonie.com.git
synced 2026-10-13 01: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.Fill "240x240 Center png lanczos").Filter (images.Padding 30 "#0000") -}}
|
||
|
|
{{- $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" />
|
||
|
|
<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 }}" />
|