mennake / thematic

Automatically exported from code.google.com/p/thematic
0 stars 0 forks source link

thematic_tag_query() not outputting correctly #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When browsing a single tag archive page, the page title - both the actual page 
title and the h1.page_title - will not display the name of the tag, i.e. "Tag 
archives:  " instead of "Tag archives: tag1". It seems like 
thematic_tag_query() is not returning anything.

I have poked around a bit more, and found that if two or more tags are 
specified ( as in example.com/tag/tag1+tag2+tag3 ) the last tag in the query is 
always cut off. In this case the output becomes "Tag archives: tag1 + tag2 + ". 
The operator is still there, but not the last tag. Hence, if there is only one 
tag in the query, then nothing is returned.

Original issue reported on code.google.com by invistr...@gmail.com on 30 Mar 2011 at 8:06

GoogleCodeExporter commented 9 years ago
I think I found the problem. The function was not taking to account the case 
when a tag is not followed by a separator  - i.e. if it is the last tag or the 
only tag. Added a simple else clause to address that.

Original comment by invistr...@gmail.com on 14 Jul 2011 at 8:28

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed with r775

Original comment by chris.gossmann@googlemail.com on 1 Sep 2011 at 3:00