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.

47 lines
1.8 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="viewport" content="width=device-width, initial-scale=1">
  14. <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css"> -->
  15. <link rel='stylesheet' href='//cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack-subset.css'>
  16. <!-- <link rel="stylesheet" href="https://meyerweb.com/eric/tools/css/reset/reset.css" type="text/css" media="all" /> -->
  17. <!-- <link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css"> -->
  18. {{ $main_sass := resources.Get "sass/main.scss" }}
  19. {{ $main_style := $main_sass | resources.ToCSS }}
  20. <link rel="stylesheet" href="{{ $main_style.RelPermalink }}" type="text/css">
  21. <!-- <title>
  22. {{ $isHomePage := eq .Title .Site.Title }}
  23. {{ .Title }}
  24. {{ if eq $isHomePage false }} -
  25. {{ .Site.Title }}
  26. {{ end }}</title> -->
  27. <title>
  28. {{ .Site.Title }} &nbsp;&nbsp;~{{ .Page.RelPermalink }}
  29. </title>
  30. </head>
  31. <body>
  32. <!-- <header>
  33. <div class="container clearfix">
  34. [><a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a><]
  35. <a class="path" href="{{ .Site.BaseURL }}">[~]</a>
  36. <span class="caret"># _</span>
  37. <div class="right">
  38. {{ range $i, $page := (where .Site.Pages "Section" "pages") }}
  39. {{ if not (eq $i 0) }}|{{ end }}
  40. <a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
  41. {{ end }}
  42. </div>
  43. </div>
  44. </header> -->
  45. <div class="container">