header.html (1523B)
1 <!DOCTYPE html> 2 <html lang="{{ .Site.LanguageCode }}"> 3 <head> 4 <title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title> 5 <link rel="stylesheet" type="text/css" href="/index.css"> 6 <link rel="icon" type="image/webp" href="/p/pic.webp"> 7 8 {{ if or .Params.noindex (eq .Kind "404") }} 9 <meta name="robots" content="noindex, nofollow"> 10 {{ else }} 11 <meta name="robots" content="index, follow"> 12 {{ end }} 13 14 {{ $desc := "Ave, meu nome é Sivaldo Davi e este é meu site na internet." }} 15 {{ with .Params.descricao }}{{ $desc = . }}{{ end }} 16 {{ if and (not .Params.descricao) (not .IsHome) }} 17 {{ with .Summary }}{{ $desc = . | plainify | truncate 160 }}{{ end }} 18 {{ end }} 19 <meta name="description" content="{{ $desc }}"> 20 <meta name="author" content="Sivaldo Davi"> 21 22 <meta property="og:type" content="website"> 23 <meta property="og:title" content="{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}"> 24 <meta property="og:description" content="{{ $desc }}"> 25 <meta property="og:image" content="{{ if .Params.capa }}{{ .Params.capa | absURL }}{{ else }}{{ "/p/pic.webp" | absURL }}{{ end }}"> 26 <meta property="og:url" content="{{ .Permalink }}"> 27 <meta name="twitter:card" content="summary"> 28 29 <meta name="viewport" content="width=device-width, initial-scale=1"> 30 <meta charset="utf-8"> 31 </head> 32 <body> 33