A simple blog template that lets you write posts and receive tips through Code Wallet. This blog uses Nextra, a Next.js-based static site generator that makes it easy to write content in Markdown.
- 💰 Receive tips with Code Wallet
- ✍️ Easy writing using Markdown
- 📱 Works on mobile
- 🌙 Dark mode included
- 🖼️ Add images easily
- 🎥 Add YouTube videos
- ⚡ Fast loading
- Clone your repository:
git clone https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git
cd YOUR_REPO_NAME- Install dependencies:
npm install
# or
bun install- Create a
.envfile:
NEXT_PUBLIC_CODE_WALLET_ADDRESS=your_wallet_address
NEXT_PUBLIC_CODE_WALLET_AMOUNT=0.05
- Start the development server:
npm run dev
# or
bun run devVisit http://localhost:3000 to see your blog.
- Fork this repository
- Clone your fork locally
- Make your changes
- Deploy using:
npm run deploy
# or
bun run deployYour blog will be live at https://YOUR_USERNAME.github.io/YOUR_REPO_NAME
For custom domains, go to repository Settings > Pages > Custom domain. GitHub Pages will show you the DNS settings to configure at your domain provider.
- Fork this repository
- Go to Vercel
- Import your forked repository
- Add your environment variables:
NEXT_PUBLIC_CODE_WALLET_ADDRESSNEXT_PUBLIC_CODE_WALLET_AMOUNT
- Deploy
For custom domains, go to your project settings in Vercel > Domains. Vercel will guide you through the DNS configuration.
- Create a new
.mdxfile inpages/posts/ - Add the front matter:
---
title: My Blog Post
date: 2024-01-09
description: A short description
---
# Your content here
<CodeWallet />Put images in the public folder and reference them in your posts:
<img src={process.env.NODE_ENV === 'production' ? 'your-image.jpg' : '/your-image.jpg'} alt="Description" /><iframe
width="560"
height="315"
src="https://www.youtube.com/embed/VIDEO_ID"
frameBorder="0"
allowFullScreen
></iframe>- Install Code Wallet on your phone
- Add your wallet address to
.env:
NEXT_PUBLIC_CODE_WALLET_ADDRESS=your_wallet_address
NEXT_PUBLIC_CODE_WALLET_AMOUNT=0.05
Check out Hello World to see it all in action!
MIT License - Feel free to use this template!
- Next.js - The React Framework
- Nextra - Making blogs easy
- Code Wallet - For tipping