mirror of
https://github.com/gmemstr/blog.gabrielsimmer.com.git
synced 2024-09-20 04:01:09 +01:00
c8ed961e17
Still some work to do, but basic content is here.
34 lines
1.6 KiB
HTML
34 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ $.Site.LanguageCode | default "en" }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
|
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
|
{{ hugo.Generator }}
|
|
{{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
|
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
|
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
|
|
{{ else }}
|
|
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
|
|
{{ end }}
|
|
|
|
{{ if .OutputFormats.Get "RSS" }}
|
|
{{ with .OutputFormats.Get "RSS" }}
|
|
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
|
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
|
{{ end }}
|
|
{{ end }}
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🏳️🌈</text></svg>">
|
|
<link rel="stylesheet" href="/css/styles.css">
|
|
</head>
|
|
|
|
<body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
|
|
<main>
|
|
{{ block "main" . }}{{ end }}
|
|
</main>
|
|
|
|
</body>
|
|
</html>
|