Skip to content

Commit

Permalink
fix: issue 678 default content language (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine authored Feb 9, 2025
1 parent 8513c34 commit 915c756
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions v4/exampleSite/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
title = "My cool new Blog"
title = "My Cool New Blog"
baseURL = "https://example.com/"

[module]
[[module.imports]]
# Option 1 (recommended): adding the theme as a Hugo module
path = "github.com/Lednerb/bilberry-hugo-theme/v4"

# Options 2 and 3: cloning/copying the theme files
# path = "bilberry-hugo-theme/v4"

# Generate the robots.txt file for SEO
enableRobotsTXT = true

Expand All @@ -18,6 +10,14 @@ defaultContentLanguage = "en"
# Enable / Disable comments on the articles via Disqus.
disqusShortname = ""

[module]
[[module.imports]]
# Option 1 (recommended): adding the theme as a Hugo module
path = "github.com/Lednerb/bilberry-hugo-theme/v4"

# Options 2 and 3: cloning/copying the theme files
# path = "bilberry-hugo-theme/v4"

[params]
# Custom CSS/JS modules that will be imported by the template.
# Files are relative to the static/ directory or a URL.
Expand Down Expand Up @@ -171,7 +171,7 @@ disqusShortname = ""
weight = 1
[languages.de]
weight = 2
title = "Mein cooler neuer Blog"
title = "Mein Cooler Neuer Blog"
[languages.de.params]
subtitle = "Hallo Welt! Dies ist der epischste Untertitel aller Zeiten."

Expand Down
14 changes: 5 additions & 9 deletions v4/tests/exampleSite/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
title = "My cool new Blog"
baseURL = "https://example.com/"

[module]
[[module.imports]]
path = "bilberry-hugo-theme/v4"

# Generate the robots.txt file for SEO
enableRobotsTXT = true

Expand All @@ -14,9 +10,9 @@ defaultContentLanguage = "en"
# Enable / Disable comments on the articles via Disqus.
disqusShortname = "bilberry-hugo-theme"

# Enable / Disable open link with a new tab.
[blackfriday]
hrefTargetBlank = false
[module]
[[module.imports]]
path = "bilberry-hugo-theme/v4"

[params]
# Custom CSS / JS modules that will be imported by the template.
Expand All @@ -28,7 +24,7 @@ disqusShortname = "bilberry-hugo-theme"

enableLightDarkTheme = true

# Description and meta data for the search engines
# Description and metadata for the search engines
author = "Lednerb"
description = "Bilberry Premium Theme for Hugo."
keywords = "blog,personal,responsive,search,font awesome,pages,posts,multilingual,syntax highlighting,premium,shortcuts"
Expand Down Expand Up @@ -141,7 +137,7 @@ disqusShortname = "bilberry-hugo-theme"
ID = ''

# customize your available languages for your multilingual site
# or delete the [languages] blog to use the theme with only one supported language
# or delete the [languages.xx] block to use the theme with only one supported language
[languages]
[languages.en]
weight = 1
Expand Down

0 comments on commit 915c756

Please sign in to comment.