Comments (7)
@UltraCoderRU thanks for the description of the multilingual homepage issue. The smooth scroll in this case is probably easy to fix with Javascript, but ideally we want a website with URLs like /#about
for default language and /ru/#about
for Russian version, for example. I'll add it to the to-do list above and try to fix it sometime.
from wowchemy-hugo-themes.
@UltraCoderRU I just tried putting the [params]
variables under [languages.X]
and it works. It seems that Hugo allows you to put both the core Hugo variables like title = "My blog"
and the Academic [params]
variables (like name = "My name in Russian"
) under the [languages.X]
configuration section. I think that the Hugo team could perhaps have chosen a more logical way to declare the multilingual parameters, but it works!
The following works:
[Languages.ru]
# General Hugo configuration
copyright = "My copyright in Russian"
title = "My Russian blog"
# Academic's `[params]` configuration
name = "My Russian name"
role = "Professor of Russian"
organization = "My University's name in Russian"
from wowchemy-hugo-themes.
I know, there is no official multilingual support yet, but I found some issue with navigation. If I rename widget.md
to widget.<lang>.md
in content directory (for example. about.md
to about.en.md
) navigation doesn't work, because <section>
id changes. If I change links in config.toml
(for example, url = "#about.en"
, smooth scroll doesn't work. :)
from wowchemy-hugo-themes.
@UltraCoderRU Multilingual support just improved a lot with update b99e5a1 😃
Multilingual support added for:
- homepage widget system (fixes your navigation/widget problem)
- navigation bar links (fixes your navigation/widget problem)
- 'more posts/publications/talks' links in widgets
Please let me know your feedback when you have a chance to test it.
from wowchemy-hugo-themes.
@gcushen Thanks, now navigation works correctly. But I found another issue: variables redefinition in [languages.X.params]
in config.toml
doesn't work.
from wowchemy-hugo-themes.
@gcushen Yes, it works that way. Seems like Hugo team created a possibility of name collisions. :)
from wowchemy-hugo-themes.
@UltraCoderRU Yes, I assume it's a bug in Hugo, but I haven't searched their Github issues for it. I hope you don't find any name collisions 😆
from wowchemy-hugo-themes.
Related Issues (20)
- fix docs: list_children missing? HOT 1
- highlight self name in authors list when importing from bibtex HOT 3
- All three map providers supported by Hugo are not available in China HOT 1
- Dark mode breaks highlighting lines in code blocks HOT 8
- Problem with deployment on GitHub Pages (Node.js 16) HOT 1
- filter will not work on hugo v0.123.7 HOT 1
- Add Google Scholar expected meta tags to publication pages HOT 2
- Add slider to gallery block HOT 1
- HUGO language HOT 1
- The latest version will cause an error when building when following the tutorial for configuration. HOT 1
- Build with Hugo, `publish.yaml` failing HOT 1
- `cite` short code usage in the documentation causing an error HOT 1
- People Widget HOT 2
- Non functional fields in `academic-cv` HOT 1
- Author formatting in tailwind publications HOT 2
- Need to improve the clarity of the avatar and provide a size option HOT 3
- Added color options for the gray font on the home page background HOT 1
- Port `author_notes` feature from Bootstrap to Tailwind module
- Let the user choose Katex or Mathjax HOT 1
- What is the template used on the documention site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wowchemy-hugo-themes.