summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..c29eabc
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+ <title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title>
+ <link rel="stylesheet" type="text/css" href="/index.css">
+ <link rel="icon" type="image/webp" href="/p/pic.webp">
+
+ {{ if or .Params.noindex (eq .Kind "404") }}
+ <meta name="robots" content="noindex, nofollow">
+ {{ else }}
+ <meta name="robots" content="index, follow">
+ {{ end }}
+
+ {{ $desc := "Ave, meu nome é Sivaldo Davi e este é meu site na internet." }}
+ {{ with .Params.descricao }}{{ $desc = . }}{{ end }}
+ {{ if and (not .Params.descricao) (not .IsHome) }}
+ {{ with .Summary }}{{ $desc = . | plainify | truncate 160 }}{{ end }}
+ {{ end }}
+ <meta name="description" content="{{ $desc }}">
+ <meta name="author" content="Sivaldo Davi">
+
+ <meta property="og:type" content="website">
+ <meta property="og:title" content="{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}">
+ <meta property="og:description" content="{{ $desc }}">
+ <meta property="og:image" content="{{ if .Params.capa }}{{ .Params.capa | absURL }}{{ else }}{{ "/p/pic.webp" | absURL }}{{ end }}">
+ <meta property="og:url" content="{{ .Permalink }}">
+ <meta name="twitter:card" content="summary">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta charset="utf-8">
+ </head>
+ <body>
+