Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ public/
resources/
.DS_Store
.cache/
hugo_stats.json
tmp-screenshots/
92 changes: 92 additions & 0 deletions assets/scss/common/_custom.scss
Original file line number Diff line number Diff line change
@@ -1 +1,93 @@
// Put your custom SCSS code here

// Fix word-breaking in definition lists
dl.row {
dt {
word-break: normal;
hyphens: none;
overflow-wrap: normal;
}

dd {
word-break: normal;
hyphens: none;
overflow-wrap: break-word;
}
}

// Ensure proper spacing in card bodies
.card-body {
dl {
dt, dd {
word-break: normal;
}
}
}

// Improve responsive spacing
.section {
padding-top: 2rem;
padding-bottom: 2rem;

@media (min-width: 768px) {
padding-top: 3rem;
padding-bottom: 3rem;
}
}

// Better card spacing and hover effects
.card {
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;

&:hover {
transform: translateY(-2px);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
}

// Improve heading spacing
h1, h2, h3, h4, h5, h6 {
margin-top: 1.5rem;
margin-bottom: 1rem;
}

// Better list group styling
.list-group-item {
border-left: 3px solid transparent;
transition: border-color 0.2s ease-in-out;

&:hover {
border-left-color: var(--bs-primary);
}
}

// Improve button spacing
.btn {
margin-right: 0.5rem;
margin-bottom: 0.5rem;

&:last-child {
margin-right: 0;
}
}

// Better badge styling
.badge {
margin-right: 0.25rem;
margin-bottom: 0.25rem;
padding: 0.35rem 0.65rem;
font-weight: 500;

&:last-child {
margin-right: 0;
}
}

// Improve responsive navigation
@media (max-width: 767px) {
.navbar-nav {
.nav-item {
margin-bottom: 0.5rem;
}
}
}
2 changes: 1 addition & 1 deletion config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ copyRight = "FACODI — Conteúdo aberto para aprendizagem comunitária"
tag = "tags"

[permalinks]
courses = "/courses/:sections[1:]/"
course = "/courses/:slug/"
Comment on lines 45 to +46

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve course code when generating permalinks

Changing the permalink rule from courses = "/courses/:sections[1:]/" to course = "/courses/:slug/" removes the course code from generated URLs. For content bundles under content/pt/courses/<code>/<plan>/index.md Hugo now emits /courses/<plan>/ by default, so two different courses that share a plan version will collide and later builds will override or shadow pages unless every file defines a manual url. The previous rule automatically included both nested sections (LESTI/2024-2025) and avoided clashes. Consider keeping the hierarchical sections in the permalink pattern or adding the course code to the template to prevent duplicate URLs when new courses are added.

Useful? React with 👍 / 👎.


[pagination]
pagerSize = 12
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus/menus.en.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[main]]
name = "Courses"
url = "/"
url = "/en/"
weight = 10

[[footer]]
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus/menus.es.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[main]]
name = "Cursos"
url = "/"
url = "/es/"
weight = 10

[[footer]]
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus/menus.fr.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[main]]
name = "Cours"
url = "/"
url = "/fr/"
weight = 10

[[footer]]
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus/menus.pt.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[main]]
name = "Cursos"
url = "/"
url = "/pt/"
weight = 10

[[footer]]
Expand Down
1 change: 1 addition & 0 deletions content/pt/courses/LESTI/2024-2025/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ seo:
description: "Plano curricular, unidades curriculares e recursos multimédia."
type: course
layout: course
url: /pt/courses/LESTI/2024-2025/
---

## Visão Geral
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- "pilhas"
type: topic
layout: topic
url: /pt/courses/LESTI/2024-2025/uc/LESTI-ALG1/estruturas-de-dados/
---

As estruturas de dados definem como a informação é organizada na memória e determinam o desempenho dos algoritmos que as manipulam.
Expand Down
1 change: 1 addition & 0 deletions content/pt/courses/LESTI/2024-2025/uc/LESTI-ALG1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ topics:
- slug: "estruturas-de-dados"
type: uc
layout: uc
url: /pt/courses/LESTI/2024-2025/uc/LESTI-ALG1/
---

## Ementa
Expand Down
1 change: 0 additions & 1 deletion hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
"mt-1",
"mx-2",
"mx-auto",
"my-3",
"nav-item",
"nav-link",
"navbar",
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion static/js/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@

function getClient() {
if (!window.facodi || !window.facodi.supabase) {
console.warn('[FACODI] Cliente Supabase indisponível.');
// Only warn in development mode
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
console.info('[FACODI] Cliente Supabase indisponível (modo desenvolvimento).');
}
return null;
}
return window.facodi.supabase;
Expand Down
5 changes: 4 additions & 1 deletion static/js/supabaseClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
}

if (!url || !anonKey) {
console.warn('[FACODI] Variáveis SUPABASE_URL ou SUPABASE_ANON_KEY não configuradas.');
// Only warn in development mode (when accessing via localhost)
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
console.info('[FACODI] Supabase não configurado (modo desenvolvimento). Conteúdo dinâmico não será carregado.');
}
return;
}

Expand Down