summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.toml13
-rw-r--r--templates/index.html2
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 @@
<footer>
{% if post.content | length > post.summary | length %}
<a href="{{ post.permalink }}">
- {% if post.lang == 'en' %}More...{% else %}Les mer...{% endif %}
+ {{ trans(key="moreprompt", lang=post.lang) }}
</a>
{% endif %}
</footer>