Quick Start
Get your blog up and running in just a few minutes.
Run Locally
Prerequisites
-
Create your repository
Click the Use this template button on the girok-md repository to create your own repository.
-
Clone and install dependencies
Terminal window git clone https://github.com/YOUR_USERNAME/YOUR_REPO.gitcd YOUR_REPOnpm installTerminal window git clone https://github.com/YOUR_USERNAME/YOUR_REPO.gitcd YOUR_REPOpnpm install -
Configure your blog
Edit the
setting.tomlfile:setting.toml # Absolute path to your markdown filessource_root_path = "/path/to/your/obsidian/vault"# Blog nameblog_name = "My Blog"# Site URL (for SEO)site_url = "https://your-username.github.io"# Locale (en or ko)locale = "en" -
Sync your posts
Terminal window npm run syncThis command scans your markdown folder and copies files with
publish: truein their frontmatter. -
Start the development server
Terminal window npm run devVisit http://localhost:4321 to see your blog!
Quick Start with Docker
Prerequisites
- Docker
- Docker Compose
- A folder with markdown files (e.g., Obsidian vault)
Prefer Docker? You can run girok-md with Docker Compose in 4 steps.
-
Clone the repository
Terminal window git clone https://github.com/7loro/girok-md.gitcd girok-md -
Prepare a test markdown file
Create a markdown file with
publish: truefrontmatter in any folder:Terminal window mkdir -p ~/my-postscat > ~/my-posts/hello.md << 'EOF'---title: Hello Worldpublish: true---My first blog post!EOF -
Update the volume path in
docker-compose.ymlReplace
/path/to/your/markdown-folderwith your actual markdown folder path:docker-compose.yml volumes:# Example: ~/my-posts, /Users/me/ObsidianVault, etc.- ~/my-posts:/source:ro- ./setting.toml:/app/setting.toml:ro -
Start with Docker Compose
Terminal window docker compose up -dVisit http://localhost:8080 to see your blog!
Next Steps
- Configuration - Learn about all configuration options
- Writing Posts - Learn how to write and format posts
- Deployment - Deploy your blog to GitHub Pages