# SSR sites

**URL:** <https://discourse.gohugo.io/t/ssr-sites/56224>\
**Category:** support\
**Created:** [November 8, 2025, 12:00pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224 "2025-11-08T12:00:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![user645235](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@user645235](https://discourse.gohugo.io/u/user645235)\
**Post date:** [November 8, 2025, 12:00pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/1 "2025-11-08T12:00:55Z")

</div>

**Hi everyone!**

I’ve built my first website with GoHugo and absolutely loved the experience. Working with Hugo has been pure joy!

Before this, I mostly worked with various JavaScript frameworks, where you usually have to build everything from scratch and design your own architecture by yourself. With Hugo, I really enjoy that the necessary decisions have already been made for you, it feels structured and very clean.

Layouts, pages, built-in functions and methods - everything is provided out of the box. Need to show the last updated or published date? Just call a built-in function in one line - done! Pagination, categories, tags - everything just works out of the box.

The only thing I’m missing is **server-side rendering (SSR)**. It’s honestly a bit sad that I have to look for other tools because I enjoyed working with Hugo so much.

So here’s my question:  
Since Hugo is built with Go, are there any **Go-based frameworks** similar in concept to Hugo, but that **support SSR**?  
Or maybe other frameworks (not necessarily in Go) that are conceptually close to the Hugo approach?

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/frjo/32/18626_2.png) [@frjo](https://discourse.gohugo.io/u/frjo)\
**Post date:** [November 8, 2025, 12:29pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/3 "2025-11-08T12:29:48Z")

</div>

For a project that was mostly static but needed some parts to be dynamic I would use Hugo plus HTMX with your preferred backend. For me the backend would be Django or maybe Flask.

> **[htmx - high power tools for html](https://htmx.org)**
>
> htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext
> 
> htmx is small (~14k min.gz’d),...

I use HTMX for a large Django project and it’s a joy to work with.

---

<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:** [November 8, 2025, 2:44pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/4 "2025-11-08T14:44:00Z")

</div>

I heard great things about htmx … I also enjoy working with AlpineJS, works great with Hugo. But none of those support SSR as far as I know.

But … why do you need SSR? Is this mainly to make Google PageSpeed happy? You’re adding lots of complexity for a few milliseconds shaved off the initial page render.

---

<div class="post-metadata">

**Author:** ![user645235](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@user645235](https://discourse.gohugo.io/u/user645235)\
**Post date:** [November 8, 2025, 6:28pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/5 "2025-11-08T18:28:10Z")

</div>

> why do you need SSR? Is this mainly to make Google PageSpeed happy

As far as I know, an SSG site will be faster than SSR site.

I’m planning to build an API-based website, where all the data across the site should be updated very often. Technically, I can easily build a static site with Hugo using `GetRemote` function to extract data from the API.

But the data is updated very often. So on an SSR website, I can build a static site once per day through a cron job (if I want to combine SSG+SSR modes, or just make it SSR all the time), and then just extract data on the server side on each request per user. Technically, I can render API data using JavaScript, but it’s not good decision for accesability.

But the main concern is the second feature - I have filters and pagination based on my API. And it’s impossible to filter dynamic data with a static site. I need a server to do that.

Do you plan to implement SSR mode for GoHugo? Make it a full-stack framework, please.😭 😭 😭

---

<div class="post-metadata">

**Author:** ![user645235](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@user645235](https://discourse.gohugo.io/u/user645235)\
**Post date:** [November 8, 2025, 6:33pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/6 "2025-11-08T18:33:46Z")

</div>

And about the speed - I think all my pages in the green zone across the site:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/9/b/9bff9ab61e98988a6f5224ef6089a5f9b9620056.png)

Setup: Tailwind CSS, code minification, also built simple `image.html` shortcode which can optimize even dynamically imported images, so easy and feature rich, I’m really shocked, how easy you can do things with GoHugo compared to the frameworks I’ve worked before.

---

<div class="post-metadata">

**Author:** ![Tom\_Durand](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tom_durand/32/14460_2.png) [@Tom\_Durand](https://discourse.gohugo.io/u/Tom_Durand)\
**Post date:** [November 9, 2025, 1:47am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/7 "2025-11-09T01:47:52Z")

</div>

Could you explain a bit what SSR means ? Or rather, why not using it is always be slower ?

---

<div class="post-metadata">

**Author:** ![user645235](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@user645235](https://discourse.gohugo.io/u/user645235)\
**Post date:** [November 9, 2025, 4:04am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/8 "2025-11-09T04:04:49Z")

</div>

ssr = server side rendered, ssg = static site

---

<div class="post-metadata">

**Author:** ![Tom\_Durand](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tom_durand/32/14460_2.png) [@Tom\_Durand](https://discourse.gohugo.io/u/Tom_Durand)\
**Post date:** [November 9, 2025, 9:50pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/9 "2025-11-09T21:50:31Z")

</div>

Dude, I know English.

What I was asking, is why should hugo have anything to do with server-side anything ? From the little I know about scripting, htmx or similar techs, are just a bunch of javascript libraries taking charge of answering http requests or alter behavior on the client side. Hugo builds site, it doesn’t run a full-featured web server.

So, what is it that you want hugo to do **exactly**?

---

<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:** [November 10, 2025, 1:54pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/10 "2025-11-10T13:54:42Z")

</div>

> [@Tom\_Durand](#):
>
> So, what is it that you want hugo to do **exactly**?

SSR in this context means server side rendering of dynamic content (content produced by JavaScript) so that the initial page load is HTML only – and then shifted out with client side rendered content; this is called hydration. Here’s a pretty good explanation: [Understanding Hydration in React applications(SSR) | Saeloun Blog](https://blog.saeloun.com/2021/12/16/hydration/)

So, if you have a (typical) Hugo site where 99+% of it is static HTML, SSR is not needed.

---

<div class="post-metadata">

**Author:** ![icedogas](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/icedogas/32/22338_2.png) [@icedogas](https://discourse.gohugo.io/u/icedogas)\
**Post date:** [November 13, 2025, 1:35pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/11 "2025-11-13T13:35:29Z")

</div>

I can give a real-life example. I work at a betting company ([https://fonbet.com/](https://fonbet.com/)), and the data from the API updates very frequently — things can change within minutes (odds, data, etc.). They definitely don’t use Hugo (unfortunately, I guess). They have their own rendering system that constantly crawls the site, removes finished events, adds new ones, builds some things dynamically and some statically. They even have a separate renderer for search and another one for users. This creates tons of problems both for indexing and for handling all those URLs.

It’s a real-world product, what can I say — and compared to that, just using Hugo + Tailwind is like heavenly manna, where you control every page and know exactly what the user, the search bot, or any other bot will receive 99.9% of the time.

Appreciate that. 😊

---

<div class="post-metadata">

**Author:** ![user645235](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@user645235](https://discourse.gohugo.io/u/user645235)\
**Post date:** [November 14, 2025, 12:30am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/12 "2025-11-14T00:30:44Z")

</div>

That’s exactly what I meant in my post.

Please, Hugo developers - implement SSR mode for GoHugo 😭 😭 😭 . At least some simple adapter at first, like golang/nodejs web server support or middleware.

Hugo with SSR mode beats every other framework on the market.

---

<div class="post-metadata">

**Author:** ![Tom\_Durand](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tom_durand/32/14460_2.png) [@Tom\_Durand](https://discourse.gohugo.io/u/Tom_Durand)\
**Post date:** [November 14, 2025, 10:34am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/13 "2025-11-14T10:34:36Z")

</div>

Now that I’ve read more about SSR, hypermedia etc and… came to the same naive conclusion: If you need to create pages dynamically or respond to http requests with json, a **STATIC** site generator has nothing to do with it. It is a **server** thing. They’re not opposite but completely **orthogonal** need.

Only your web server is responsible for dealing with http requests. If the constructed part of your content is too big you may as produce everything on the fly using the templating language of tools like django, whose langage looks like golang.

---

<div class="post-metadata">

**Author:** ![dbob16](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/dbob16/32/19470_2.png) [@dbob16](https://discourse.gohugo.io/u/dbob16)\
**Post date:** [November 14, 2025, 6:04pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/14 "2025-11-14T18:04:00Z")

</div>

Not Go based, but I used Sveltekit for my webapp [Ticket Auction Manager 3](https://www.github.com/dbob16/tam3) with good results. I’ve seen people make anything from Blogs to eCommerce sites with it on Youtube.

To bring in SSR rendered data, for each page route you’d have to create a +page.server.js file, export a function (can be async) titled “load” and then bring in the object it returns by destructuring data from the $props() rune in the +page.svelte file. So it’d be something like this:

```auto
const {data} = $props();

```

If you set it up with the Node adapter, you can run it on any computer that has node or even inside of a Docker/Podman container.

---

<div class="post-metadata">

**Author:** ![dbob16](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/dbob16/32/19470_2.png) [@dbob16](https://discourse.gohugo.io/u/dbob16)\
**Post date:** [November 14, 2025, 6:24pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/15 "2025-11-14T18:24:57Z")

</div>

If you’re doing this just for the performance, I wouldn’t really recommend SSR, especially for shear volume. As it will slow down the server a lot more during high traffic volumes (as the server will have to think more instead of just handing files to the client).

If you get low speed marks (90+ is actually good) on a SSG site, then it’s likely a bandwidth issue (consider a VPS plan with higher link speeds) or you have media that’s obnoxiously big. Or a blocking load function in your JS code (if you have any).

I’d only push for SSR if you’re doing something that requires dynamic content.

---

<div class="post-metadata">

**Author:** ![user645235](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@user645235](https://discourse.gohugo.io/u/user645235)\
**Post date:** [February 3, 2026, 11:13am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/16 "2026-02-03T11:13:57Z")

</div>

Hello, dear developers!

Do you plan to implement SSR (server-side rendering) in Hugo in the near future?

Or will Hugo remain solely a static site generator?

---

<div class="post-metadata">

**Author:** ![Tom\_Durand](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tom_durand/32/14460_2.png) [@Tom\_Durand](https://discourse.gohugo.io/u/Tom_Durand)\
**Post date:** [February 3, 2026, 2:11pm UTC](https://discourse.gohugo.io/t/ssr-sites/56224/17 "2026-02-03T14:11:46Z")

</div>

jeez… it’s not the first time someone asks that. Could you please define what that even mean ? Hugo is not a server, it just makes sites, a collection of web pages and assets. That a server publishes. If you want server side, get a server.

---

<div class="post-metadata">

**Author:** ![kijana](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kijana](https://discourse.gohugo.io/u/kijana)\
**Post date:** [February 4, 2026, 12:22am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/18 "2026-02-04T00:22:41Z")

</div>

> [@user645235](#):
>
> Do you plan to implement SSR (server-side rendering) in Hugo in the near future?

My two cents: Adding SSR capabilities to Hugo is not worth the complexity, considering the project has a sole maintainer. Instead of re-inventing the wheel, use the suggested Hybrid approaches with Hugo or try other tools better suited for SSR like Next.js, Astro, or SvelteKit .

---

<div class="post-metadata">

**Author:** ![user645235](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@user645235](https://discourse.gohugo.io/u/user645235)\
**Post date:** [February 4, 2026, 5:16am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/19 "2026-02-04T05:16:51Z")

</div>

I am using Next.js currently. I’m trying to move from Next to Hugo, and nothing beats Hugo in terms of simplicity and functionality.

That’s why I’m asking about SSR mode for Hugo to make it full-stack.

---

<div class="post-metadata">

**Author:** ![kijana](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kijana](https://discourse.gohugo.io/u/kijana)\
**Post date:** [February 4, 2026, 5:59am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/20 "2026-02-04T05:59:31Z")

</div>

> [@user645235](#):
>
> That’s why I’m asking about SSR mode for Hugo to make it full-stack.

There isn’t much interest from Hugo users in SSR [Search results for 'server side rendering' - HUGO](https://discourse.gohugo.io/search?q=server%20side%20rendering). And unless it gains traction from many users, it will never be incorporated. So, your request is futile at the moment. Just use the hybrid approach suggested or switch to Astro.

---

<div class="post-metadata">

**Author:** ![Tom\_Durand](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tom_durand/32/14460_2.png) [@Tom\_Durand](https://discourse.gohugo.io/u/Tom_Durand)\
**Post date:** [February 4, 2026, 7:04am UTC](https://discourse.gohugo.io/t/ssr-sites/56224/21 "2026-02-04T07:04:39Z")

</div>

I’m starting to wonder if those posts don’t come from chatbots at this point.  
Stop to think a minute: The power of an SSG comes from its simplicity. Outputing text, once, predictably, with a lot of parameters yes but still, nothing more. You would also import all that insane bloat and complexity.  
Change your optics.  
Write some htmx and hyperscript for interactivity, it goes a long way and even I could pull it off, while not knowing a line of JS…
