head.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7 ]><html class="no-js ie6"><![endif]-->
  3. <!--[if IE 7 ]><html class="no-js ie7"><![endif]-->
  4. <!--[if IE 8 ]><html class="no-js ie8"><![endif]-->
  5. <!--[if IE 9 ]><html class="no-js ie9"><![endif]-->
  6. <!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
  7. <head {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}>
  8. <meta charset="utf-8">
  9. <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
  10. <meta http-equiv="X-UA-Compatible" content="IE=10" />
  11. <title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
  12. {{ .Hugo.Generator }}
  13. {{ with .Site.Params.description }}
  14. <meta name="description" content="{{ . }}">
  15. {{ end }}
  16. <link rel="canonical" href="{{ .Permalink }}">
  17. {{ with .Site.Params.author }}
  18. <meta name="author" content="{{ . }}">
  19. {{ end }}
  20. <meta property="og:url" content="{{ .Permalink }}">
  21. {{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
  22. {{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
  23. {{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
  24. <meta name="apple-mobile-web-app-capable" content="yes">
  25. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  26. <link rel="shortcut icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
  27. <link rel="icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
  28. <style>
  29. @font-face {
  30. font-family: 'Icon';
  31. src: url('{{ "fonts/icon.eot?52m981" | absURL }}');
  32. src: url('{{ "fonts/icon.eot?#iefix52m981" | absURL }}')
  33. format('embedded-opentype'),
  34. url('{{ "fonts/icon.woff?52m981" | absURL }}')
  35. format('woff'),
  36. url('{{ "fonts/icon.ttf?52m981" | absURL }}')
  37. format('truetype'),
  38. url('{{ "fonts/icon.svg?52m981#icon" | absURL }}')
  39. format('svg');
  40. font-weight: normal;
  41. font-style: normal;
  42. }
  43. </style>
  44. <link rel="stylesheet" href="{{ "stylesheets/application.css" | absURL }}">
  45. <link rel="stylesheet" href="{{ "stylesheets/temporary.css" | absURL }}">
  46. <link rel="stylesheet" href="{{ "stylesheets/palettes.css" | absURL }}">
  47. <link rel="stylesheet" href="{{ with .Site.Params.highlight_css }}{{ . | absURL }}{{ else }}{{ "stylesheets/highlight/highlight.css" | absURL }}{{ end }}">
  48. {{/* set default values if no custom ones are defined */}}
  49. {{ $text := or .Site.Params.font.text "Roboto" }}
  50. {{ $code := or .Site.Params.font.code "Roboto Mono" }}
  51. <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ $text }}:400,700|{{ replace $code " " "+" | safeURL }}">
  52. <style>
  53. body, input {
  54. font-family: '{{ $text }}', Helvetica, Arial, sans-serif;
  55. }
  56. pre, code {
  57. font-family: '{{ $code }}', 'Courier New', 'Courier', monospace;
  58. }
  59. </style>
  60. {{ range .Site.Params.custom_css }}
  61. <link rel="stylesheet" href="{{ . | absURL }}">
  62. {{ end }}
  63. <script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
  64. {{ with .RSSLink }}
  65. <link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
  66. <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
  67. {{ end }}
  68. </head>
  69. <body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">