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.

48 lines
1.9 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.Permalink }}" type="text/css">
  21. <!-- <link rel="stylesheet" href="{{ $main_style | relURL }}" type="text/css"> -->
  22. <!-- <title>
  23. {{ $isHomePage := eq .Title .Site.Title }}
  24. {{ .Title }}
  25. {{ if eq $isHomePage false }} -
  26. {{ .Site.Title }}
  27. {{ end }}</title> -->
  28. <title>
  29. {{ .Site.Title }} &nbsp;&nbsp;~{{ .Page.RelPermalink }}
  30. </title>
  31. </head>
  32. <body>
  33. <!-- <header>
  34. <div class="container clearfix">
  35. [><a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a><]
  36. <a class="path" href="{{ .Site.BaseURL }}">[~]</a>
  37. <span class="caret"># _</span>
  38. <div class="right">
  39. {{ range $i, $page := (where .Site.Pages "Section" "pages") }}
  40. {{ if not (eq $i 0) }}|{{ end }}
  41. <a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
  42. {{ end }}
  43. </div>
  44. </div>
  45. </header> -->
  46. <div class="container">