diff options
| author | Sivaldo <git@sivaldodavi.com> | 2026-06-29 18:36:52 -0300 |
|---|---|---|
| committer | Sivaldo <git@sivaldodavi.com> | 2026-06-29 18:36:52 -0300 |
| commit | dd7670cf72b27c1b330d3732a483ca22e3a3db18 (patch) | |
| tree | 16d4e458d93cd7181d4ebc950ed406b45038f53b /layouts/partials/header.html | |
Commit inicial
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 33 |
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> + |
