head.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 }}<meta name="description" content="{{ . }}">{{ end }}
  14. <link rel="canonical" href="{{ .Permalink }}">
  15. {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
  16. <meta property="og:url" content="{{ .Permalink }}">
  17. <meta property="og:type" content="website">
  18. {{ with .Site.Title }}<meta property="og:site_name" content="{{ . }}">{{ end }}
  19. {{ with .Site.Params.description }}<meta property="og:description" content="{{ . }}">{{ end }}
  20. {{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
  21. {{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
  22. <meta name="twitter:card" content="summary">
  23. <meta name="twitter:site" content="@Mahmoud_Zalt">
  24. {{ with .Site.Title }}<meta name="twitter:title" content="{{ . }}">{{ end }}
  25. {{ with .Site.Params.description }}<meta name="twitter:description" content="{{ . }}">{{ end }}
  26. {{ with .Site.Params.logo }}<meta name="twitter:image" content="{{ . | absURL }}">{{ end }}
  27. {{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
  28. <meta name="apple-mobile-web-app-capable" content="yes">
  29. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  30. <link rel="shortcut icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
  31. <link rel="icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
  32. <!-- <link rel="icon" type="image/png" sizes="192x192" href="images/favicons/android-icon-192x192.png">-->
  33. <!-- <link rel="icon" type="image/png" sizes="32x32" href="images/favicons/favicon-32x32.png">-->
  34. <!-- <link rel="icon" type="image/png" sizes="96x96" href="images/favicons/favicon-96x96.png">-->
  35. <!-- <link rel="icon" type="image/png" sizes="16x16" href="images/favicons/favicon-16x16.png">-->
  36. <link rel="apple-touch-icon" sizes="57x57" href="images/favicons/apple-icon-57x57.png">
  37. <link rel="apple-touch-icon" sizes="60x60" href="images/favicons/apple-icon-60x60.png">
  38. <link rel="apple-touch-icon" sizes="72x72" href="images/favicons/apple-icon-72x72.png">
  39. <link rel="apple-touch-icon" sizes="76x76" href="images/favicons/apple-icon-76x76.png">
  40. <link rel="apple-touch-icon" sizes="114x114" href="images/favicons/apple-icon-114x114.png">
  41. <link rel="apple-touch-icon" sizes="120x120" href="images/favicons/apple-icon-120x120.png">
  42. <link rel="apple-touch-icon" sizes="144x144" href="images/favicons/apple-icon-144x144.png">
  43. <link rel="apple-touch-icon" sizes="152x152" href="images/favicons/apple-icon-152x152.png">
  44. <link rel="apple-touch-icon" sizes="180x180" href="images/favicons/apple-icon-180x180.png">
  45. <link rel="manifest" href="images/favicons/manifest.json">
  46. <meta name="msapplication-TileColor" content="#7e57c2">
  47. <meta name="msapplication-TileImage" content="images/favicons/ms-icon-144x144.png">
  48. <meta name="theme-color" content="#7e57c2">
  49. <style>
  50. @font-face {
  51. font-family: 'Icon';
  52. src: url('{{ "fonts/icon.eot?52m981" | absURL }}');
  53. src: url('{{ "fonts/icon.eot?#iefix52m981" | absURL }}')
  54. format('embedded-opentype'),
  55. url('{{ "fonts/icon.woff?52m981" | absURL }}')
  56. format('woff'),
  57. url('{{ "fonts/icon.ttf?52m981" | absURL }}')
  58. format('truetype'),
  59. url('{{ "fonts/icon.svg?52m981#icon" | absURL }}')
  60. format('svg');
  61. font-weight: normal;
  62. font-style: normal;
  63. }
  64. </style>
  65. <link rel="stylesheet" href="{{ "stylesheets/application.css" | absURL }}">
  66. <link rel="stylesheet" href="{{ "stylesheets/temporary.css" | absURL }}">
  67. <link rel="stylesheet" href="{{ "stylesheets/palettes.css" | absURL }}">
  68. <link rel="stylesheet" href="{{ with .Site.Params.highlight_css }}{{ . | absURL }}{{ else }}{{ "stylesheets/highlight/highlight.css" | absURL }}{{ end }}">
  69. {{/* set default values if no custom ones are defined */}}
  70. {{ $text := or .Site.Params.font.text "Roboto" }}
  71. {{ $code := or .Site.Params.font.code "Roboto Mono" }}
  72. <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ $text }}:400,700|{{ replace $code " " "+" | safeURL }}">
  73. <style>
  74. body, input {
  75. font-family: '{{ $text }}', Helvetica, Arial, sans-serif;
  76. }
  77. pre, code {
  78. font-family: '{{ $code }}', 'Courier New', 'Courier', monospace;
  79. }
  80. </style>
  81. {{ range .Site.Params.custom_css }}
  82. <link rel="stylesheet" href="{{ . | absURL }}">
  83. {{ end }}
  84. <script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
  85. {{ with .RSSLink }}
  86. <link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
  87. <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
  88. {{ end }}
  89. </head>
  90. <body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">