LouisBarranqueiro / hexo-theme-tranquilpeak

:lipstick: A gorgeous responsive theme for Hexo blog framework
https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/
GNU General Public License v3.0
1.85k stars 484 forks source link

tag link in tags page didn't work #321

Closed toughpeter closed 7 years ago

toughpeter commented 8 years ago

Hi LouisBarranqueiro, thanks for your awesome hexo theme! I am using it to build my blog. I found some problem when I use "tag link" in "tags page". This is my first time posting Issues on Github. Please let me know if I can help or I just misunderstood the feature.

The url will became "/all-tags/#animal-list" but the content still the same as "/all-tags".

Expected behavior

Change url to "/all-tags/#animal-list" and shows only the articles which have the "animal" tag in the list

Steps to reproduce the behavior

  1. Go to /all-tags/ page by clicking "tags" link on sidebar
  2. All the tags will be listed under the block of search input
  3. Click one of the tag, let's say "animals"
  4. The url will became "/all-tags/#animal-list" but the content still the same.
LouisBarranqueiro commented 8 years ago

Hey @toughpeter,

It's the normal behavior. When you click on a "tag" button, it goes to the list of posts of this tag. That's why it add and anchor in url. capture d ecran 2016-08-17 a 20 32 38

The link to display only the articles which have a specified tag is at the top of the list of posts capture d ecran 2016-08-17 a 20 32 48