Last active
November 24, 2018 04:16
-
-
Save gizalink/9c6e2e491c857a1d5ca1c7830b43a24a to your computer and use it in GitHub Desktop.
Đặt file hoặc tạo file vào folder snipset của theme. Sau đó các bạn vào file theme.liquid thay đổi {{ current_tags | join: ', ' }} thành {% include 'tag-post-title' %}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign url_tag = canonical_url | split: '/' %} | |
{% assign tagged = url_tag.last%} | |
{% for tag in current_tags %} | |
{% assign tag2 = tag | handleize %} | |
{% if tag2 == tagged %} | |
{{tag}} | |
{% break %} | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment