Added chinese version link

This commit is contained in:
fechin committed 2022-12-22 18:21:54 +08:00
1 parent d0198c688c
commit 75f335711a
1 file changed
+5 -4
+5 -4
View File
@@ -12,11 +12,12 @@
<div class="hidden md:block flex-shrink-0 mx-auto block mt-8 md:mx-8 max-w-xs">
<%- partial('index/logo', {icon: false}) %>
<h4 class="mt-5 text-sm text-slate-500"><%- config.description %>.</h4>
<% if (site.posts.filter(post => post.layout === "note").length > 0) { %>
<div class="share mt-4">
<div class="share mt-4">
<a href="/zh-CN/">中文版</a>
<% if (site.posts.filter(post => post.layout === "note").length > 0) { %>
<a href="/notes">#Notes</a>
</div>
<% } %>
<% } %>
</div>
<div class="share mt-8">
<%- partial('_partial/share', {extra: ""}) %>
</div>