<script src="/js/speedy.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
+ {{- partialCached "meta.html" . -}}
{{ .Hugo.Generator }}
</head>
<body>
{{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) $sh .Params.header }}
<img src="{{ $ph }}">
<div>
- <p>{{- if not .Page.Params.heading }}
- {{ .Page.Title }}
- {{- else if eq (printf "%T" .Page.Params.heading) "string" }}
- {{ .Page.Params.heading }}
- {{- else }}
- {{- index .Page.Params.heading 0 }}
- {{- if (gt (len .Page.Params.heading) 1) }}
- {{- range after 1 .Page.Params.heading -}}
- <br>
- {{ . }}
- {{- end -}}
- {{- end -}}
- {{- end }}
+ <p>
+ {{- if not .Page.Description }}
+ {{ .Page.Title }}
+ {{- else }}
+ {{ replaceRE "\n\n" "<br>\n" .Page.Description | safeHTML }}
+ {{- end }}
</p>
</div>
</header>