Skip to content

Latest commit

 

History

74 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virgil Blog

A modern tech-style personal blog powered by VitePress

🚀 Features

  • ⚡️ Fast & Modern - Built with VitePress and Vue 3
  • 🎨 Tech-Style Design - Futuristic and responsive UI
  • 📝 Markdown Support - Write posts in Markdown with code highlighting
  • 🔍 Local Search - Built-in search functionality
  • 💬 Comments - Integrated with Giscus (GitHub Discussions)
  • 📱 Responsive - Optimized for mobile and desktop
  • 🌙 Dark Mode - Auto dark/light theme switching
  • 🚀 GitHub Pages - Easy deployment with GitHub Actions

📦 Tech Stack

  • VitePress - Static site generator
  • Vue 3 - Progressive JavaScript framework
  • Vite - Next generation frontend tooling
  • Giscus - Comments system

🛠️ Development

Prerequisites

  • Node.js 18+
  • npm / yarn / pnpm

Installation

# Install dependencies
npm install

# Start dev server
npm run docs:dev

# Build for production
npm run docs:build

# Preview production build
npm run docs:preview

📁 Project Structure

virgilblog/
├── .github/workflows/    # GitHub Actions
├── docs/
│   ├── .vitepress/      # VitePress config
│   │   ├── config.ts    # Site configuration
│   │   └── theme/       # Custom theme
│   ├── posts/           # Blog posts
│   ├── public/          # Static assets
│   ├── about.md         # About page
│   └── index.md         # Home page
├── .gitignore
├── package.json
├── README.md
└── TODO.md

💬 Setup Comments (Giscus)

This blog uses Giscus for comments. To enable:

  1. Enable Discussions in repository settings
  2. Install Giscus app
  3. Get configuration from giscus.app
  4. Update docs/.vitepress/theme/components/Comment.vue

See GISCUS_SETUP.md for detailed instructions.

🚀 Deployment

This blog is automatically deployed to GitHub Pages via GitHub Actions.

Setup GitHub Pages

  1. Go to repository Settings → Pages
  2. Set Source to "GitHub Actions"
  3. Push to main branch to trigger deployment

Important: Update base path

In docs/.vitepress/config.ts:

// For GitHub Pages (username.github.io/repo-name)
base: '/virgilblog/',

// For custom domain (yourdomain.com)
base: '/',

📝 Writing Posts

Create a new markdown file in docs/posts/:

---
title: Your Post Title
date: 2026-01-26
tags: [tech, vue, blog]
description: Post description
---

# Your Post Title

Your content here...

📄 License

MIT License

👤 Author

Wenjie


Built with ❤️ using VitePress

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors