about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHuy-Ngo <duchuy29092000@gmail.com>2021-01-13 13:55:35 +0700
committerHuy-Ngo <duchuy29092000@gmail.com>2021-01-13 13:58:22 +0700
commita9df87e25f1073fedff8e31c53307f3d0899e68b (patch)
treec763892140e178c944b038fb231e770fcd3ab622
parente92a1a5ecaa833c915359f7137892b5c11ef7f8a (diff)
downloadblog-a9df87e25f1073fedff8e31c53307f3d0899e68b.tar.gz
Do not show translation if there is no translations
-rw-r--r--_layouts/post.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index f0c2207..58474b8 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -33,6 +33,7 @@ layout: default
       {%- endif -%}</p>
   </header>
 
+  {% if postsTrans.size != 1 %}
   {{ page.available }}:
   <div class="lang">
     <ul>
@@ -50,6 +51,9 @@ layout: default
   </div>
 
   <hr>
+
+  {% endif %}
+
   <div class="post-content e-content" itemprop="articleBody">
     {{ content }}
   </div>