30 lines
1002 B
HTML
30 lines
1002 B
HTML
|
|
{{- $title := cond .IsHome .Site.Title (printf "%s | %s" .Title .Site.Title) -}}
|
||
|
|
{{- $desc := .Description | default .Summary | default .Site.Params.description | plainify | truncate 160 -}}
|
||
|
|
|
||
|
|
<meta charset="utf-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
|
|
||
|
|
<title>{{ $title }}</title>
|
||
|
|
<meta name="description" content="{{ $desc }}">
|
||
|
|
<meta name="author" content="{{ .Site.Params.author }}">
|
||
|
|
|
||
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
||
|
|
|
||
|
|
{{/* Theme */}}
|
||
|
|
<meta name="theme-color" content="#0a0a0a">
|
||
|
|
<meta name="color-scheme" content="dark">
|
||
|
|
|
||
|
|
{{/* Favicon */}}
|
||
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||
|
|
|
||
|
|
{{/* RSS */}}
|
||
|
|
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ "index.xml" | absURL }}">
|
||
|
|
|
||
|
|
{{/* Robots */}}
|
||
|
|
{{- $robots := "index, follow" -}}
|
||
|
|
{{- if .Params.noindex -}}
|
||
|
|
{{- $robots = "noindex, nofollow" -}}
|
||
|
|
{{- end -}}
|
||
|
|
<meta name="robots" content="{{ $robots }}">
|