Mobile-responsive personal website, generated using Hugo. https://kevin-mok.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.6 KiB

  1. <!DOCTYPE html>
  2. <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="description" content="{{ if eq .Description "" }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}">
  6. {{- with $.Param "keywords" }}
  7. <meta name="keywords" content="{{ delimit . "," }}">
  8. {{- end }}
  9. {{- with $.Param "author" }}
  10. <meta name="author" content="{{ . }}">
  11. {{- end }}
  12. {{ .Hugo.Generator }}
  13. <meta name="google-site-verification" content="3aZhrY5bFgQY0HY2DNNUhbkuIfVEcwkrQHnbJd8jCCQ" />
  14. <meta name="viewport" content="width=device-width, initial-scale=1">
  15. <script src="http://livejs.com/live.js" charset="utf-8"></script>
  16. <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css"> -->
  17. <link rel='stylesheet' href='//cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack-subset.css'>
  18. <!-- <link rel="stylesheet" href="https://meyerweb.com/eric/tools/css/reset/reset.css" type="text/css" media="all" /> -->
  19. <!-- <link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css"> -->
  20. {{ $main_sass := resources.Get "sass/main.scss" }}
  21. {{ $main_style := $main_sass | resources.ToCSS }}
  22. <link rel="stylesheet" href="{{ $main_style.RelPermalink }}" type="text/css">
  23. <title>
  24. {{ $isHomePage := eq .Title .Site.Title }}
  25. {{ .Title }}
  26. {{ if eq $isHomePage false }} -
  27. {{ .Site.Title }}
  28. {{ end }}
  29. </title>
  30. <!-- <link rel="shortcut icon" type="image/png" href="imgs/icons/gitlab.png" id="favicon"/> -->
  31. <link rel="apple-touch-icon" sizes="180x180" href="{{ "img/favicon/apple-touch-icon.png" | relURL }}">
  32. <link rel="icon" type="image/png" sizes="32x32" href="{{ "img/favicon/favicon-32x32.png" | relURL }}">
  33. <link rel="icon" type="image/png" sizes="16x16" href="{{ "img/favicon/favicon-16x16.png" | relURL }}">
  34. <link rel="manifest" href="{{ "img/favicon/site.webmanifest" | relURL }}">
  35. <link rel="mask-icon" href="{{ "img/favicon/safari-pinned-tab.svg" | relURL }}" color="#5bbad5">
  36. <meta name="msapplication-TileColor" content="#2b5797">
  37. <meta name="theme-color" content="#ffffff">
  38. <!-- <title>
  39. {{ .Site.Title }} &nbsp;&nbsp;~{{ .Page.RelPermalink }}
  40. </title> -->
  41. </head>
  42. <body>
  43. <!-- <header>
  44. <div class="container clearfix">
  45. [><a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a><]
  46. <a class="path" href="{{ .Site.BaseURL }}">[~]</a>
  47. <span class="caret"># _</span>
  48. <div class="right">
  49. {{ range $i, $page := (where .Site.Pages "Section" "pages") }}
  50. {{ if not (eq $i 0) }}|{{ end }}
  51. <a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
  52. {{ end }}
  53. </div>
  54. </div>
  55. </header> -->
  56. <div class="container">