<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ if .IsHome }}{{ .Site.Title }} · Private calorie tracking{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title>
{{- $desc := or .Description .Site.Params.description -}}
<meta name="description" content="{{ $desc }}" />
<link rel="canonical" href="{{ .Permalink }}" />
{{- $ogImage := "img/og.png" | absURL -}}
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}" />
<meta property="og:description" content="{{ $desc }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:image" content="{{ $ogImage }}" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}" />
<meta name="twitter:description" content="{{ $desc }}" />
<meta name="twitter:image" content="{{ $ogImage }}" />
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | relURL }}" />
<link rel="icon" type="image/png" href="{{ "img/logo.png" | relURL }}" />
<link rel="stylesheet" href="{{ "fonts/fonts.css" | relURL }}" />
{{ $css := resources.Get "css/main.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" />
{{- $ld := dict
  "@context" "https://schema.org"
  "@type" "SoftwareApplication"
  "name" "Chompass"
  "applicationCategory" "HealthApplication"
  "operatingSystem" "Web, Android"
  "description" $desc
  "url" .Site.BaseURL
  "image" $ogImage
  "downloadUrl" .Site.Params.releases
  "license" "https://opensource.org/licenses/MIT"
  "offers" (dict "@type" "Offer" "price" "0" "priceCurrency" "USD")
-}}
<script type="application/ld+json">{{ $ld | jsonify | safeJS }}</script>
