| Port fzakaria.com design to Hugo and add a homepage profile 1bdbd06 Romain Gautier yesterday | 1 | <!doctype html> |
| 2 | <html lang="{{ site.Language.Lang }}"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <meta name="color-scheme" content="light dark"> |
| 7 | <meta name="theme-color" content="#f5f2ec" media="(prefers-color-scheme: light)"> |
| 8 | <meta name="theme-color" content="#15171a" media="(prefers-color-scheme: dark)"> |
| 9 | |
| 10 | <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }} · {{ site.Title }}{{ end }}</title> |
| 11 | {{- /* |
| 12 | Priority: this page's own front matter > an explicit site-wide |
| 13 | params.description override > params.profile.bio, stripped of markdown |
| 14 | down to plain text. Set params.description only when the SEO snippet |
| 15 | should say something different from the colophon bio; otherwise bio is |
| 16 | the single source of truth for both. |
| 17 | */}} |
| 18 | {{- $desc := .Description }} |
| 19 | {{- if not $desc }}{{ $desc = site.Params.description }}{{ end }} |
| 20 | {{- if not $desc }}{{ with site.Params.profile.bio }}{{ $desc = . | markdownify | plainify }}{{ end }}{{ end }} |
| 21 | {{ with $desc -}} |
| 22 | <meta name="description" content="{{ . }}"> |
| 23 | {{- end }} |
| 24 | |
| 25 | <!-- Fonts are self-hosted, so there is no third-party DNS + TLS before first paint. --> |
| 26 | <link rel="preload" href="/fonts/Newsreader-latin.woff2" as="font" type="font/woff2" crossorigin> |
| 27 | <link rel="preload" href="/fonts/JetBrainsMono-Regular.woff2" as="font" type="font/woff2" crossorigin> |
| 28 | {{ with resources.Get "css/style.scss" }} |
| 29 | {{ $opts := dict "transpiler" "dartsass" "outputStyle" "compressed" }} |
| 30 | {{ with . | toCSS $opts }} |
| 31 | <link rel="stylesheet" type="text/css" href="{{ .RelPermalink }}"> |
| 32 | {{ end }} |
| 33 | {{ end }} |
| 34 | |
| 35 | <link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="{{ "index.xml" | absURL }}"> |
| 36 | {{ block "head" . }}{{ end }} |
| 37 | </head> |
| 38 | <body> |
| 39 | <a class="skip-link" href="#main">Skip to content</a> |
| 40 | <div class="wrap"> |
| 41 | {{ partial "masthead.html" . }} |
| 42 | <main id="main">{{ block "main" . }}{{ end }}</main> |
| 43 | {{ partial "site-foot.html" . }} |
| 44 | </div> |
| 45 | </body> |
| 46 | </html> |