Skip to content

ML-Memory-Profiling-Group/blog_v2

Repository files navigation

ThoughtLite

ThoughtLite Light Mode Preview ThoughtLite Dark Mode Preview

GitHub Release GitHub License

A modern Astro theme, focused on content creation 🌟

English 简体中文 日本語

Note

  • main branch✅: Static build, can be deployed on any static hosting platform.
  • cloudflare branch: Enables built-in comment system, only deployable on Cloudflare.

🎬 Live Demo: Vercel

✨ Features

  • Responsive Design - Adaptive for mobile, tablet, and desktop.
  • Light / Dark Mode - Auto-follows system preference with manual toggle support.
  • CSR Dynamic Content Filtering - List filtering and pagination via History API.
  • i18n Support - Easy to extend and manage multilingual content.
  • Sitemap & Feed Subscription - Automated generation of Sitemap and Atom Feed.
  • OpenGraph Support - Built-in Open Graph meta tags for optimized social media sharing.

⚡️ Quick Start

Using Astro Command

Run the following command:

npx create-astro@latest --template tuyuritio/astro-theme-thought-lite

# Follow the interactive prompts to create the project

cd <your-project-name>
npm run dev     # Will start the local development server at http://localhost:4321 by default

Using Template

  1. Use this template to create a new repository or fork this repository.
  2. Run the following commands:
git clone <your-repo-url>
cd <your-repo-name>
npm install
npm run dev     # Will start the local development server at http://localhost:4321 by default

🔧 Configuration

Customize site configuration and internationalization (i18n) by modifying the following files:

  • .env
  • astro.config.ts
  • site.config.json

For details, refer to the Configuration Guide.

🚀 Deployment

The current branch can be fully static built and deployed on any static hosting platform.

For deployment methods on various platforms, refer to the Astro Official Deployment Guide.

🔄 Updates

Run the following commands to sync upstream updates:

git remote add theme https://github.com/tuyuritio/astro-theme-thought-lite.git
git fetch theme
git merge theme/main    # Add `--allow-unrelated-histories` flag for first update
npm install

✍️ Content Creation

Content creation is centralized in the src/content directory, mainly including:

  • note - Notes, focused on carefully crafted and detailed long-form works
  • jotting - Jottings, lightweight and immediate content recording
  • preface - Preface, displayed on the homepage as the first impression
  • information - Information, containing various descriptive content

All content sections support multiple languages. Create the corresponding language directory to start creating content. For details, refer to the Content Creation Guide.

🤝 Contributing

All kinds of contributions are welcome and appreciated!

  • Help promote the project or assist other users
  • Report issues or suggest new features
  • Improve documentation or help with internationalization (i18n)
  • Submit code contributions - see the Code Contribution Guide for more details

🙏 Acknowledgments

Tech Stack

Inspiration

📜 License

This project is licensed under GPLv3, allowing free modification and distribution, but the original copyright notice must be retained.

About

a better-looking blog

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors