Fix: Update syntax highlighting and attempt to fix IsMultilingual

This commit is contained in:
Greg 2025-05-25 17:09:24 +02:00
parent 3d7fa1746b
commit 81467296e7
2 changed files with 6 additions and 5 deletions

View File

@ -10,11 +10,8 @@ DefaultContentLanguage = "en-us" # Explicitly set the default
languageName = "English"
weight = 1
# Enable syntax highlighting
pygmentsCodeFences = true
pygmentsUseClasses = true
# Additional settings
# Theme Parameters
paginate = 10
summaryLength = 30
enableEmoji = true
@ -45,5 +42,9 @@ enableEmoji = true
url = "/post/"
weight = 2
[markup]
[markup.highlight]
noClasses = false # Ensures CSS classes are used for highlighting
# Default publish directory is 'public', which is what Coolify expects for static sites.
# No need to explicitly set publishDir = "public" unless you change it.

View File

@ -42,7 +42,7 @@
<!-- Language Switcher -->
{{ if hugo.IsMultilingual }}
{{ if .Site.IsMultilingual }}
{{ with .AllTranslations }}
<li class="nav-item dropdown">
<button class="p-1 bg-light rounded dropdown-toggle border " data-bs-toggle="dropdown" aria-expanded="false">