head.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. <script>
  65. // ------------------------------------------------------------
  66. // seedanddew.com integration
  67. var SeedAndDewConfig = {};
  68. (function() {
  69. SeedAndDewConfig['adClass'] = "snd-ad";
  70. /* * * DON'T EDIT BELOW THIS LINE * * */
  71. SeedAndDewConfig['projectId'] = 'd69f3ea2-1e30-44c7-bd2a-87686c0136e6';
  72. SeedAndDewConfig['loadStartTime'] = performance.now();
  73. SeedAndDewConfig['apiVersion'] = '2018-05-28'
  74. SeedAndDewConfig['sessionId'] = Math.random().toString(36).substring(2, 15);
  75. var snd = document.createElement('script');
  76. snd.type = 'text/javascript';
  77. snd.async = true;
  78. snd.src = 'https://www.seedanddew.com/static/embed.min.js';
  79. (document.getElementsByTagName('head')[0] ||
  80. document.getElementsByTagName('body')[0]).appendChild(snd);
  81. })();
  82. // ------------------------------------------------------------
  83. </script>
  84. {{ with .RSSLink }}
  85. <link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
  86. <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
  87. {{ end }}
  88. </head>
  89. <body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">