head.html 2.57 KB
Newer Older
Sylvain Kerkour's avatar
Sylvain Kerkour committed
1
<head>
Sylvain Kerkour's avatar
head  
Sylvain Kerkour committed
2 3 4 5 6 7 8 9
  <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" />
Sylvain Kerkour's avatar
Sylvain Kerkour committed
10 11


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

Sylvain Kerkour's avatar
Sylvain Kerkour committed
15

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

  <!-- <meta name="twitter:card" property="twitter:card" content="summary_large_image"> -->
Sylvain Kerkour's avatar
Sylvain Kerkour committed
24 25
  <meta name="twitter:url" property="twitter:url" content="{{ .Site.BaseURL }}">
  <meta name="twitter:title" property="twitter:title" content="{{ .Site.Title }}">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
26
  <meta name="twitter:description" property="twitter:description" content="{{ .Site.Params.Description }}">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
27
  <meta name="twitter:image" property="twitter:image" content="{{ .Site.BaseURL }}/imgs/og_image.jpg">
Sylvain Kerkour's avatar
ehader  
Sylvain Kerkour committed
28

Sylvain Kerkour's avatar
Sylvain Kerkour committed
29
  <link rel="alternate" hreflang="en-us" href="{{ $.Site.BaseURL }}" />
Sylvain Kerkour's avatar
Sylvain Kerkour committed
30 31 32
  <link rel="alternate" hreflang="x-default" href="{{ $.Site.BaseURL }}" />


Sylvain Kerkour's avatar
head  
Sylvain Kerkour committed
33
  <!-- FEEDS -->
Sylvain Kerkour's avatar
Sylvain Kerkour committed
34 35
  {{ with .Site.GetPage "/" }}
    {{ with .OutputFormats.Get "rss" -}}
Sylvain Kerkour's avatar
rss  
Sylvain Kerkour committed
36
      {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
Sylvain Kerkour's avatar
Sylvain Kerkour committed
37 38
    {{ end -}}
  {{ end }}
Sylvain Kerkour's avatar
Sylvain Kerkour committed
39 40 41 42 43
  {{ 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 }}
Sylvain Kerkour's avatar
rss  
Sylvain Kerkour committed
44

Sylvain Kerkour's avatar
head  
Sylvain Kerkour committed
45 46

  <!-- CSS -->
Sylvain Kerkour's avatar
Sylvain Kerkour committed
47
  <link rel="stylesheet" href="{{ "css/bootstrap.min.css" | relURL }}">
Sylvain Kerkour's avatar
Sylvain Kerkour committed
48
  <style>
Sylvain Kerkour's avatar
Sylvain Kerkour committed
49 50 51 52 53 54
    {{ with resources.Get "sass/theme.scss" | toCSS | minify }}
      {{ .Content | safeCSS }}
    {{ end }}
    {{ with resources.Get "sass/style.scss" | toCSS | minify }}
      {{ .Content | safeCSS }}
    {{ end }}
Sylvain Kerkour's avatar
Sylvain Kerkour committed
55
  </style>
Sylvain Kerkour's avatar
head  
Sylvain Kerkour committed
56 57 58 59 60 61 62 63


  <!-- TITLE -->
  {{ if .IsHome -}}
    <title>{{ .Site.Title }}</title>
  {{- else -}}
    <title>{{ .Site.Title }} - {{ .Title }}</title>
  {{- end }}
Sylvain Kerkour's avatar
Sylvain Kerkour committed
64
</head>