HUGO

Custom CSS file for each language

Hello, how can I make a custom css file for each language?

You could try what I did for this multilingual site (10 languages):

  • Localize your CSS file with localized strings (into assets folder)
  • Use adequately resources.ExecuteAsTemplate

See source for the above cited site:

See also: Is it possible to use translations in assets?

Merry Christmas :mrs_claus: :christmas_tree:

That’s amazing! thanks Nicolas,
do you know what comment system this website is using? https://www.safarnevesht.com/en/

Merry Christmas :christmas_tree:

You have already asked this question over here

When opening a topic please keep the discussion On Topic.

Thank you.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.