mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Start adding support for translations
This commit is contained in:
@@ -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" }
|
||||
|
||||
7
blog/content/second-edition/posts/_index.zh.md
Normal file
7
blog/content/second-edition/posts/_index.zh.md
Normal file
@@ -0,0 +1,7 @@
|
||||
+++
|
||||
title = "Posts"
|
||||
sort_by = "weight"
|
||||
insert_anchor_links = "left"
|
||||
render = false
|
||||
page_template = "second-edition/page.html"
|
||||
+++
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user