diff --git a/config.toml b/config.toml index 80ec8ce..e44f2b3 100644 --- a/config.toml +++ b/config.toml @@ -11,5 +11,18 @@ highlight_code = false # Whether to build a search index to be used later on by a JavaScript library build_search_index = false +default_language = 'en' + +languages = [ + {code = "fr"}, +] + +[translations] + [translations.en] + hello = "A title" + + [translations.fr] + hello = "Un titre" + [extra] # Put all your custom variables here diff --git a/templates/base.html b/templates/base.html index b097ffd..73cd5bc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,5 +1,5 @@ - +
diff --git a/templates/index.html b/templates/index.html index 50dcfd8..d85cdae 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,6 +21,9 @@Lemmy is similar to sites like Reddit, Lobste.rs, or Hacker News: you subscribe to communities you're interested in, post links and discussions, then vote and comment on them. Lemmy isn't just a reddit alternative; its a network of interconnected communities ran by different people and organizations, all combining to create a single, personalized front page of your favorite news, articles, and memes.