Initial Hugo website

main
drebs 2023-12-30 13:24:10 -03:00
parent ed8e84850c
commit 1225e3ad28
7 changed files with 83 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
public/

6
Makefile Normal file
View File

@ -0,0 +1,6 @@
build:
rm -rf public/*
hugo
sync: build
rsync --delete -vrz ./public/ 44203.server-1:/srv/44203.net/

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

52
config.toml Normal file
View File

@ -0,0 +1,52 @@
baseURL = 'http://44203.net/'
languageCode = 'pt-br'
title = '44203.net'
theme = "smol"
defaultContentLanguage = "pt"
[languages]
[languages.pt]
contentDir = 'content'
languageName = 'Português'
weight = 1
# Parameters
[params]
subtitle = "Documentação sobre minha atividade online"
dateFmt = "02.01.2006 15:04"
# Header
[menu]
[[menu.main]]
identifier = "posts"
name = "Publicações"
url = "/posts/"
weight = 1
[[menu.main]]
identifier = "categories"
name = "Categorias"
url = "/categories/"
weight = 2
[[menu.main]]
identifier = "tags"
name = "Tags"
url = "/tags/"
weight = 3
# Footer
# [[menu.footer]]
# name = "Github"
# url = "https://github.com/example"
# weight = 1
#
# [[menu.footer]]
# name = "Mastodon"
# url = "https://example.com/@user"
# weight = 2
#
# [[menu.footer]]
# name = "Imprint"
# url = "/imprint"
# weight = 3

2
i18n/pt/pt.yaml Normal file
View File

@ -0,0 +1,2 @@
start:
other: Início

View File

@ -0,0 +1,16 @@
<header>
{{ strings.Repeat ( .Site.Title | len | add 6 ) "=" }}<br>
== <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> ==<br>
{{ strings.Repeat ( .Site.Title | len | add 6 ) "=" }}
<div style="float: right;">{{ .Site.Params.subtitle }}</div><br>
<p>
<nav>
<a href="/"><b>{{ i18n "start" }}</b></a>.
{{ with .Site.Menus.main }}
{{ range . }}
<a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a>.
{{ end }}
</nav>
</p>
{{ end }}
</header>

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB