10.05.2018 Views

Web_Designer_UK__May_2018

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10 BEST STATIC SITE GENERATORS<br />

3. GATSBY<br />

www.gatsbyjs.org<br />

PRO : Gatsby uses some of the<br />

latest web technologies such as<br />

ReacttocreatestaticPWAs<br />

Like Hexo, Gatsby is powered by<br />

Node.js and so will be more familiar<br />

territory for experienced JavaScript<br />

developers. However, several things<br />

set it apart from other similar tools.<br />

Gatsby uses React, which means<br />

that everything is built with<br />

components, and allows it to benefit<br />

from React’s approach to DOM<br />

rendering. This means it can be<br />

picked up quickly by developers<br />

who have worked with React, but<br />

for those unfamiliar with it, learning<br />

React will be necessary.<br />

It also utilises GraphQL at build<br />

time to retrieve data and content<br />

from data sources, which provides a<br />

modern, consistent interface to<br />

ensure that each page receives the<br />

exact data needed when it is built.<br />

Finally, Gatsby will build pages as<br />

progressive single page apps,<br />

meaning that the entire site is<br />

downloaded and subsequent<br />

navigation is immediate.<br />

3.<br />

4.<br />

4. HUGO<br />

https://gohugo.io<br />

PRO : Aims to be the fastest static<br />

site generator. Hugo is the other<br />

big hitter alongside Jekyll<br />

Widely regarded as the ‘other’ leading<br />

static site generator, it’s only natural to<br />

compare Hugo with Jekyll. Hugo is the<br />

newer of the two, and one of its key<br />

focus areas is speed, which for some<br />

has been a complaint with Jekyll.<br />

Nobody likes waiting for a site to build,<br />

and Hugo can put together a simple<br />

site from your markup and templates<br />

in milliseconds, or even blaze through<br />

thousands of pages in seconds.<br />

With Hugo it’s also typical to write<br />

content with Markdown, and the<br />

templating engine is based on Go<br />

templates since Hugo itself is<br />

implemented in the Go programming<br />

language. Like Jekyll, it ships with a<br />

lightweight HTTP server to quickly<br />

serveyourpageslocally.Thetwo<br />

tools’ build workflows are overall<br />

fairly similar.<br />

Formany,thekeybenefitofHugois<br />

its quicker, simpler path to getting<br />

started, with very little need for<br />

configuration and no dependencies<br />

other than the core binary. Its<br />

documentation and tutorials are very<br />

good, and it has an ethos of<br />

maintaining simplicity which makes for<br />

a very approachable learning curve.<br />

One disadvantage Hugo has relative<br />

to Jekyll is that it lacks the extensive<br />

plugin ecosystem available for the<br />

latter. Given its wide range of built-in<br />

functionality, however, this is unlikely<br />

to be a problem for most users. It also<br />

may be marginally lighter on support<br />

on sites such as StackOverflow since it<br />

hasn’t been around as long; however,<br />

it continues to grow in popularity and<br />

many believe it may become the<br />

leading static site generator in the<br />

near future.<br />

“ HUGO CAN PUT<br />

TOGETHER A SIMPLE<br />

SITE FROM YOUR<br />

MARKUP AND<br />

TEMPLATES IN<br />

MILLISECONDS ”<br />

76 __________________________________________________feature

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!