What is a Laisee?
Laisee are little red envelopes with money. Lightning Laisee contain Bitcoin on the Lightning Network. They can exist in both physical and digital form. You can send a Lightning Laisee to anyone in the world.
This example showcases Next.js's Static Generation feature using Markdown files as the data source.
The blog posts are stored in /_posts
as Markdown files with front matter support. Adding a new Markdown file in there will create a new blog post.
To create the blog posts we use remark
and remark-html
to convert the Markdown files into an HTML string, and then send it down as a prop to the page. The metadata of every post is handled by gray-matter
and also sent in props to the page.
Lightning addresses are dynamically added by external script to public/.well-known/lnurlp
directory
An example address: user@laisee.org
PLEASE BE AWARE THAT ANY CHANGES TO FILES IN THIS DIRECTORY COULD ADVERSELY AFFECT TG USER ACCOUNTS, AS DATA IS NOT SYNCED WITH LNBITS OR POSTGRES
https://laisee-frontpage.vercel.app/
git clone https://github.com/bitkarrot/laisee-frontpage
cd laisee-frontpage
npm i
npm run dev
Your blog should be up and running on http://localhost:3000! If it doesn't work, post on GitHub discussions.
Requires npm 16.10 or higher. npm can be installed as instructed here.
Pushing to this repo will auto deploy with Vercel
Deploy it to the cloud with Vercel (Documentation).
Preview the example live on StackBlitz:
This blog-starter uses Tailwind CSS. To control the generated stylesheet's filesize, this example uses Tailwind CSS' v2.0 purge
option to remove unused CSS.