1
0

baseof.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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="{{ .Site.BaseURL }}">
  10. <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
  11. <link rel="canonical" href="{{ .Permalink }}">
  12. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Mono:400,700">
  13. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" 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.Permalink }}" 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.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
  23. {{ end }}
  24. {{ range .Site.Params.custom_css }}
  25. <link rel="stylesheet" href="{{ . | absURL }}">
  26. {{ end }}
  27. <link rel="icon" type="image/png" href="{{ "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
  28. <link rel="icon" type="image/png" href="{{ "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
  29. {{ if .RSSLink }}
  30. <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
  31. <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
  32. {{ end }}
  33. {{ .Hugo.Generator }}
  34. </head>
  35. <body>
  36. <main class="wrapper">
  37. {{ partial "header.html" . }}
  38. <div class="content">
  39. {{ block "content" . }}{{ end }}
  40. </div>
  41. {{ partial "footer.html" . }}
  42. </main>
  43. {{ template "_internal/google_analytics.html" . }}
  44. </body>
  45. </html>