# Modify TopicExcerpt template?

**URL:** <https://meta.discourse.org/t/modify-topicexcerpt-template/352136>\
**Category:** Development\
**Created:** [February 13, 2025, 7:12pm UTC](https://meta.discourse.org/t/modify-topicexcerpt-template/352136 "2025-02-13T19:12:52Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)\
**Post date:** [February 13, 2025, 8:35pm UTC](https://meta.discourse.org/t/modify-topicexcerpt-template/352136/10 "2025-02-13T20:35:38Z")

</div>

> [@merefield](#):
>
> for the expandPinned, maybe replicate the logic

Yeah that’s the path i was going down. Which also means replicating

```plaintext
  get useMobileLayout() {
    return applyValueTransformer(
      "topic-list-item-mobile-layout",
      this.site.mobileView,
      { topic: this.args.outletArgs.topic }
    );
  }
  //and from discovery/topics.js
  get expandGloballyPinned() {
    !this.expandAllPinned();
  }
  get expandAllPinned() {
    const category = this.discovery.category?.id
    const tag = this.discovery.tag?.id
    return category || tag;
  }

```

I was hoping pleading to the gods might produce a cleaner option 🙏 😅

---

_[View the full topic](https://meta.discourse.org/t/modify-topicexcerpt-template/352136)._
