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.
Ask HN: Best way to create a landing page?
51–60 of 65 posts
Re: Ask HN: Best way to create a landing page?
#521) 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?
#53This 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?
#54https://carrd.co/ is your friend here
And once you get the hang of it, it takes less than 15 minutes.
Re: Ask HN: Best way to create a landing page?
#55The 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?
#56You 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?
#57https://carrd.co/ is your friend here
Re: Ask HN: Best way to create a landing page?
#58Re: Ask HN: Best way to create a landing page?
#59Re: Ask HN: Best way to create a landing page?
#60- 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.