Live data from Hacker News

Ask HN: Best way to create a landing page?

news.ycombinator.com

51–60 of 65 posts

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

#51
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.

Heh. That is what I was doing in 2001. Wild to it in the wild still. Now I am only in the back end.

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

#52
Hugo can also serve as a no-code/low-code solution:

1) you install Hugo following the guide from gohugo.io/getting-started/quick-start .

2) You download any theme from themes.gohugo.io and set them up with instructions on theme's page. For example, the theme I used is for wrenches.io is hyde-hyde .

3) You change general settings for the site and add content by adding and editing files in your website's folder.

That's it! I usually host on netlify and deploy from GitHub, so it also doesn't cost me anything except for domain.

Hugo themes also allow to make many different kinds of websites, and they are fairly easy to use. Another example of a website made the same way is justfindthis.com ; the theme for it is Highlights

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

#53
"should be easily managed for updating content "

This is the key point for me. Who will be managing/updating the content ? If it is users who are non technical, then you have limited options and you can go with something like WordPress. The reason is that if you use those static site generators which are awesome btw, the non tech. users will be limited. Not to mention they will have no WYSIWYG builders to work with.

So the answer is it depends. If the people making changes/updates are technical enough, static site builders are great. If not, then go with something like WordPress.

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

#54
post #2

https://carrd.co/ is your friend here

+1 to this solution. I've been using Carrd for small landing pages ever since this summer, as it is so easy to set up and use - in less than an hour you will probably have a highly-polished mockup.

And once you get the hang of it, it takes less than 15 minutes.

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

#55
Could someone explain to me why using a react app built using CRA is bad in this case? I have a similar use case where the app is on app.example.com (built using CRA) and I have a landing page (also built using CRA) on example.com

The landing page links to: - The App at app.example.com - Docs at docs.example.com - Blog at blog.example.com

I have 0 front-end experience so this is an honest attempt at understanding why I should NOT be using the CRA for a landing page.

The landing page isn't doing much so its a very simple react app. But don't understand the implications on SEO

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

#56
Surprised webflow.com has not been mentioned yet. Been using it for years and its an absolute Wordpress killer.

You can make simple landing pages, full sites, etc. All with as much or as little custom coding as you want.

It feels like what Squarespace sold me on back in 2011 for my first site... but it actually works, you can export the HTML if you want to self host, or use their backend. Great stuff

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

#60
- Static HTML5 on a CDN (speed)

- Responsive design (important; you will get penalized otherwise)

- Minimal JavaScript (React still gets penalized)

- Metadata like image alt text, JSON-LD structured data, , and so on

This is the best you can do for SEO without external resources.

Post reply on HN