From f2a5eb6dc20bfb9fb084671fadc11156232375b5 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 1 Jun 2020 13:22:28 +0200 Subject: Use Zola translation system to translate more prompt. --- config.toml | 13 ++++++++++++- templates/index.html | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 66db5ff..4343b80 100644 --- a/config.toml +++ b/config.toml @@ -12,11 +12,22 @@ compile_sass = true highlight_code = true # Whether to build a search index to be used later on by a JavaScript library -build_search_index = true +# build_search_index = true taxonomies = [ { name = "tags", rss = true }, ] +languages = [ + { code = "nb", feed = true }, + { cdoe = "en", feed = true }, +] + +default_language = "nb" + +[translations] +nb = { moreprompt = "Les mer..." } +en = { moreprompt = "More..." } + [extra] # Put all your custom variables here diff --git a/templates/index.html b/templates/index.html index 7857f0d..b1bf5ee 100644 --- a/templates/index.html +++ b/templates/index.html @@ -36,7 +36,7 @@ -- cgit v1.2.3