Skip to content

New Language #278

Answered by razonyang
Ljukic12 asked this question in Q&A
Discussion options

You must be logged in to vote

Assumed that you followed the installation guide.

I recommend copying the content/en for getting to start, because this theme requires some predefined pages for turning their features on, such as search, archive, offline etc.

cp -r content/en content/it

And then put the following configurations in config/_default/languages.toml.

[it]
  languageName = "Italian"
  weight = 2
  contentDir = "content/it"
  [it.params] # override the default parameters
    dateFormat = "02-01-2006"
    description = "Site description"
    keywords = "Site keywords"
    # ...

Now, you can access your new language page after restarting hugo server or rebuilding your site. http://localhost:1313/it/ by default.

T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by razonyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants