pessoal

Site pessoal (Hugo)
git clone https://git.sivaldodavi.com.br/pessoal.git
Log | Files | Refs

header.html (1670B)


      1 <!DOCTYPE html>
      2 <html lang="pt-br">
      3     <head>
      4         <title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title>
      5         {{ $style := resources.Get "index.css" | minify | fingerprint }}
      6         <link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
      7         <link rel="icon" type="image/webp" href="/p/pic.webp">
      8 
      9         {{ if or .Params.noindex (eq .Kind "404") }}
     10         <meta name="robots" content="noindex, nofollow">
     11         {{ else }}
     12         <meta name="robots" content="index, follow">
     13         {{ end }}
     14 
     15         {{ $desc := "Site pessoal de Sivaldo Davi: fé cristã, Direito, pesquisa e tecnologia." }}
     16         {{ with .Params.descricao }}{{ $desc = . }}{{ end }}
     17         {{ if and (not .Params.descricao) (not .IsHome) }}
     18             {{ with .Summary }}{{ $desc = . | plainify | truncate 160 }}{{ end }}
     19         {{ end }}
     20         <meta name="description" content="{{ $desc }}">
     21         <meta name="author" content="Sivaldo Davi">
     22 
     23         <meta property="og:type" content="website">
     24         <meta property="og:title" content="{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}">
     25         <meta property="og:description" content="{{ $desc }}">
     26         <meta property="og:image" content="{{ if .Params.capa }}{{ .Params.capa | absURL }}{{ else }}{{ "/p/pic.webp" | absURL }}{{ end }}">
     27         <meta property="og:url" content="{{ .Permalink }}">
     28         <meta name="twitter:card" content="summary">
     29 
     30         <meta name="viewport" content="width=device-width, initial-scale=1">
     31         <meta charset="utf-8">
     32     </head>
     33     <body{{ if .IsHome }} class="hub-body"{{ end }}>