cabotia / cabotia.dev/ commit / 5d986b1

all: add site icons, title suffixes, and blog empty states

Every page title now carries a suffix, and the site serves a favicon,
fixed grammar and some other faulty stuff all around
Pedro Lucas Porcellis porcellis@eletrotupi.com · 1 month ago 5d986b13949cef9204ed7c135e244bf8b81e3f9f Browse files
Parents a038d85
Changed files
18
Additions
+92
Deletions
-48
assets/main.scss modified+16
assets/main.scss
1 1
@import 'fonts.scss';
2 2

3 3
$font-size-2: 19px;
4 4

5 5
$landing-size-value: 2.2;
338 338
	color: var(--color-muted);
339 339
	font-family: sans-serif;
340 340
	font-size: 0.8rem;
341 341
}
342 342

343 +
.post-translations {
344 +
	margin-top: 2rem;
345 +
	color: var(--color-muted);
346 +
	font-family: sans-serif;
347 +
	font-size: 0.8rem;
348 +
}
349 +

350 +
.empty-state {
351 +
	margin: 2rem 0;
352 +
	padding: 1.5rem;
353 +
	border: 1px dashed var(--color-rule);
354 +
	border-radius: 4px;
355 +
	color: var(--color-muted);
356 +
	text-align: center;
357 +
}
358 +

343 359
.work-intro {
344 360
	margin-bottom: 2.5rem;
345 361
}
346 362

347 363
.work-blurb p {
477 493

478 494
	.header-actions {
479 495
		margin-left: auto;
480 496
	}
481 497
}
content/about.md modified+1 -1
content/about.md
1 1
---
2 2
title: About
3 3
---
4 4

5 -
A page
5 +
A page.
content/posts/post-template.md
1 1
+++
2 2
title = 'Post template'
3 3
date = 2026-10-24
4 4
description = 'A reference post covering the Markdown elements available on the blog.'
5 -
draft = false
5 +
draft = true
6 6
# tags = ['hugo', 'reference']
7 7
# summary = 'Set a custom summary here, otherwise Hugo uses the first paragraph.'
8 8
+++
9 9

10 10
This is a reference post for the elements used on the blog. Replace this
69 69
replace the body with the actual post.
70 70

71 71
The `<!--more-->` marker above the first heading sets the teaser shown on the
72 72
blog index. Without it, Hugo falls back to the first paragraphs or to the
73 73
`summary` value in the front matter.
content/posts/post-template.pt-br.md
1 1
+++
2 2
title = 'Template de post'
3 3
date = 2026-10-24
4 4
description = 'Um post de referência com os elementos Markdown disponíveis no blog.'
5 -
draft = false
5 +
draft = true
6 6
# tags = ['hugo', 'referência']
7 7
# summary = 'Defina um resumo personalizado aqui; caso contrário, o Hugo usa o primeiro parágrafo.'
8 8
+++
9 9

10 10
Este é um post de referência para os elementos usados no blog. Substitua este
69 69
substitua o corpo pelo post real.
70 70

71 71
O marcador `<!--more-->` acima do primeiro título define o resumo exibido no
72 72
índice do blog. Sem ele, o Hugo usa os primeiros parágrafos ou o valor de
73 73
`summary` no front matter.
content/work/_index.pt-br.md
1 1
+++
2 2
title = 'Trabalhos'
3 3
description = 'Projetos selecionados do estúdio.'
4 4
+++
5 5

6 -
Ferramentas pequenas e focadas em como as pessoas realmente trabalham.
6 +
Ferramentas pequenas e focadas na forma como as pessoas realmente trabalham.
content/work/pira.md modified+6 -9
content/work/pira.md
1 1
+++
2 -
title = 'Squash UI'
3 -
description = 'Headless component primitives for dense, data-heavy interfaces.'
2 +
title = 'pira'
3 +
description = 'A small, hand-made Git forge.'
4 4
+++
5 5

6 -
Squash UI is a set of headless component primitives for interfaces that carry a
7 -
lot of data. It provides behaviour and accessibility without imposing a visual
8 -
language, so the same pieces can sit inside a dense operations console or a
9 -
small internal tool.
10 -

11 -
The project started as a shared foundation for the studio's own products and is
12 -
now maintained as a standalone library.
6 +
pira is a Git forge. Not as small as cgit, nor as bulky as GitLab. It started as
7 +
a small research project to replace cgit, and now it is home to tiny, niche
8 +
software projects, including the studio's own software and other kinds of
9 +
projects.
content/work/pira.pt-br.md
1 1
+++
2 -
title = 'Squash UI'
3 -
description = 'Primitivas de componentes headless para interfaces densas e ricas em dados.'
2 +
title = 'pira'
3 +
description = 'Uma pequena plataforma Git artesanal.'
4 4
+++
5 5

6 -
Squash UI é um conjunto de primitivas de componentes headless para interfaces
7 -
que carregam muitos dados. Ele fornece comportamento e acessibilidade sem impor
8 -
uma linguagem visual, então as mesmas peças cabem tanto em um console
9 -
operacional denso quanto em uma pequena ferramenta interna.
10 -

11 -
O projeto começou como uma base compartilhada para os produtos do estúdio e hoje
12 -
é mantido como uma biblioteca independente.
6 +
pira é uma plataforma Git. Não tão pequena quanto o cgit, nem tão pesada quanto
7 +
o GitLab. Começou como um pequeno projeto de pesquisa para substituir o cgit e,
8 +
hoje, abriga pequenos projetos de software de nicho, incluindo o próprio
9 +
software do estúdio e outros tipos de projetos.
data/projects.yaml modified+8 -8
data/projects.yaml
1 -
# Each entry needs a name and a blurb. `blurb`, `tags` and link `label` entries
2 -
# are maps keyed by language. `url` is the primary destination and can be an
3 -
# internal page (e.g. /work/squash-ui/) or an external link. `links` adds
1 +
# Each entry needs a name and a blurb. `blurb`, `tags` and link labels are maps
2 +
# keyed by language. `url` is the primary destination and can be an
3 +
# internal page (e.g. /work/pira/) or an external link. `links` adds
4 4
# secondary destinations such as a repository or a landing page
5 5

6 6
- name: pira
7 7
  blurb:
8 -
    en: A small, hand-made git forge
9 -
    pt-br: Um pequeno, forge do git feito à mão
8 +
    en: A small, hand-made Git forge
9 +
    pt-br: Uma pequena plataforma Git artesanal
10 10
  tags:
11 11
    - en: Go
12 12
      pt-br: Go
13 13
    - en: Alpha
14 14
      pt-br: Alpha
19 19
        pt-br: Código
20 20
      url: https://pira.dev
21 21

22 22
- name: Nexo
23 23
  blurb:
24 -
    en: A privacy-first, open-source Mood Tracker, focused for people with Bipolar Disorder
25 -
    pt-br: Rastreador de humor, com enfasê em privacidade, para pessoas com Transtorno Bipolar
24 +
    en: A privacy-first, open-source mood tracker designed for people with bipolar disorder
25 +
    pt-br: Um rastreador de humor de código aberto e focado em privacidade, para pessoas com transtorno bipolar
26 26
  tags:
27 27
    - en: Android/TS
28 28
      pt-br: Android/TS
29 29
    - en: Beta
30 30
      pt-br: Beta
31 -
    - en: Paper
31 +
    - en: Academic
32 32
      pt-br: Acadêmico
33 33
  url: https://usenexo.xyz
34 34
  links:
35 35
    - label:
36 36
        en: Repository
37 37
        pt-br: Repositório
38 38
      url: https://github.com/pedrolucasp/nexo
hugo.toml modified+3
hugo.toml
1 1
baseURL = 'https://cabotia.dev/'
2 2
defaultContentLanguage = 'en'
3 3
defaultContentLanguageInSubdir = false
4 4
title = 'cabotiá - a small software studio'
5 5

6 +
[params]
7 +
brand = 'cabotiá'
8 +

6 9
[languages]
7 10
  [languages.en]
8 11
    label = 'English'
9 12
    weight = 1
10 13
    title = 'cabotiá - a small software studio'
11 14
  [languages.pt-br]
12 15
    label = 'Português'
13 16
    weight = 2
14 17
    title = 'cabotiá - micro estúdio de desenvolvimento de software'
i18n/en.toml modified+8 -2
i18n/en.toml
1 1
[nav]
2 2
blog = "blog"
3 3
about = "about"
4 4
contact = "contact"
5 5
work = "work"
6 6

7 7
[footer]
8 -
fine_line = "cabotiá is a company registered in Brazil, with the number 64.947.407/0001-03"
8 +
fine_line = "cabotiá is a company registered in Brazil under registration number 64.947.407/0001-03"
9 9
code = "source-code"
10 10
license = "license"
11 11

12 12
[logo]
13 -
alt = "A stylized cabotiá pumpkin, cabotiá logo"
13 +
alt = "A stylized cabotiá pumpkin, the cabotiá logo"
14 14

15 15
[theme]
16 16
to_dark = "Switch to dark theme"
17 17
to_light = "Switch to light theme"
18 18

19 19
[language]
20 20
switcher = "Language"
21 21

22 22
[date]
23 23
format = "2 January 2006"
24 +

25 +
[posts]
26 +
empty = "No posts yet. The first one is on its way."
27 +

28 +
[post]
29 +
translations = "Also available in"
i18n/pt-br.toml modified+7 -1
i18n/pt-br.toml
1 1
[nav]
2 2
blog = "blog"
3 3
about = "sobre"
4 4
contact = "contato"
5 5
work = "trabalhos"
8 8
fine_line = "cabotiá é uma empresa registrada no Brasil, sob o CNPJ 64.947.407/0001-03"
9 9
code = "código-fonte"
10 10
license = "licença"
11 11

12 12
[logo]
13 -
alt = "Uma cabotiá estilizada, logotipo da cabotiá"
13 +
alt = "Logotipo da cabotiá: uma cabotiá estilizada"
14 14

15 15
[theme]
16 16
to_dark = "Mudar para o tema escuro"
17 17
to_light = "Mudar para o tema claro"
18 18

19 19
[language]
20 20
switcher = "Idioma"
21 21

22 22
[date]
23 23
format = "02/01/2006"
24 +

25 +
[posts]
26 +
empty = "Nenhum post ainda. O primeiro está a caminho."
27 +

28 +
[post]
29 +
translations = "Também disponível em"
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">
6 6
		<meta name="description" content="{{ .Description | default (.Summary | plainify) }}">
7 7
		<meta name="color-scheme" content="light dark">
8 8

9 -
		<title>{{ .Title }}</title>
9 +
		<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Params.brand }}{{ end }}</title>
10 +

11 +
		<link rel="icon" href="/favicon.ico" sizes="any">
12 +
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
13 +
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
14 +
		<link rel="apple-touch-icon" href="/apple-touch-icon.png">
10 15

11 16
		<script>
12 17
			(() => {
13 18
				try {
14 19
					const stored = localStorage.getItem('theme');
124 129
				sync();
125 130
			})();
126 131
		</script>
127 132
	</body>
128 133
</html>
layouts/_default/list.html
1 1
{{ define "main" }}
2 2
	{{ $dateFormat := i18n "date.format" }}
3 3
	<h1>{{ .Title }}</h1>
4 4
	{{ .Content }}
5 5

6 -
	{{ range .Pages.ByDate.Reverse }}
7 -
		<article>
8 -
			<h2>
9 -
				<a href="{{ .RelPermalink }}">{{ .Title }}</a>
10 -
			</h2>
6 +
	{{ if .Pages }}
7 +
		{{ range .Pages.ByDate.Reverse }}
8 +
			<article>
9 +
				<h2>
10 +
					<a href="{{ .RelPermalink }}">{{ .Title }}</a>
11 +
				</h2>
11 12

12 -
			{{ if not .Date.IsZero }}
13 -
				<p class="post-meta">
14 -
					<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format $dateFormat }}</time>
15 -
				</p>
16 -
			{{ end }}
13 +
				{{ if not .Date.IsZero }}
14 +
					<p class="post-meta">
15 +
						<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format $dateFormat }}</time>
16 +
					</p>
17 +
				{{ end }}
17 18

18 -
			{{ with .Summary }}
19 -
				<p>{{ . | plainify | truncate 240 }}</p>
20 -
			{{ end }}
21 -
		</article>
19 +
				{{ with .Summary }}
20 +
					<p>{{ . | plainify | truncate 240 }}</p>
21 +
				{{ end }}
22 +
			</article>
23 +
		{{ end }}
24 +
	{{ else if eq .Section "posts" }}
25 +
		<p class="empty-state">{{ i18n "posts.empty" }}</p>
22 26
	{{ end }}
23 27
{{ end }}
layouts/_default/single.html
1 1
{{ define "main" }}
2 2
	{{ $dateFormat := i18n "date.format" }}
3 3
	<article>
4 4
		<h1>{{ .Title }}</h1>
5 5

8 8
				<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format $dateFormat }}</time>
9 9
			</p>
10 10
		{{ end }}
11 11

12 12
		{{ .Content }}
13 +

14 +
		{{ if and (eq .Section "posts") .IsTranslated }}
15 +
			<p class="post-translations">
16 +
				{{ i18n "post.translations" }}:
17 +
				{{ range $i, $translation := .Translations }}
18 +
					{{ if $i }}, {{ end }}
19 +
					<a href="{{ $translation.RelPermalink }}" hreflang="{{ $translation.Language.Lang }}" lang="{{ $translation.Language.Lang }}">{{ $translation.Language.Label }}</a>
20 +
				{{ end }}
21 +
			</p>
22 +
		{{ end }}
13 23
	</article>
14 24
{{ end }}
/dev/null → static/apple-touch-icon.png
Binary file
/dev/null → static/favicon-16x16.png
Binary file
/dev/null → static/favicon-32x32.png
Binary file
/dev/null → static/favicon.ico
Binary file