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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What are the *dynamic* needs for a static site these days?

16 点作者 12s12m将近 8 年前
Static sites are getting more popular by the day. What are the <i>dynamic</i> needs of a site that are holding you back from using a static site generator? Things like comments, search are covered by tools like disqus and algolia. I&#x27;d love to see some examples.

10 条评论

hanniabu将近 8 年前
Always wanted to build a SaaS around services meant for static sites. Feel free to take these ideas and run with them since I don&#x27;t believe I&#x27;ll have the time to follow through with these anymore.<p>1. A content suggestion tool where based off of the current content and past content you&#x27;d build an interest profile so you can populate suggestion widgets on the page, while also not recommending articles they have already read before.<p>2. A user option to hide read content. When they read content, the link will be hidden from the site so they don&#x27;t waste time sorting through old content to get to new content. I was planning on pairing this with the option to hide a story that&#x27;s not of interest for the same reasons. All these articles can be viewed again either by turning off this option(provided the developers integrate it) or by viewing a page with all the content that has been hidden(or however the site developers integrate the api to access hidden content).<p>3. A favorites&#x2F;history tool for users on a site. What I had in mind is being able to allow users to favorite content and this will be saved and accessible by the site developers through API to integrate, such as the obvious favorite&#x27;s page.<p>Had a few others but don&#x27;t remember off the top of my head.
marktangotango将近 8 年前
I built a service last year that provided a SQL database over CORS, access control (user login, registration with email confirmation, and password reset via email). Security was over https and user controlled authentication tokens. The idea was to provide toolkit for building dynamic services for static sites. The archetypical use case was comments for static blogs. I built a simple forum that supported user signup, posting topics etc... as a single page app. Excercised the whole thing.<p>I had some interest but acquired no regular users. Email me if you&#x27;d like more info, I&#x27;ll not promote it here.
评论 #14699776 未加载
DamonHD将近 8 年前
I have some completely static sites and some completely dynamic ones.<p>Most of my sites are served from my solar-powered RPi2 with boring old Apache 2.2 and various site checkers plaster them with As for technical performance. Very little need for JS. You may of course not like my content, but for me for those sites the answer to your question is &quot;none&quot;.<p>You should see the rant about AMP, trending on the HN front page, to see an example of why more JS is not more bettererorz UX... B^&gt;<p>Declaratory and static for me, where possible.
owebmaster将近 8 年前
Some of the dynamic needs also could be static some day. Comments are easy to generate a json everytime, search is a little more difficult.
waibelp将近 8 年前
Depends on the usecase. Sites for local stores need opening hours. Having those information as plain html is enough but that can be extended via ajax to show if store is currently open... So no need for dynamically rendered pages serverside.
评论 #14700374 未加载
evince将近 8 年前
I would say blogging, whitepapers, product updates are the dynamic things which one can update regular on static sites.
binhqx将近 8 年前
sites that are used for adverting may want to show different content based on a users past behavior (new vs returning visitor, for example) it is hard to achieve this in front end javascript without content flashing as one piece of content is replaced with another
iDemonix将近 8 年前
A contact form.
评论 #14708759 未加载
eevilspock将近 8 年前
Access control (login).
评论 #14699764 未加载
id122015将近 8 年前
the LIKE button
评论 #14699761 未加载