-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{{tags}} shows all tags on page even if it is a duplicate #4971
Comments
Hi @Pestov, It's not really clear on first read if you're reporting a bug here, or if you have a question. I have a feeling that you're trying to output a list of all tags for all posts, which is currently not possible (you need to wait for this feature ). However, if you're actually getting duplicates for a single post, then can you please update your issue with a few more details, including an extended code snippet? We have a handy bug template in our contributing guidelines that should help you to know what info to include. |
Hi @ErisDS, For example I have posts and tags for it: Post 1 / HTML, CSS On output I want to get just only 4 tags: HTML, CSS, JS, PHP.
But this code displays HTML, CSS, JS, CSS, PHP, HTML. I won't to display repeating tags. |
Ah ok, then what you're attempting to do is not possible yet. Ghost doesn't support outputting a list of your tags yet. You'll need to wait for the |
For example I have 3 post with one tag for each: Ghost, JavaScript, Ghost. I want to display them on the page and get not repeating result: Ghost (only one) and JavaScript. But after folowing code I get two Ghost tags.
How I can do what I want?
The text was updated successfully, but these errors were encountered: