47 lines
1.8 KiB
HTML
47 lines
1.8 KiB
HTML
<!-- Basic stuff -->
|
|
<meta charset="utf-8">
|
|
<meta name="HandheldFriendly" content="True">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="referrer" content="no-referrer-when-downgrade">
|
|
|
|
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
|
<meta name="description" content="{{ .Site.Params.Description }}">
|
|
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
{{ end -}}
|
|
|
|
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | absURL }}">
|
|
<link rel="apple-touch-icon-precomposed" href="{{ "favicon.png" | absURL }}">
|
|
|
|
<link rel="stylesheet" href="{{ "css/style.css" | absURL }}?rnd={{ now.Unix }}" />
|
|
|
|
{{- $style := "light" -}}
|
|
{{- if and (isset site.Params "style") (ne site.Params.style "") -}}
|
|
{{- $style = site.Params.style | lower -}}
|
|
{{- end -}}
|
|
|
|
{{- if eq $style "dark" -}}
|
|
<link rel="stylesheet" href="{{ "css/dark.css" | absURL }}?rnd={{ now.Unix }}" />
|
|
{{- else -}}
|
|
<link rel="stylesheet" href="{{ "css/light.css" | absURL }}?rnd={{ now.Unix }}" />
|
|
{{- end -}}
|
|
|
|
{{ range .Site.Params.customCSS -}}
|
|
<link rel="stylesheet" href="{{ . | absURL }}?rnd={{ now.Unix }}">
|
|
{{- end }}
|
|
|
|
{{ template "_internal/opengraph.html" . }}
|
|
{{ template "_internal/twitter_cards.html" . }}
|
|
|
|
<!-- Article tags -->
|
|
<!-- <meta property="article:published_time" content="">
|
|
<meta property="article:modified_time" content="">
|
|
<meta property="article:tag" content="">
|
|
<meta property="article:publisher" content="https://www.facebook.com/XXX"> -->
|
|
|
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
{{ end }}
|
|
|
|
{{ partial "head-extra.html" . }} |