head.html 2.44 KB
Newer Older
Sylvain Kerkour's avatar
Sylvain Kerkour committed
1
<head>
2 3 4 5
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0">
  <meta name="mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-capable" content="yes">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
6

7 8 9
  <meta name="apple-mobile-web-app-status-bar-style" content="#343a40">
  <meta name="theme-color" content="#343a40">
  <meta name="msapplication-TileColor" content="#343a40">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
10 11


12 13 14
  <link rel="shortcut icon" href="{{ "imgs/favicon.png" | relURL }}">
  <meta name="description" content="{{ .Site.Params.Description }}">
  <meta name="author" content="Sylvain Kerkour">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
15 16 17


  <!-- SOCIAL -->
18 19 20 21
  <meta name="og:title" property="og:title" content="{{ .Site.Title }}">
  <meta name="og:description" property="og:description" content="{{ .Site.Params.Description }}">
  <meta name="og:type" property="og:type" content="website">
  <meta name="og:url" property="og:url" content="{{ .Site.BaseURL }}">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
22 23 24 25 26 27 28 29
  <meta name="og:image" property="og:image" content="{{ .Site.BaseURL }}/imgs/og_image.jpg">

  <!-- <meta name="twitter:card" property="twitter:card" content="summary_large_image"> -->
  <meta name="twitter:url" property="twitter:url" content="{{ .Site.BaseURL }}">
  <meta name="twitter:title" property="twitter:title" content="{{ .Site.Title }}">
  <meta name="twitter:description" property="twitter:description" content="{{ .Site.Params.Description }}">
  <meta name="twitter:image" property="twitter:image" content="{{ .Site.BaseURL }}/imgs/og_image.jpg">

30 31 32
  <link rel="canonical" href="{{ .Permalink }}">
  <link rel="alternate" hreflang="en" href="{{ .Permalink }}">
  <link rel="alternate" hreflang="x-default" href="{{ .Permalink }}">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
33 34 35 36 37


  <!-- FEEDS -->
  {{ with .Site.GetPage "/" }}
    {{ with .OutputFormats.Get "rss" -}}
38
      {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
Sylvain Kerkour's avatar
Sylvain Kerkour committed
39 40 41 42
    {{ end -}}
  {{ end }}
  {{ with .Site.GetPage "/" }}
    {{ with .OutputFormats.Get "jsonfeed" -}}
43
      {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
Sylvain Kerkour's avatar
Sylvain Kerkour committed
44 45 46 47 48
    {{ end -}}
  {{ end }}


  <!-- CSS -->
Sylvain Kerkour's avatar
Sylvain Kerkour committed
49 50 51 52 53
  <style>
  {{ with resources.Get "sass/style.scss" | toCSS | minify }}
    {{ .Content | safeCSS }}
  {{ end }}
  </style>
Sylvain Kerkour's avatar
Sylvain Kerkour committed
54 55 56 57 58 59 60 61

  <!-- TITLE -->
  {{ if .IsHome -}}
    <title>{{ .Site.Title }}</title>
  {{- else -}}
    <title>{{ .Site.Title }} - {{ .Title }}</title>
  {{- end }}
</head>