# Shortcodes and build order?

**URL:** <https://discourse.gohugo.io/t/shortcodes-and-build-order/57654>\
**Category:** support\
**Tags:** shortcodes\
**Created:** [October 12, 2026, 3:34pm UTC](https://discourse.gohugo.io/t/shortcodes-and-build-order/57654 "2026-10-12T15:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pgadey](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pgadey/32/23984_2.png) [@pgadey](https://discourse.gohugo.io/u/pgadey)\
**Post date:** [October 12, 2026, 10:25pm UTC](https://discourse.gohugo.io/t/shortcodes-and-build-order/57654/4 "2026-10-12T22:25:30Z")

</div>

Yup! This worked in the end.

Initially, it really slowed down the build time from 20s to +10min. I don’t even know if the whole thing would have built eventually because I killed the process after +10min.

After that, I added a bit of logic to narrow down the scope of `.Site.Pages` and possible prevent an infinite loop. I don’t know if an infinite loop of `.Content` was the issue or not but the added logic seems to have fixed things. My website now renders in the usual ~20s.

```c
{{ $here := .Page.Permalink }}

{{ range (where .Site.Pages ".Section" "in" (slice "notes" "blog" "main")) }}
    {{ if ne .Permalink $here }}
        {{ $noop := .Content }}
    {{ end }}
{{ end }}

```

And now, both the bibliography and bookmarks pages render fine.

- [Bibliography | Parker Adey](https://pgadey.ca/bibliography/)
- [Bookmarks | Parker Adey](https://pgadey.ca/bookmarks/)

Thanks so much!

---

_[View the full topic](https://discourse.gohugo.io/t/shortcodes-and-build-order/57654)._
