hugo-future-imperfect
hugo-future-imperfect copied to clipboard
Please, fully translatable Via Config.toml
Currently {BLOG, CATEGORIES, ABOUT} are translatable via Config file.
May you use shortcodes for others too, such as: 'Recent Posts', 'View More Posts', ... .
Hi onrea, can you provide more information? I'm not exactly sure what you have in mind.
# Set up your menu items in the navigation bar
# You can use identifier to prepend a font awesome icon to your text
[[menu.main]]
name = "AAAA"
url = "/blog"
identifier = "fa fa-newspaper-o"
weight = 1
[[menu.main]]
name = "BBBB"
url = "/categories"
weight = 2
[[menu.main]]
name = "CCCC"
url = "/about"
weight = 3
As you see I have replaced Blog
with AAAA
in above snippet.
We can replace Blog word with a native translation. There are some other phrases that are not translatable via config file. We should edit layout/*.html files that makes it hard to keep up-to-date the theme by your theme as upstream.
I personally do not agree with this suggested change. Let's use Wordpress as a base here. It is a blogging engine like Hugo and it does not let you customize every piece of text in the theme. This would cause a ton of bloat.
Instead I recommend you make your own fork of the theme with your own customizations to various text elements.
@jpescador decision.
Best,
Hey onrea, I agree with what Nic is saying here. However, I do understand the inconvenience of not being able to edit text such as the titles in the sidebar: Recent Posts, Categories, About. Therefore, I will look into this when time permits and I believe, Data Files, https://gohugo.io/extras/datafiles/ can be utilized for this kind of issue. Thanks
Would be solved with the implementation of #39.