Live data from Hacker News

Ask HN: Best way to create a landing page?

news.ycombinator.com

21–30 of 65 posts

Re: Ask HN: Best way to create a landing page?

#21
I recommend using a static site generator. It brings precisely the features you ask for:

  - easy SEO optimization, especially compared to SPA  
  - easy content management, GitOps  
  - fast, scales well  
  - free to host via various services (e.g. GitLab and GitHub)
Personally, I like Hugo. They have an amazing gallery of free templates: https://themes.gohugo.io/

You might enjoy my blog post on how I host my personal website for free with Hugo and GitLab Pages: https://tkainrad.dev/posts/using-hugo-gitlab-pages-and-cloud...

Re: Ask HN: Best way to create a landing page?

#22
Wordpress is a great option, many large companies use Wordpress for landing pages (also the most popular on Builtwith). Its CMS also makes it easy to set up a blog, update pages, etc.

If you're not well versed with using Wordpress (like me) than there's 2 routes you can take:

Developer route: Use a static site generator. (not meant to be exhaustive)

- Gatsby: if you know React

- Hugo

- Jekyll: ruby

- simple HTML + CSS static website

Non Dev route: If you're not a developer, you could use one of the following paid tools:

- clickfunnels

- hubspot

- mailchimp

- leadpages

- unbounce

- and many more

If you're using a static site generator, it's really easy to host it on AWS Amplify Console for free.

Disclaimer: not associated with any of the above listing products

Re: Ask HN: Best way to create a landing page?

#24

I recommend using a static site generator. It brings precisely the features you ask for: - easy SEO optimization, especially compared to SPA - easy content management, GitOps - fast, scales well - free to host via various services (e.g. GitLab and GitHub) Personally, I like Hugo. They have an amazing gallery of free templates: https://themes.gohugo.io/ You might enjoy my blog post on how I host my personal website fo…

Hugo is great choice.

I host my hugo sites on Azure Blob Storage for few cents (literally) per month.

Re: Ask HN: Best way to create a landing page?

#25
post #14
post #4

In a somewhat similar situation I used PHP with `include`. The structure was something like this: - index.php - header.php - sidebar.php - footer.php - page-1.php - page-2.php ... In `header.php` I used variables for the title, description, etc. and then in each page I specified the values for those variables. This way each page had the same header HTML code, but with a different title, description and so on.

I do my PHP in completely different way, which in turn was the way I did ASP back in the day, also in a weird way. All my HTML is held in template .html files, with %%PLACEHOLDER%% text where the dynamic content should be, Then my index.php is the main 'app' loading in the templates to build the output, doing string replaces on the html, and then a single final 'echo' to send the result to the user at the end of the…

That's nasty. Why not just use a templating language and pump in the values you need?

https://twig.symfony.com/

Re: Ask HN: Best way to create a landing page?

#27
post #15

An option that I like to use is Middleman (or any other static site generator) for creating the pages and Netlify for hosting, all for free even with your own domain and HTTPS. You have nice static HTML pages with a CDN, super fast, and there's even a CMS option with NetlifyCMS, which works by creating git commits for you and then automatically pushes the new static version on Netlify. The basics in Netlify are free…

I think Netlify has an amazing product and have been looking into using Gatsby for some projects. Thanks for linking those templates!

Re: Ask HN: Best way to create a landing page?

#29

I recommend using a static site generator. It brings precisely the features you ask for: - easy SEO optimization, especially compared to SPA - easy content management, GitOps - fast, scales well - free to host via various services (e.g. GitLab and GitHub) Personally, I like Hugo. They have an amazing gallery of free templates: https://themes.gohugo.io/ You might enjoy my blog post on how I host my personal website fo…

For others interested, here is a list of flat file CMSs: https://github.com/ahadb/flat-file-cms
Post reply on HN