# New Hugo themes resource

**URL:** <https://discourse.gohugo.io/t/new-hugo-themes-resource/21067>\
**Category:** tips & tricks\
**Created:** [October 2, 2019, 10:19am UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067 "2019-10-02T10:19:29Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [October 2, 2019, 10:19am UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/1 "2019-10-02T10:19:29Z")

</div>

See [https://jamstackthemes.dev/ssg/hugo/](https://jamstackthemes.dev/ssg/hugo/)

And that site itself is also built with Hugo.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [October 2, 2019, 11:06am UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/2 "2019-10-02T11:06:04Z")

</div>

This looks like a curated list based on the Hugo Themes website.

From a cursory look on GitHub I saw that @JugglerX is a contributor to this project.

---

<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:** [October 2, 2019, 11:51am UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/3 "2019-10-02T11:51:16Z")

</div>

I had a chat with Rob Austin in a Slack somewhere about it; I didn’t know that the project was built by Hugo, but it’s rather nice. I think the data model is more or less powered by taxonoies. He said he was going to write a blog article about it (and about the “Why Hugo” part).

---

<div class="post-metadata">

**Author:** ![JugglerX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jugglerx/32/8098_2.png) [@JugglerX](https://discourse.gohugo.io/u/JugglerX)\
**Post date:** [October 2, 2019, 12:18pm UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/4 "2019-10-02T12:18:38Z")

</div>

I built [https://jamstackthemes.dev](https://jamstackthemes.dev). Actually I work for [Stackbit.com](http://Stackbit.com) now and this was a side project I led in house there which they loved. I’m really happy I could build it on Hugo. We will have some blog posts coming out in a few days, I’ll drop the link here when its done.

We’d love for Hugo Themes to help in any way on this project. Or I’m open to ideas on how I can help flow through people interested in Hugo back to this site. (I just added links to the each SSG’s official site on the taxonomy pages) -

Hugo was definitely up to the task. But I had to write some additional node scripts to fetch API data at build. This is an area the JS gens might have handled more elegantly and when I recommend Hugo I wish I could provide an option for this use case that remained inside of the Hugo framework. I think Hugo could draw some inspiration from this implementation in 11ty [https://www.11ty.io/docs/quicktips/eliminate-js/](https://www.11ty.io/docs/quicktips/eliminate-js/) - It’s pretty tight.

---

<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:** [October 2, 2019, 12:33pm UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/5 "2019-10-02T12:33:20Z")

</div>

> [@JugglerX](#):
>
> It’s pretty tight.

There are certainly improvements planned in the “API department”, but I suspect 11ty’s Stargazers example could be easily implemented by Hugo’s `getJSON` function.

---

<div class="post-metadata">

**Author:** ![JugglerX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jugglerx/32/8098_2.png) [@JugglerX](https://discourse.gohugo.io/u/JugglerX)\
**Post date:** [October 2, 2019, 12:37pm UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/6 "2019-10-02T12:37:42Z")

</div>

How so? This is an API call that needs to be made using Fetch or Axios and it requires an authorization header with a Github Token. My understanding is getJSON can only fetch public URL’s.

I implemented a similar stargazers call for jamstackthemes, you can see the source here - [https://github.com/stackbithq/jamstackthemes/blob/master/generate-github.js](https://github.com/stackbithq/jamstackthemes/blob/master/generate-github.js) - Can I do this with getJSON?

---

<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:** [October 2, 2019, 2:18pm UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/7 "2019-10-02T14:18:42Z")

</div>

> [@JugglerX](#):
>
> How so? This is an API call that needs to be made using Fetch or Axios and it requires an authorization header with a Github Token.

You can use Curl to access that API, so it’s pretty straight HTTP. I haven’t looked at it lately, but I think passing the Github token as a query parameter (which you can load via os env in Hugo) is still an option. It’s less secure than a header, but it’s certainly possible.

---

<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:** [October 2, 2019, 3:35pm UTC](https://discourse.gohugo.io/t/new-hugo-themes-resource/21067/8 "2019-10-02T15:35:12Z")

</div>

I quickly scrambled this together:

> **[bep/hugo-github](https://github.com/bep/hugo-github)**
>
> Some Hugo components talking to GitHub. Contribute to bep/hugo-github development by creating an account on GitHub.
