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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Microfeatures in My Blog

4 点作者 adityaathalye10 个月前

2 条评论

adityaathalye10 个月前
For search on static sites, I quite like lunrjs to provide a fast, good enough, client-side-only search experience. I came for the feature set and stayed for the tagline... &quot;Lunr: A bit like Solr, but smaller and not as bright.&quot;<p>Another neat trick is to create an FTS search index in SQLite, and have the client query it with sql.js-httpvfs [1]. Works with github pages just fine [2]... Your web server must respect HTTP range requests.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;phiresky&#x2F;sql.js-httpvfs">https:&#x2F;&#x2F;github.com&#x2F;phiresky&#x2F;sql.js-httpvfs</a><p>[2] With the caveat that you have to commit your database index (lunr&#x27;s json, or sqlite&#x27;s db file) to source, because gh pages does not support serving objects managed by git LFS.
lawn10 个月前
My favorite feature in blogs is that they load fast, are readable, and work well without JavaScript.<p>This should be the baseline but sadly, in 2024, a lot of writers shoot themselves in the foot by having slow, overly complicated sites that get in the way of the content.
评论 #41106055 未加载