1
0

baseof.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
  7. {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
  8. {{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
  9. {{ template "_internal/twitter_cards.html" . }}
  10. {{ template "_internal/opengraph.html" . }}
  11. <base href="{{ .Permalink }}">
  12. <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
  13. <link rel="canonical" href="{{ .Permalink }}">
  14. <link href="https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700" rel="stylesheet">
  15. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css" integrity="sha256-oSrCnRYXvHG31SBifqP2PM1uje7SJUyX0nTwO2RJV54=" crossorigin="anonymous" />
  17. {{ if .Site.IsServer }}
  18. {{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
  19. {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }}
  20. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  21. {{ else }}
  22. {{ $cssOpts := (dict "targetPath" "css/coder.css" ) }}
  23. {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
  24. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  25. {{ end }}
  26. {{ if .Site.Params.rtl }}
  27. {{ if .Site.IsServer }}
  28. {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }}
  29. {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }}
  30. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  31. {{ else }}
  32. {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" ) }}
  33. {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | minify | fingerprint }}
  34. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  35. {{ end }}
  36. {{ end }}
  37. {{ if .Site.Params.inverted }}
  38. {{ if .Site.IsServer }}
  39. {{ $cssOpts := (dict "targetPath" "css/coder-inverted.css" "enableSourceMap" true ) }}
  40. {{ $styles := resources.Get "scss/coder-inverted.scss" | resources.ExecuteAsTemplate "style.coder-inverted.css" . | toCSS $cssOpts }}
  41. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  42. {{ else }}
  43. {{ $cssOpts := (dict "targetPath" "css/coder-inverted.css" ) }}
  44. {{ $styles := resources.Get "scss/coder-inverted.scss" | resources.ExecuteAsTemplate "style.coder-inverted.css" . | toCSS $cssOpts | minify | fingerprint }}
  45. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  46. {{ end }}
  47. {{ end }}
  48. {{ range .Site.Params.custom_css }}
  49. <link rel="stylesheet" href="{{ . | relURL }}">
  50. {{ end }}
  51. <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
  52. <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
  53. {{ range .AlternativeOutputFormats -}}
  54. {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
  55. {{ end -}}
  56. {{ .Hugo.Generator }}
  57. </head>
  58. <body class="{{ if .Site.Params.rtl }}rtl{{ end }} {{ if .Site.Params.inverted }}inverted{{ end }}">
  59. <main class="wrapper">
  60. {{ partial "header.html" . }}
  61. <div class="content">
  62. {{ block "content" . }}{{ end }}
  63. </div>
  64. {{ partial "footer.html" . }}
  65. </main>
  66. {{ template "_internal/google_analytics.html" . }}
  67. </body>
  68. </html>