layouts: experiment with other pages and add i18n keys to landing page
TODO: move these parts into partials (lol), so we can have a bit more control for footer, headers, navigations, etc
Pedro Lucas Porcellis porcellis@eletrotupi.com · 9 months ago
05917584f287b65f7d47cc8a6b0117b57dfdcc17 Browse filesParents
958e324Changed files
2
Additions
+80
Deletions
-9
layouts/_default/baseof.html
1 1
<!DOCTYPE html>
2 2
<html lang="{{ .Site.Language.Lang }}">
3 3
<head>
4 4
<meta charset="utf-8">
5 5
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
24 24
<img class="logo__type" src="/images/cabotia.png" alt="A stylezed cabotiá pumpkin, cabotiá logo">
25 25
</a>
26 26
</div>
27 27
28 28
<nav>
29 -
<a href="/">sobre</a>
30 -
<a href="/work">trabalhos</a>
31 -
<a href="/posts">blog</a>
32 -
<a href="mailto:contact@cabotia.dev">contato</a>
29 +
<a href="/">
30 +
{{ i18n "nav.about" | safeHTML }}
31 +
</a>
32 +
<a href="/work">
33 +
{{ i18n "nav.work" | safeHTML }}
34 +
</a>
35 +
<a href="/posts">
36 +
{{ i18n "nav.blog" | safeHTML }}
37 +
</a>
38 +
<a href="mailto:contact@cabotia.dev">
39 +
{{ i18n "nav.contact" | safeHTML }}
40 +
</a>
33 41
</nav>
34 42
</header>
43 +
35 44
<main>
36 45
{{ block "main" . }}{{ end }}
37 46
</main>
47 +
38 48
<footer>
39 49
<div>
40 -
© {{ time.Now.Year }} cabotiá
50 +
© {{ time.Now.Year }} · cabotiá
41 51
</div>
42 52
43 53
<div class="links">
44 54
<a href="https://git.sr.ht/~porcellis/cabotia.dev">
45 -
código-fonte
46 -
</a>,
55 +
{{ i18n "footer.code" | safeHTML }}
56 +
</a>,
47 57
48 58
<a href="https://git.sr.ht/~porcellis/cabotia.dev/tree/main/item/LICENSE">
49 -
licença
59 +
{{ i18n "footer.license" | safeHTML }}
50 60
</a>
51 61
</div>
52 62
53 63
<div class="fine-line">
54 -
cabotiá é uma empresa registrada no Brasil, com o CNPJ 64.947.407/0001-03
64 +
{{ i18n "footer.fine_line" | safeHTML }}
55 65
</div>
56 66
</footer>
57 67
</body>
58 68
</html>
/dev/null → layouts/_default/single.html
1 +
<!DOCTYPE html>
2 +
<html lang="{{ .Site.Language.Lang }}">
3 +
<head>
4 +
<meta charset="utf-8">
5 +
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6 +
<meta name="description" content="{{ .Summary | default .Params.summary }}">
7 +
8 +
<title>{{ .Title }}</title>
9 +
10 +
{{ $style := resources.Get "main.scss" | css.Sass | resources.Minify | resources.Fingerprint }}
11 +
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
12 +
13 +
{{ range .AlternativeOutputFormats -}}
14 +
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
15 +
{{ end -}}
16 +
17 +
{{ template "_internal/opengraph.html" . }}
18 +
</head>
19 +
20 +
<body>
21 +
<header>
22 +
<div class="logo">
23 +
<a href="{{ .Site.BaseURL | relLangURL }}">
24 +
<img class="logo__type" src="/images/cabotia.png" alt="A stylezed cabotiá pumpkin, cabotiá logo">
25 +
</a>
26 +
</div>
27 +
28 +
<nav>
29 +
<a href="/">sobre</a>
30 +
<a href="/work">trabalhos</a>
31 +
<a href="/posts">blog</a>
32 +
<a href="mailto:contact@cabotia.dev">contato</a>
33 +
</nav>
34 +
</header>
35 +
<main>
36 +
{{ block "main" . }}
37 +
<h1> {{ .Title }}</h1>
38 +
{{ .Content }}
39 +
{{ end }}
40 +
</main>
41 +
<footer>
42 +
<div>
43 +
© {{ time.Now.Year }} cabotiá
44 +
</div>
45 +
46 +
<div class="links">
47 +
<a href="https://git.sr.ht/~porcellis/cabotia.dev">
48 +
código-fonte
49 +
</a>,
50 +
51 +
<a href="https://git.sr.ht/~porcellis/cabotia.dev/tree/main/item/LICENSE">
52 +
licença
53 +
</a>
54 +
</div>
55 +
56 +
<div class="fine-line">
57 +
{{ i18n "footer.fine_line" | safeHTML }}
58 +
</div>
59 +
</footer>
60 +
</body>
61 +
</html>