# Tags page rendering problem

**URL:** <https://forum.ghost.org/t/tags-page-rendering-problem/41060>\
**Category:** Themes\
**Created:** [September 8, 2023, 2:04pm UTC](https://forum.ghost.org/t/tags-page-rendering-problem/41060 "2023-09-08T14:04:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iero](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@iero](https://forum.ghost.org/u/iero)\
**Post date:** [September 8, 2023, 2:04pm UTC](https://forum.ghost.org/t/tags-page-rendering-problem/41060/1 "2023-09-08T14:04:46Z")

</div>

Hello ghosts,

I try to create a “tags page” [like this one](https://penang.aspirethemes.com/tags/)

So I used my index.hbs and tag.hbs page as an example to create [my own tags page](https://blog.iero.org/tags/). My theme is based on an old Casper version, 2 or 3 years old.

As you see, are rendering correctly, but I have some remaining` <a/>` between

```
`<a class="post-card-content-link" href="/tag/france/"></a>`

```

Here is my tags.hbs file:

```auto
{{!< default}}
        
<section class="outer">
    <div class="inner posts">
        <div class="post-feed">
                {{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
                {{#foreach tags visibility="public"}}
                        {{> "tag-card"}}
                {{/foreach}}
                {{/get}}
       </div>       
    </div>          
</section>

```

And the partials/tag-card.hbs :

```auto
{{!-- This is a partial file used to generate a tag "card"
which templates loop over to generate a list of tags. --}}
                
<article class="post-card {{post_class}} {{#is "home"}}{{#if feature_image}}{{#has index="0"}}post-card-large{{/has}}{{/if}}{{/is}}">
                        
    {{#if feature_image}}
    <a class="post-card-image-link" href="{{url}}">
        {{!-- This is a responsive image, it loads different sizes depending on device
        https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
        <img class="post-card-image"
            srcset="{{img_url feature_image size="s"}} 300w,
                    {{img_url feature_image size="m"}} 600w,
                    {{img_url feature_image size="l"}} 1000w,
                    {{img_url feature_image size="xl"}} 2000w"
            sizes="(max-width: 1000px) 400px, 800px"
            src="{{img_url feature_image size="m"}}"
            alt="{{title}}"
            loading="lazy"
        />
    </a>
    {{/if}}

    <div class="post-card-content">

        <footer class="post-card-meta">
        <a class="post-card-content-link" href="{{url}}">
            <div class="post-card-byline-content">
                <span class="post-card-byline-date">
                        {{name}}
                        {{plural count.posts empty='posts' singular='(% post)' plural='(% posts)'}}
                </span>
            </div>
        </footer>

    </div>{{!--/.post-card-content--}}

</article>

```

Any idea why ?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [September 8, 2023, 3:33pm UTC](https://forum.ghost.org/t/tags-page-rendering-problem/41060/2 "2023-09-08T15:33:06Z")

</div>

> [@iero](#):
>
> ```auto
> <footer class="post-card-meta">
> <a class="post-card-content-link" href="{{url}}">
> <div class="post-card-byline-content">
> <span class="post-card-byline-date">
> {{name}}
> {{plural count.posts empty='posts' singular='(% post)' plural='(% posts)'}}
> </span>
> </div>
> </footer>
> 
> ```

You’re missing the closing `</a>` tag after your `</div>` here.

---

<div class="post-metadata">

**Author:** ![iero](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@iero](https://forum.ghost.org/u/iero)\
**Post date:** [September 8, 2023, 4:49pm UTC](https://forum.ghost.org/t/tags-page-rendering-problem/41060/3 "2023-09-08T16:49:00Z")

</div>

Awesome, thanks Kevin, it works perfectly now !
