mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-04-20 16:40:29 +00:00
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
{{ define "meta" }}
|
|
{{/* Title */}}
|
|
<title>{{ .Title }}</title>
|
|
|
|
{{/* Basic meta */}}
|
|
<meta name="description" content="{{ .Description }}">
|
|
{{ if .Canonical }}<link rel="canonical" href="{{ .Canonical }}">{{ end }}
|
|
{{ if .Robots }}<meta name="robots" content="{{ .Robots }}">{{ end }}
|
|
|
|
{{/* OpenGraph */}}
|
|
<meta property="og:locale" content="en_US">
|
|
<meta property="og:title" content="{{ .Title }}">
|
|
<meta property="og:description" content="{{ .Description }}">
|
|
<meta property="og:type" content="{{ or .OGType "website" }}">
|
|
{{ if .Canonical }}<meta property="og:url" content="{{ .Canonical }}">{{ end }}
|
|
{{ if .OGImage }}
|
|
<meta property="og:image" content="{{ .OGImage }}">
|
|
<meta property="og:image:width" content="1200">
|
|
<meta property="og:image:height" content="630">
|
|
{{ end }}
|
|
<meta property="og:site_name" content="{{ or .SiteName "ATCR" }}">
|
|
|
|
{{/* Twitter Card */}}
|
|
<meta name="twitter:card" content="{{ or .TwitterCard "summary_large_image" }}">
|
|
<meta name="twitter:title" content="{{ .Title }}">
|
|
<meta name="twitter:description" content="{{ .Description }}">
|
|
{{ if .OGImage }}<meta name="twitter:image" content="{{ .OGImage }}">{{ end }}
|
|
|
|
{{/* JSON-LD */}}
|
|
{{ range .JSONLD }}
|
|
{{ jsonldScript . }}
|
|
{{ end }}
|
|
{{ end }}
|