head.html 2.42 KB
Newer Older
Sylvain Kerkour's avatar
Sylvain Kerkour committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
<head>
  <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" />

  <meta name="apple-mobile-web-app-status-bar-style" content="#343a40" />
  <meta name="theme-color" content="#343a40" />
  <meta name="msapplication-TileColor" content="#343a40" />


  <link rel="shortcut icon" href="{{ "imgs/favicon.png" | relURL }}"/>
  <meta name="description" content="{{ .Site.Params.Description }}" />


  <!-- SOCIAL -->
  <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 }}" />
  <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">

  <link rel="canonical" href="{{ .Permalink }}" />
  <link rel="alternate" hreflang="en" href="{{ .Permalink }}" />
  <link rel="alternate" hreflang="x-default" href="{{ .Permalink }}" />


  <!-- FEEDS -->
  {{ with .Site.GetPage "/" }}
    {{ with .OutputFormats.Get "rss" -}}
      {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
    {{ end -}}
  {{ end }}
  {{ with .Site.GetPage "/" }}
    {{ with .OutputFormats.Get "jsonfeed" -}}
      {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
    {{ end -}}
  {{ end }}


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

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