Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Defaultcontentlanguage" makes "content.xx" change refresh not work #8688

Closed
vicevolf opened this issue Jun 22, 2021 · 3 comments
Closed

"Defaultcontentlanguage" makes "content.xx" change refresh not work #8688

vicevolf opened this issue Jun 22, 2021 · 3 comments
Labels

Comments

@vicevolf
Copy link

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.84.0-2C4689F7B+extended windows/amd64 BuildDate=2021-06-18T17:14:27Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

YES


Look like this config i18n:

defaultContentLanguage = "ru"

[languages.ru]
  languageName = 'Russian'
  contentDir = 'content.ru'
  weight = 3

or

defaultContentLanguage = "zh"

[languages.zh]
  languageName = 'Chinese'
  contentDir = 'content.zh'
  weight = 1

Then edit the markdown file under content.ru or content.zh, the browser will refresh, but the web page will not change 😥.

Change detected, rebuilding site.
2021-06-22 22:55:06.934 +0800
Source changed "F:\\Blind\\Documents\\Github-Volf\\fourry\\content.ru\\_index.md": WRITE
Total in 20 ms

Of course, if you edit the config file, it works.

Change of config file detected, rebuilding site.
2021-06-22 23:08:02.936 +0800
…
Rebuilt in 2032 ms

Temporary solutions:

defaultContentLanguage = "ru"

[languages.ru]
  languageName = 'Russian'
  contentDir = 'content'
  weight = 3

This is my Hugo repo: https://github.com/volfclub/fourry , Hugo theme is book.

@vicevolf vicevolf changed the title 🐞 "Defaultcontentlanguage" makes "content" change refresh not work 🐞 "Defaultcontentlanguage" makes "content.xx" change refresh not work Jun 22, 2021
@pamubay
Copy link

pamubay commented Jun 23, 2021

Based on your repo you have this structure:

.
└── root/
    ├── content      # English contentDir
    ├── content.ru  # Russian contentDir
    ├── content.zh  # Chinese contentDir
    └── ...

rename the contentDir directory for English language from content to content.en. Then set the config accordingly:

[languages.en]
  languageName = 'English'
  contentDir = 'content.en'
  weight = 2

I've tested it and it works.

@vicevolf
Copy link
Author

Based on your repo you have this structure:

.
└── root/
    ├── content      # English contentDir
    ├── content.ru  # Russian contentDir
    ├── content.zh  # Chinese contentDir
    └── ...

rename the contentDir directory for English language from content to content.en. Then set the config accordingly:

[languages.en]
  languageName = 'English'
  contentDir = 'content.en'
  weight = 2

I've tested it and it works.

Thx,It Work!🎉

vicevolf added a commit to vicevolf/hugo-book that referenced this issue Jun 23, 2021
Solve this problem:
alex-shpak#352

The Reason:
gohugoio/hugo#8688
@jmooring jmooring changed the title 🐞 "Defaultcontentlanguage" makes "content.xx" change refresh not work "Defaultcontentlanguage" makes "content.xx" change refresh not work Jun 27, 2021
alex-shpak added a commit to alex-shpak/hugo-book that referenced this issue Jul 20, 2021
* 🐞 fix issues 352

Solve this problem:
#352

The Reason:
gohugoio/hugo#8688

* fix issues 362

#362

* Revert "🐞 fix issues 352"

This reverts commit 58f8935.

* Revert "Revert "🐞 fix issues 352""

This reverts commit fa0d46c.

* fix issues 362

* Update columns.html

* Revert "Revert "Revert "🐞 fix issues 352"""

This reverts commit 79777a9.

Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants