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.

59 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. <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css"> -->
  16. <link rel='stylesheet' href='//cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack-subset.css'>
  17. <!-- <link rel="stylesheet" href="https://meyerweb.com/eric/tools/css/reset/reset.css" type="text/css" media="all" /> -->
  18. <!-- <link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css"> -->
  19. {{ $main_sass := resources.Get "sass/main.scss" }}
  20. {{ $main_style := $main_sass | resources.ToCSS }}
  21. <link rel="stylesheet" href="{{ $main_style.RelPermalink }}" type="text/css">
  22. <title>
  23. {{ $isHomePage := eq .Title .Site.Title }}
  24. {{ .Title }}
  25. {{ if eq $isHomePage false }} -
  26. {{ .Site.Title }}
  27. {{ end }}
  28. </title>
  29. <!-- <link rel="shortcut icon" type="image/png" href="imgs/icons/gitlab.png" id="favicon"/> -->
  30. <link rel="apple-touch-icon" sizes="180x180" href="{{ "img/favicon/apple-touch-icon.png" | relURL }}">
  31. <link rel="icon" type="image/png" sizes="32x32" href="{{ "img/favicon/favicon-32x32.png" | relURL }}">
  32. <link rel="icon" type="image/png" sizes="16x16" href="{{ "img/favicon/favicon-16x16.png" | relURL }}">
  33. <link rel="manifest" href="{{ "img/favicon/site.webmanifest" | relURL }}">
  34. <link rel="mask-icon" href="{{ "img/favicon/safari-pinned-tab.svg" | relURL }}" color="#5bbad5">
  35. <meta name="msapplication-TileColor" content="#2b5797">
  36. <meta name="theme-color" content="#ffffff">
  37. <!-- <title>
  38. {{ .Site.Title }} &nbsp;&nbsp;~{{ .Page.RelPermalink }}
  39. </title> -->
  40. </head>
  41. <body>
  42. <!-- <header>
  43. <div class="container clearfix">
  44. [><a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a><]
  45. <a class="path" href="{{ .Site.BaseURL }}">[~]</a>
  46. <span class="caret"># _</span>
  47. <div class="right">
  48. {{ range $i, $page := (where .Site.Pages "Section" "pages") }}
  49. {{ if not (eq $i 0) }}|{{ end }}
  50. <a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
  51. {{ end }}
  52. </div>
  53. </div>
  54. </header> -->
  55. <div class="container">