about summary refs log tree commit diff
path: root/_layouts
diff options
context:
space:
mode:
authorHuy-Ngo <duchuy29092000@gmail.com>2021-01-12 12:57:04 +0700
committerHuy-Ngo <duchuy29092000@gmail.com>2021-01-12 12:57:04 +0700
commitdc1f56397374e9cf03b92d0c436f3c0e3080879f (patch)
tree6a104ec03e276907eddc742ac63295bd60e72610 /_layouts
parent1680076b36a580623164d9e63e2e8c2da951f270 (diff)
downloadblog-dc1f56397374e9cf03b92d0c436f3c0e3080879f.tar.gz
Remove current language and show text in appropriate language
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/post.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 4b7e5a6..e387299 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -33,10 +33,17 @@ layout: default
       {%- endif -%}</p>
   </header>
 
+  {{ page.available }}:
   <div class="lang">
     <ul>
       {% for post in postsTrans %}
-      <li><a class="{{ post.lang }}" href="{{ site.base-url }}{{ post.url }}">{{ post.lang }}</a></li>
+      {% if post.lang != page.lang %}
+      <li>
+        <a class="{{ post.lang }}" href="{{ site.base-url }}{{ post.url }}">
+          {{ post.link-str }}
+        </a>
+      </li>
+      {% endif %}
       {% endfor %}
     </ul>
   </div>