Live data from Hacker News

Building a fast, secured and free static site in less than three hours

fillmem.com

51–60 of 201 posts

Re: Building a fast, secured and free static site in less than three hours

#51
post #25

I had really hoped that this was about building a static site, but again you'll end up with a blog. I've created an actual static site myself, but it takes a bit extra - especially from the theme. Also, I don't understand why you'd use Hugo with Github when it already supports Jekyll?

We built our site (https://www.solidstategroup.com/) with hexo (https://hexo.io/) which is great and offers total freedom of design with a good templating system.

Re: Building a fast, secured and free static site in less than three hours

#52

I wonder why people (many devs included) use stuff like wordpress to host simple blogs. static site generators are a blessing :) I built my own custom static site generator (python + jinja2) for running my side project[1] I just git push and Netlify picks it up. Simple, to the point and no JS. [1] I run https://discoverdev.io , a "product hunt" for top engineering blog posts!

Just wanted to say that I really love the style of your site. Clean, fast, readable and stylish. I wish more of the web were like this.

Re: Building a fast, secured and free static site in less than three hours

#53

I wonder why people (many devs included) use stuff like wordpress to host simple blogs. static site generators are a blessing :) I built my own custom static site generator (python + jinja2) for running my side project[1] I just git push and Netlify picks it up. Simple, to the point and no JS. [1] I run https://discoverdev.io , a "product hunt" for top engineering blog posts!

The answer to your question is in the second paragraph.

Re: Building a fast, secured and free static site in less than three hours

#55
Just to make mention in the comments in case people haven't seen the product, I've found Amazon's Lightsail (https://amazonlightsail.com) incredibly easy and cheap to launch a simple website upon, along with using their Route53 for DNS hosting.

Even though I know all the ins and outs of AWS, I really like this product for simple projects.

(I have no affiliation with Amazon)

Re: Building a fast, secured and free static site in less than three hours

#57

I really like the speed of Hugo but I find the template language unintuitive and hard to read e.g. "if or condition1 condition2" and "lt 1 2". I wish you could swap it out for something else like Liquid templates...is that possible? I'd just go for Netlify as well for hosting. It'll build Hugo sites for you when you push commits, they have a CMS you can connect with most static site generators, they deal with SSL set…

Netlify + Hugo is an pretty amazing combo. If you want to try a different CMS, my team is building https://forestry.io/. It's a CMS for Hugo and Jekyll sites that commits all changes back to your repo.

Re: Building a fast, secured and free static site in less than three hours

#58

I'm using React Gatsby on my blog. I have access to all the npm ecosystem. Is fast. No bloatware or weird code. Styles with styled-components for easy maintenance. https://mateom.io Deployed to an S3 bucket connected to CloudFlare. I just type 'yarn deploy' and it builds my blog and pushed it. And I can commit everything to source control as they keys are in aws-cli

> I have access to all the npm ecosystem. Is fast. No bloatware or weird code.

I see npm as the best source of slow, bloated, weird modules.

Re: Building a fast, secured and free static site in less than three hours

#59
post #54

Holy cow. Is this an improvement? Remember in 1999 when you could get a static website up in 3 minutes using ftp?

I made my first website using vi to make an index.html file in the ~/public_html directory in the home directory of my account on a university Solaris server back in 1997. FTP was a luxury.

Kids today.

Re: Building a fast, secured and free static site in less than three hours

#60

Might be a little off-topic but hopefully relevant enough. I'm rather new to web dev but currently have a static website hosted on AWS S3. My current workflow is to code the HTML and CSS files using Sublime Text then upload these files into a bucket manually via the AWS console. Is there a more efficient way to do this? And is there a simple way to enable HTTPS?

For enabling HTTPS, you can put CloudFront in front of it. That'll make it faster, too, and cost almost nothing.

For my static sites, I'm usually doing some form of fancy JavaScript npm / gulp / bower, but then ultimately just uploading those files to S3.

You could probably do it a little faster using the AWS CLI. It can upload a directory to a bucket in one command (while skipping unchanged files).

Post reply on HN