Fork of @spf13's port of Mdo's excellent theme to Hugo https://brendan.abolivier.bzh/

head.html 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}>
  3. <head>
  4. <link href="http://gmpg.org/xfn/11" rel="profile">
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  6. {{ .Hugo.Generator }}
  7. <!-- Enable responsiveness on mobile devices-->
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
  9. {{ if .IsHome -}}
  10. <title>{{ .Site.Title }}</title>
  11. <meta name="description" content="{{ .Site.Params.description }}" />
  12. <meta property="og:title" content="{{ .Site.Title }}" />
  13. <meta property="og:description" content="{{ .Site.Params.description }}" />
  14. <meta property="og:type" content="website" />
  15. {{- else -}}
  16. <title>{{ .Title }} &middot; {{ .Site.Title }}</title>
  17. <meta name="description" content="{{ .Description }}" />
  18. <meta property="og:title" content="{{ .Title }} &middot; {{ .Site.Title }}" />
  19. <meta property="og:description" content="{{ .Description }}" />
  20. <meta property="og:type" content="article" />
  21. <meta property="article:published_time" content="{{ .PublishDate }}" />
  22. {{- end }}
  23. {{ if .Params.thumbnail -}}
  24. <meta property="og:image" content="{{ .Site.BaseURL }}images{{ .Params.thumbnail }}"/>
  25. {{- end }}
  26. <meta name="author" content="{{ .Site.Params.author }}" />
  27. <meta name="identifier-url" content="{{ .Site.BaseURL }}" />
  28. <meta property="og:site_name" content="{{ .Site.Title }}"/>
  29. <meta property="og:url" content="{{ .Permalink }}"/>
  30. <!-- CSS -->
  31. <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
  32. <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
  33. <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
  34. <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
  35. <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/fonts/font.css">
  36. <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/fontawesome-all.min.css">
  37. <!-- Icons -->
  38. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
  39. <link rel="shortcut icon" type="image/png" href="/favicon.png">
  40. <!-- RSS -->
  41. <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
  42. </head>