DEV Community

Discussion on: Static site with markdown pages, but with bits of dynamic content in it?

Collapse
 
tux0r profile image
tux0r • Edited

Would it still work as a static site with bits of dynamic content being called at render time?

Yes.

The relevant advantage of static sites is that there is no dynamic code on the server, leading to faster page loading and less security annoyances. This is still true when you add 45236 gigabytes of JavaScript to the part only loaded on the client side. (Sadly.)

Collapse
 
danroc profile image
Daniel da Rocha

so if all I am doing is api calls to get and display information (no mutations on server side), it should work?

Would HUGO's Data Templates be in the right direction?

Collapse
 
tux0r profile image
tux0r

Yes.

Yes.

Thread Thread
 
vitalcog profile image
Chad Windham

I enjoyed this conversation...

Thread Thread
 
danroc profile image
Daniel da Rocha

yes, very concise. But very reaffirming!! :)