Hexo_weibo_image

screenshot of Hexo_weibo_image

hexo 使用新浪微博图床自动发布

Overview

The integration of Linux, Hexo, Python, and GitHub presents a powerful solution for deploying a blog with ease. This setup allows users to clone projects directly to their local environment, making it simple to manage content and deploy changes to GitHub effortlessly. With a few modifications, such as entering GitHub credentials and utilizing automation scripts, users can streamline the blogging process, ensuring that their content is always up to date and visually appealing.

This system is especially beneficial for those who frequently use images in their posts, as it replaces local images with links to a cloud-based image hosting service, Sina Weibo, thus avoiding resource wastage. By leveraging automation and efficient file management, it sets a solid foundation for bloggers looking to enhance their online presence.

Features

  • Easy Cloning: Users can clone their Hexo project directly to their local machine, simplifying the initial setup.
  • Automated Deployment: The deploy.py script enables one-click deployment to GitHub, reducing manual steps and saving time.
  • Image Hosting Integration: Automatically uploads local images to Sina Weibo, providing a seamless image management experience.
  • Markdown Support: Maintains standard Markdown formatting for images, ensuring compatibility with Hexo's rendering.
  • MD5 Image Management: Implements MD5 checksums to track image URLs, preventing unnecessary uploads and optimizing resource usage.
  • Customizable Scripts: Scripts like install.sh and expect.sh can be easily modified to fit user-specific credentials or needs.
  • Persistent Database: Utilizes image.db to store image URLs and hashes, streamlining the deployment process by reducing repeated uploads.