Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

static website generator

I was recently asked to create a web page using a static website generator, like Jekyll. My question is this:

  • How does this differ from just creating a website using HTML or writing the page as an ASP.net project in Visual Studio?
  • How does it work on the server?
  • What are some concerns I should have?

I'm a .net guy, so I would like to be able to create this in visual studio, if possible.

like image 456
jason Avatar asked Nov 15 '11 20:11

jason


People also ask

What does a static site generator do?

A static site generator is a tool that generates a full static HTML website based on raw data and a set of templates. Essentially, a static site generator automates the task of coding individual HTML pages and gets those pages ready to serve to users ahead of time.

Should I use a static site generator?

Benefits of using a static site generator Static sites' advantages include speed, security, and SEO. They're also easy to maintain and highly scalable. Because the static site generators (SSG) store an already-compiled page on a CDN, they load a lot faster.


1 Answers

Here are some advantages and disadvantages that came to my mind:

Advantages

  • can be deployed on every server, as it's just static html
  • has partials, that can be reused, in contrast to normal html, where you have to code/copy paste every thing
  • you can still code in an IDE
  • a non developer can edit code (sometimes at least)

Disadvantages

  • the template language is limited and sometimes a bit awkward/needs to get used to
  • you have something new in your environment, which has additional costs (more than one developer needs to know how to build the site, ...)

If you know your current toolkit well and you do not have a problem hosting another ASP.net project on your server, I do not see the need for you to introduce another tool in your tool chain.

If you want to do something, where users can generate content - like github does on the github pages - this is something you might consider.

As for Jekyll, we tried it on one project and being devs, who like to code, we ran into it's limitations quite early. You can work around this, but if you know a programming language you will be faster. It was still fascinating, how far we were able to go with just using Jekyll

like image 53
topek Avatar answered Sep 28 '22 05:09

topek