# Render-link.html not firing from .RenderString

**URL:** <https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602>\
**Category:** support\
**Created:** [April 10, 2020, 2:34am UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602 "2020-04-10T02:34:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitchdennett](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mitchdennett](https://discourse.gohugo.io/u/mitchdennett)\
**Post date:** [April 10, 2020, 2:34am UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/1 "2020-04-10T02:34:42Z")

</div>

{{ readFile “SUMMARY.md” | .RenderString }} doesn’t seem to be firing the render-link.html hook.

Need Help.

**EDITED**

Added a test repo to help describe my problem

> **[mitchdennett/TestHugo](https://github.com/mitchdennett/TestHugo)**
>
> Repo For Hugo Support. Contribute to mitchdennett/TestHugo development by creating an account on GitHub.

  
I recreated this problem in a git repo.

If you look in Sidebar.html in themes/hugo-whisper-theme/layouts/partials I’m reading a file and doing .RenderString. my render-hook doesn’t seem to be getting called when calling `hugo` Look at the index.html in the v1.5 folder that gets generated and the resulting sidebar has no `div`

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 10, 2020, 9:06am UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/2 "2020-04-10T09:06:49Z")

</div>

Please read [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132)

---

<div class="post-metadata">

**Author:** ![mitchdennett](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mitchdennett](https://discourse.gohugo.io/u/mitchdennett)\
**Post date:** [April 10, 2020, 1:44pm UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/3 "2020-04-10T13:44:59Z")

</div>

Fair Enough. I will get a git repo to recreate this.

---

<div class="post-metadata">

**Author:** ![mitchdennett](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mitchdennett](https://discourse.gohugo.io/u/mitchdennett)\
**Post date:** [April 10, 2020, 2:12pm UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/4 "2020-04-10T14:12:28Z")

</div>

> **[mitchdennett/TestHugo](https://github.com/mitchdennett/TestHugo)**
>
> Repo For Hugo Support. Contribute to mitchdennett/TestHugo development by creating an account on GitHub.

  
I recreated this problem in a git repo.

If you look in Sidebar.html in themes/hugo-whisper-theme/layouts/partials I’m reading a file and doing .RenderString. my render-hook doesn’t seem to be getting called when calling `hugo` Look at the index.html in the v1.5 folder that gets generated and the resulting sidebar has no `div`

---

<div class="post-metadata">

**Author:** ![mitchdennett](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mitchdennett](https://discourse.gohugo.io/u/mitchdennett)\
**Post date:** [April 10, 2020, 2:27pm UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/5 "2020-04-10T14:27:00Z")

</div>

It does work when running `hugo server` but not when building the site using `hugo`

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [April 10, 2020, 2:40pm UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/6 "2020-04-10T14:40:44Z")

</div>

> [@mitchdennett](#):
>
> {{ readFile “SUMMARY.md” | .RenderString }}

Not commenting on your actual problem, but I would just bypass it and use GetPage. Store your markdown in headless bundles/sections or something.

---

<div class="post-metadata">

**Author:** ![mitchdennett](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mitchdennett](https://discourse.gohugo.io/u/mitchdennett)\
**Post date:** [April 10, 2020, 3:15pm UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/7 "2020-04-10T15:15:08Z")

</div>

So that works! Thanks. There does still seem to be an issue with the .RenderString but i can bypass it. So I’m good. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [April 12, 2020, 3:15pm UTC](https://discourse.gohugo.io/t/render-link-html-not-firing-from-renderstring/24602/8 "2020-04-12T15:15:12Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
