Start adding support for translations

This commit is contained in:
Philipp Oppermann
2019-11-26 15:49:46 +01:00
parent e9361e74e8
commit 55a45c7673
3 changed files with 18 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ highlight_code = true
highlight_theme = "visual-studio-dark"
generate_rss = true
languages = [
{ code = "zh" }, # Chinese
]
[extra]
subtitle = "Philipp Oppermann's blog"
author = { name = "Philipp Oppermann" }

View File

@@ -0,0 +1,7 @@
+++
title = "Posts"
sort_by = "weight"
insert_anchor_links = "left"
render = false
page_template = "second-edition/page.html"
+++

View File

@@ -35,6 +35,13 @@
</div>
{% endif %}
{% if page.lang != "en" %}
<div class="warning">
<b>Translated Content</b>
This page was translated from english. TODO
</div>
{% endif %}
{{ page.content | replace(from="<!-- toc -->", to=macros::toc(toc=page.toc)) | safe }}
<div class="post-footer-support">