<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{{ if .IsHome }}pdfmux blog{{ else }}{{ .Title }} — pdfmux blog{{ end }}</title>
  <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
  <meta name="theme-color" content="#ffffff">
  <meta property="og:title" content="{{ .Title }}">
  <meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
  <meta property="og:url" content="{{ .Permalink }}">
  <meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
  <meta property="og:site_name" content="pdfmux blog">
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:title" content="{{ .Title }}">
  <meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
  <meta name="twitter:creator" content="{{ .Site.Params.twitter }}">
  {{ with .Params.canonical }}<link rel="canonical" href="{{ . }}">{{ end }}
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>&#x26A1;</text></svg>">
  {{ if .IsPage }}
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "BlogPosting",
    "headline": {{ .Title | jsonify }},
    "description": {{ with .Description }}{{ . | jsonify }}{{ else }}{{ .Site.Params.description | jsonify }}{{ end }},
    "author": { "@type": "Person", "name": "{{ .Site.Params.author }}", "url": "{{ .Site.Params.github }}" },
    "datePublished": "{{ .Date.Format "2006-01-02" }}",
    "dateModified": "{{ .Lastmod.Format "2006-01-02" }}",
    "publisher": { "@type": "Organization", "name": "pdfmux" },
    "mainEntityOfPage": { "@type": "WebPage", "@id": "{{ .Permalink }}" }{{ with .Params.tags }},
    "keywords": {{ . | jsonify }}{{ end }}
  }
  </script>
  {{ end }}
  {{ partial "styles.html" . }}
</head>
<body>
  {{ partial "nav.html" . }}
  <div class="container">
    {{ block "main" . }}{{ end }}
  </div>
  {{ partial "footer.html" . }}
  {{ partial "scripts.html" . }}
</body>
</html>
