TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Best way to create a landing page?

91 点作者 erkken超过 5 年前
Let&#x27;s say I have an app, residing at app.example.com. I want a separate landing page for this app at example.com.<p>This landing page should be easily managed for updating content and also have multiple pages. What stack would you use for this today?<p>I want it to be SEO optimized.<p>I use Vue for the app but feels overkill for the landing page and also not ideal in terms of SEO. I don&#x27;t feel like going the SPA+SSR way either.<p>Is wordpress still a good alternative?<p>Or maybe just a html+jquery site hosted at for example Firebase?<p>I don&#x27;t expect to update it too much with news etc so a CMS is not required.<p>What would you do?

37 条评论

tkainrad超过 5 年前
I recommend using a static site generator. It brings precisely the features you ask for:<p><pre><code> - 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) </code></pre> Personally, I like Hugo. They have an amazing gallery of free templates: <a href="https:&#x2F;&#x2F;themes.gohugo.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;themes.gohugo.io&#x2F;</a><p>You might enjoy my blog post on how I host my personal website for free with Hugo and GitLab Pages: <a href="https:&#x2F;&#x2F;tkainrad.dev&#x2F;posts&#x2F;using-hugo-gitlab-pages-and-cloudflare-to-create-and-run-this-website&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tkainrad.dev&#x2F;posts&#x2F;using-hugo-gitlab-pages-and-cloud...</a>
评论 #21711625 未加载
评论 #21711565 未加载
评论 #21711400 未加载
评论 #21711978 未加载
评论 #21711459 未加载
评论 #21711479 未加载
r_singh超过 5 年前
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.<p>If you&#x27;re not well versed with using Wordpress (like me) than there&#x27;s 2 routes you can take:<p>Developer route: Use a static site generator. (not meant to be exhaustive)<p>- Gatsby: if you know React<p>- Hugo<p>- Jekyll: ruby<p>- simple HTML + CSS static website<p>Non Dev route: If you&#x27;re not a developer, you could use one of the following paid tools:<p>- clickfunnels<p>- hubspot<p>- mailchimp<p>- leadpages<p>- unbounce<p>- and many more<p>If you&#x27;re using a static site generator, it&#x27;s really easy to host it on AWS Amplify Console for free.<p>Disclaimer: not associated with any of the above listing products
ademcan超过 5 年前
I always start with <a href="https:&#x2F;&#x2F;html5up.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;html5up.net&#x2F;</a> where you have a nice selection of free HTML5+CSS templates! I hope it helps.
TKAB超过 5 年前
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.<p>You have nice static HTML pages with a CDN, super fast, and there&#x27;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 and there are nice add-ons where some are also free (e.g. forms).<p>Check out the template list here: <a href="https:&#x2F;&#x2F;templates.netlify.com" rel="nofollow">https:&#x2F;&#x2F;templates.netlify.com</a>
评论 #21711456 未加载
roosgit超过 5 年前
In a somewhat similar situation I used PHP with `include`.<p>The structure was something like this:<p><pre><code> - index.php - header.php - sidebar.php - footer.php - page-1.php - page-2.php ... </code></pre> 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.
评论 #21711217 未加载
评论 #21712297 未加载
fastbeef超过 5 年前
<a href="https:&#x2F;&#x2F;carrd.co&#x2F;" rel="nofollow">https:&#x2F;&#x2F;carrd.co&#x2F;</a> is your friend here
评论 #21711593 未加载
评论 #21714123 未加载
评论 #21717423 未加载
评论 #21709980 未加载
tiborsaas超过 5 年前
&gt; Is wordpress still a good alternative?<p>No, you just said you don&#x27;t need a CMS.<p>I would hand edit the HTML and deploy it on Netlify with a Parcel build step, at least that&#x27;s what I&#x27;ve done.<p><a href="https:&#x2F;&#x2F;parceljs.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;parceljs.org&#x2F;</a><p><pre><code> parcel build *.html --public-url https:&#x2F;&#x2F;your.page </code></pre> &gt; I want it to be SEO optimized.<p>It&#x27;s a complex problem, it all boils down the template you use. I usually hunt hours for free HTML&#x2F;CSS templates then get mad about them and create one from scratch using some CSS framework :)
martin_a超过 5 年前
Take some Bootstrap 4 Template and just stick to HTML + CSS. It&#x27;s enough for a first impression, don&#x27;t go for the tech stack overkill.
cdolan超过 5 年前
Surprised webflow.com has not been mentioned yet. Been using it for years and its an absolute Wordpress killer.<p>You can make simple landing pages, full sites, etc. All with as much or as little custom coding as you want.<p>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
leerob超过 5 年前
Personally, I would use Next.js. It allows you have dynamic pages (e.g. your app) alongside static pages (e.g. landing page). Since it&#x27;s server-side rendered, it&#x27;s great for SEO.<p>You mentioned you don&#x27;t want to do SPA+SSR. With static pre-rendering from Next.js, there isn&#x27;t a SPA. It&#x27;s a fully static site.<p>You also mentioned having multiple pages. Rather than dealing with React Router or other SPA approaches, Next has a `&#x2F;pages` directory where each file nested inside maps to a route. So `pages&#x2F;about.js` is &#x2F;about. It&#x27;s similar to PHP in that regard.<p>If you don&#x27;t need CMS, then you don&#x27;t need Wordpress. For hosting, I would recommend Zeit&#x27;s Now. They&#x27;re also the creators of Next.js, so the tech pairs well together.<p>It&#x27;s as simple as `npx create-next-app` to make the app and then `now` to deploy.<p><a href="https:&#x2F;&#x2F;nextjs.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nextjs.org&#x2F;</a> <a href="https:&#x2F;&#x2F;zeit.co&#x2F;home" rel="nofollow">https:&#x2F;&#x2F;zeit.co&#x2F;home</a>
woutr_be超过 5 年前
I would personally use Jekyll, it&#x27;s pretty easy to build, free to host (thanks to Netlify or Github pages), perfect for SEO since it&#x27;s all static content.<p>There&#x27;s tons of themes available: <a href="https:&#x2F;&#x2F;www.jekyll-resources.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.jekyll-resources.com&#x2F;</a>
zelly超过 5 年前
- Static HTML5 on a CDN (speed)<p>- Responsive design (important; you will get penalized otherwise)<p>- Minimal JavaScript (React still gets penalized)<p>- Metadata like image alt text, JSON-LD structured data, &lt;meta&gt;, and so on<p>This is the best you can do for SEO without external resources.
otherlandlabs超过 5 年前
Personally I would go either with pure HTML&#x2F;CSS&#x2F;JS, or if you wanna get fancy with Gatsby + Contentful.
评论 #21703434 未加载
saviorand超过 5 年前
Hugo can also serve as a no-code&#x2F;low-code solution:<p>1) you install Hugo following the guide from gohugo.io&#x2F;getting-started&#x2F;quick-start .<p>2) You download any theme from themes.gohugo.io and set them up with instructions on theme&#x27;s page. For example, the theme I used is for wrenches.io is hyde-hyde .<p>3) You change general settings for the site and add content by adding and editing files in your website&#x27;s folder.<p>That&#x27;s it! I usually host on netlify and deploy from GitHub, so it also doesn&#x27;t cost me anything except for domain.<p>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
ciocarlia超过 5 年前
I recently dealt with the same issue and was satisfied with prerender spa plugin (<a href="https:&#x2F;&#x2F;github.com&#x2F;chrisvfritz&#x2F;prerender-spa-plugin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chrisvfritz&#x2F;prerender-spa-plugin</a>).<p>It enabled me to quickly implement the landing page with Vue and then build it as a static page that I deployed on Netlify. I found it easier and faster to set up than an SSR solution.<p>There&#x27;s also a Vue-CLI version of the prerender plugin (<a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;vue-cli-plugin-prerender-spa" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;vue-cli-plugin-prerender-spa</a>)
评论 #21720225 未加载
laurentdc超过 5 年前
I just use Wordpress with a plain theme and some builder, e.g. OceanWP + Elementor. Little code needed, decent plugin ecosystem (contact forms, cookie warning, seo stuff), one-click deploy on DigitalOcean, Linode...
codegeek超过 5 年前
&quot;should be easily managed for updating content &quot;<p>This is the key point for me. Who will be managing&#x2F;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.<p>So the answer is it depends. If the people making changes&#x2F;updates are technical enough, static site builders are great. If not, then go with something like WordPress.
afloatboat超过 5 年前
Since you&#x27;re already experienced in Vue I would have a look at <a href="https:&#x2F;&#x2F;vuepress.vuejs.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vuepress.vuejs.org&#x2F;</a>. I don&#x27;t have any hands-on experience, but I&#x27;ve only heard positive things about it.<p>I&#x27;m currently converting a site from static HTML to Gatsby because I got tired of having to copy-paste changes to repeating elements between the different pages. The Vue&#x2F;React component approach works really well in that regard. And you don&#x27;t lose out on the static element, nor the SEO.
ashpreetbedi超过 5 年前
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<p>The landing page links to: - The App at app.example.com - Docs at docs.example.com - Blog at blog.example.com<p>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.<p>The landing page isn&#x27;t doing much so its a very simple react app. But don&#x27;t understand the implications on SEO
评论 #21721965 未加载
thojest超过 5 年前
I think the hardest part is the design of nice images and graphics, if you are not a designer. You can for example use this open-source collection of awesome svg illustrations. They are free of attribution and really good looking. <a href="https:&#x2F;&#x2F;turtle.community&#x2F;discovery&#x2F;285" rel="nofollow">https:&#x2F;&#x2F;turtle.community&#x2F;discovery&#x2F;285</a>
lbrito超过 5 年前
I&#x27;ve done a few static sites with Nanoc (<a href="https:&#x2F;&#x2F;nanoc.ws&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nanoc.ws&#x2F;</a>), a Ruby gem, and I really enjoy the results. It has quite a few useful helpers for stuff like XMLSitemap, which might be useful for you, and has filters that compile several formats (markdown, erb etc) into HTML.
jacob_rezi超过 5 年前
DesignModo&#x27;s Startup Framework should be at least considered - <a href="https:&#x2F;&#x2F;designmodo.com&#x2F;startup&#x2F;app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;designmodo.com&#x2F;startup&#x2F;app&#x2F;</a><p>We&#x27;ve used it to build Rezi - <a href="https:&#x2F;&#x2F;rezi.io" rel="nofollow">https:&#x2F;&#x2F;rezi.io</a>
stadeschuldt超过 5 年前
To all the people using a static site generator. How do collect emails from interested people? Is there a way to easily integrate this into the static site? Ideally it would be a simple form, that collects the data and stores it somewhere? Google Forms comes to mind but it would integrate that nicely into the UI.
评论 #21724983 未加载
nkristoffersen超过 5 年前
I do a lot of GatsbyJS. Now adding Contentful for all landing pages so marketing folk can edit content.
评论 #21711458 未加载
Geee超过 5 年前
I&#x27;d use Gatsby with TinaCMS. Although TinaCMS isn&#x27;t quite ready for primetime yet. <a href="https:&#x2F;&#x2F;tinacms.org" rel="nofollow">https:&#x2F;&#x2F;tinacms.org</a><p>And hosting with Netlify maybe.
raulgracia超过 5 年前
If you already know and you&#x27;re familiar with Vue, why don&#x27;t you use Nuxt.js? You can generate a SPA or a PWA if you don&#x27;t want to have the SSR version.
评论 #21703452 未加载
jcoffland超过 5 年前
How about pug.js for HTML templating and Stylus or Less for the CSS. Then just generate a static site. Static sites are fast and fast is always good SEO.
amirathi超过 5 年前
I am using Webflow and highly recommend it.
rorykoehler超过 5 年前
HTML and js is the way to go if you are a dev. All the other tools are better suited for non-technical people.
pryelluw超过 5 年前
Wordpress with a site builder plugin, a&#x2F;b testing pligin, and seo plugin is what Id go with.
Lucasoato超过 5 年前
Does anyone know if using Angular with Server-Side-Rendering is a good idea? Angular dev here
ufarooqi超过 5 年前
You can use Webflow or if you want something quickly then try Product Hunt’s Ship.
kaushalk超过 5 年前
<a href="https:&#x2F;&#x2F;www.stormviews.net" rel="nofollow">https:&#x2F;&#x2F;www.stormviews.net</a>
te_chris超过 5 年前
Instapage. We use it for all our PPC landing pages and it&#x27;s a great, 0 code option.
nadavram超过 5 年前
Ask Booligoosh
elkynator超过 5 年前
just use www.carrd.co You will get your lander up within half day with all content. Easy to update, easy to learn. Saved a lot of hours and days for me so far. Nothing comes close for me.
评论 #21711616 未加载
kaushalk超过 5 年前
Can Anyody tell which one is best for my youtube views <a href="https:&#x2F;&#x2F;www.stormviews.net" rel="nofollow">https:&#x2F;&#x2F;www.stormviews.net</a> or <a href="https:&#x2F;&#x2F;www.follower18.com" rel="nofollow">https:&#x2F;&#x2F;www.follower18.com</a>