baseof.html 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. <base href="{{ .Permalink }}">
  10. <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
  11. <link rel="canonical" href="{{ .Permalink }}">
  12. <link href="https://fonts.googleapis.com/css?family=Lato:400,700|Merriweather:300,700|Source+Code+Pro:400,700" rel="stylesheet">
  13. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous" />
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css" integrity="sha256-oSrCnRYXvHG31SBifqP2PM1uje7SJUyX0nTwO2RJV54=" crossorigin="anonymous" />
  15. {{ if .Site.IsServer }}
  16. {{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
  17. {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }}
  18. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  19. {{ else }}
  20. {{ $cssOpts := (dict "targetPath" "css/coder.css" ) }}
  21. {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
  22. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  23. {{ end }}
  24. {{ if .Site.Params.rtl }}
  25. {{ if .Site.IsServer }}
  26. {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }}
  27. {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }}
  28. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  29. {{ else }}
  30. {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" ) }}
  31. {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | minify | fingerprint }}
  32. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  33. {{ end }}
  34. {{ end }}
  35. {{ if .Site.Params.inverted }}
  36. {{ if .Site.IsServer }}
  37. {{ $cssOpts := (dict "targetPath" "css/coder-inverted.css" "enableSourceMap" true ) }}
  38. {{ $styles := resources.Get "scss/coder-inverted.scss" | resources.ExecuteAsTemplate "style.coder-inverted.css" . | toCSS $cssOpts }}
  39. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
  40. {{ else }}
  41. {{ $cssOpts := (dict "targetPath" "css/coder-inverted.css" ) }}
  42. {{ $styles := resources.Get "scss/coder-inverted.scss" | resources.ExecuteAsTemplate "style.coder-inverted.css" . | toCSS $cssOpts | minify | fingerprint }}
  43. <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
  44. {{ end }}
  45. {{ end }}
  46. {{ range .Site.Params.custom_css }}
  47. <link rel="stylesheet" href="{{ . | absURL }}">
  48. {{ end }}
  49. <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
  50. <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
  51. {{ if .RSSLink }}
  52. <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
  53. <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
  54. {{ end }}
  55. {{ .Hugo.Generator }}
  56. </head>
  57. <body class="{{ if .Site.Params.rtl }}rtl{{ end }} {{ if .Site.Params.inverted }}inverted{{ end }}">
  58. <main class="wrapper">
  59. {{ partial "header.html" . }}
  60. <div class="content">
  61. {{ block "content" . }}{{ end }}
  62. </div>
  63. {{ partial "footer.html" . }}
  64. </main>
  65. {{ template "_internal/google_analytics.html" . }}
  66. </body>
  67. </html>