summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorSivaldo <git@sivaldodavi.com>2026-06-29 18:36:52 -0300
committerSivaldo <git@sivaldodavi.com>2026-06-29 18:36:52 -0300
commitdd7670cf72b27c1b330d3732a483ca22e3a3db18 (patch)
tree16d4e458d93cd7181d4ebc950ed406b45038f53b /layouts/partials
Commit inicial
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html10
-rw-r--r--layouts/partials/header.html33
-rw-r--r--layouts/partials/navbar.html17
3 files changed, 60 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..8d9cf58
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,10 @@
+<footer>
+ <div class="footer-left">
+ Since 2026 | <a href="https://codeberg.org/sivaldodavi">Source (Git)</a>
+ </div>
+ <div class="footer-right">
+ GPL 3.0 | CC BY-NC-SA 4.0
+ </div>
+</footer>
+</body>
+</html>
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>
+
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
new file mode 100644
index 0000000..83bf631
--- /dev/null
+++ b/layouts/partials/navbar.html
@@ -0,0 +1,17 @@
+<nav class="nav-container {{ if .IsHome }}home-nav{{ else }}post-nav{{ end }}">
+ {{ if .IsHome }}
+ <a href="{{ .Site.BaseURL }}escritos/">escritos</a>
+ <a href="{{ .Site.BaseURL }}leituras/">leituras</a>
+ <a href="{{ .Site.BaseURL }}curriculo/">currículo</a>
+ <a href="{{ .Site.BaseURL }}contact/">contato</a>
+ {{ else }}
+ <div class="centered-post-title">
+ <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ </div>
+ <div class="post-nav-links">
+ <a href="{{ .Site.BaseURL }}escritos/">escritos</a>
+ <a href="{{ .Site.BaseURL }}leituras/">leituras</a>
+ <a href="{{ .Site.BaseURL }}curriculo/">currículo</a>
+ </div>
+ {{ end }}
+</nav>