Skip to content

Commit 2ed526f

Browse files
committed
Template changes
1 parent a2d8d5d commit 2ed526f

File tree

9 files changed

+26
-40
lines changed

9 files changed

+26
-40
lines changed

assets/css/site.css

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,23 @@ a {
5858
min-height: 100%;
5959
display: flex;
6060
flex-direction: column;
61+
}
6162

62-
#site-content {
63-
flex-grow: 1;
64-
}
63+
#site-content {
64+
padding-bottom: 3.5rem;
65+
border-bottom: solid 1px var(--border);
66+
margin-bottom: 1.5rem;
67+
}
6568

66-
#site-footer {
67-
display: flex;
68-
justify-content: space-between;
69-
flex-wrap: wrap;
70-
gap: 0.5rem;
71-
}
69+
#home-inner {
70+
margin-bottom: 2rem;
71+
}
72+
73+
#site-footer {
74+
font-size: 0.8em;
75+
display: flex;
76+
flex-wrap: wrap;
77+
gap: 0.5rem;
7278
}
7379

7480
.nav {
@@ -93,11 +99,7 @@ a {
9399
}
94100

95101
.header {
96-
margin-bottom: 2.5rem;
97-
98-
.title {
99-
margin-bottom: 0.75rem;
100-
}
102+
margin-bottom: 1.5rem;
101103

102104
.subtitle {
103105
font-style: italic;

content/posts/2024/07/hello-world.en.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,4 @@ title: Hello, world!
33
date: 2024-07-01
44
---
55

6-
We couldn't start off differently:
7-
8-
> Hello, world!
9-
10-
This is the first post of this blog. So, welcome.
11-
12-
It'll probably be deleted in the future, though.
6+
First post! :)

content/posts/2024/07/hello-world.pt.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,4 @@ title: Olá, mundo!
33
date: 2024-07-01
44
---
55

6-
Não poderíamos começar diferentemente:
7-
8-
> Olá, mundo!
9-
10-
Este é o primeiro post deste blog. Então, bem-vindo.
11-
12-
Provavelmente será apagado no futuro, todavia.
6+
Primeiro post! :)

hugo.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ languages:
1515
en:
1616
languageCode: en-US
1717
languageName: English
18-
params:
19-
subtitle: Software Engineer and Computer Science Student
2018
pt:
2119
languageCode: pt-BR
2220
languageName: Português
23-
params:
24-
subtitle: SWE e estudante de Ciência da Computação
2521

2622
markup:
2723
highlight:

i18n/en.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
site:
22
home: Home
3-
version: Site version
43

54
page:
65
translations: Translations
7-
improve: Improve this page
6+
improve: improve this page

i18n/pt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ site:
44

55
page:
66
translations: Traduções
7-
improve: Melhore esta página
7+
improve: melhore esta página

layouts/_default/baseof.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
<footer id="site-footer">
4141
<div>
4242
{{ with .GitInfo }}
43-
{{ i18n "site.version" }}
4443
<a href="{{ $.Site.Params.repo.url }}/commit/{{ .Hash }}"
4544
>{{ .AbbreviatedHash }}</a
46-
>.
45+
>
4746
{{ end }}
4847
</div>
4948
{{ block "footer-item" . }}{{ end }}

layouts/_default/home.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ <h1 class="title">{{ .Site.Title }}</h1>
44
<p class="subtitle">{{ .Site.Params.subtitle }}</p>
55
</header>
66

7-
{{ .Content }}
8-
7+
<div id="home-inner">
8+
{{ .Content }}
9+
</div>
910

1011
<div class="posts">
1112
<h3>Posts</h3>

layouts/_default/single.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ <h1 class="title">{{ .Title }}</h1>
1414
{{ end }}
1515

1616
{{ define "footer-item" }}
17+
<div>&middot;</div>
1718
<div>
1819
{{ with .Site.Params.repo }}
1920
<a href="{{ .url }}/blob/{{ .branch }}/content/{{ $.File.Path }}">
2021
{{ i18n "page.improve" }}</a
21-
>.
22+
>
2223
{{ end }}
2324
</div>
2425
{{ end }}

0 commit comments

Comments
 (0)