Skip to content

Instantly share code, notes, and snippets.

@gizalink
Last active November 24, 2018 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gizalink/9c6e2e491c857a1d5ca1c7830b43a24a to your computer and use it in GitHub Desktop.
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' %}
{% 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