- hexo-plugin-commentbox
- hexo-plugin-cookieconsent
- hexo-plugin-apache-echarts
- hexo-plugin-i18n-canonical
- hexo-generator-i18n-sitemap
- hexo-generator-i18n-archive
- hexo-generator-i18n-tag
- hexo-generator-i18n-category
- hexo-github-card-inline
Building a static site with Hexo doesn’t mean sacrificing interactivity. I developed several plugins to enhance Hexo blogs with comments, GitHub integration, and other features.
💬 hexo-plugin-commentbox
Integrate commentbox.io commenting system into your Hexo blog posts. Add community engagement without server-side infrastructure.
- Enabled by default on all pages
- Granular control via front matter
- Simple integration
🍪 hexo-plugin-cookieconsent
Add GDPR-compliant cookie consent banner to your Hexo site. Lightweight integration with vanilla-cookieconsent library.
- Customizable consent modal
- Multi-language support
- Category-based cookie management
📊 hexo-plugin-apache-echarts
Add interactive Apache ECharts visualizations to your Hexo posts. Create data-driven charts with simple tag syntax.
- Interactive client-side charts
- CDN-based library loading
- All ECharts chart types supported
🌐 hexo-plugin-i18n-canonical
Manage canonical URLs for multilingual sites. Automatically adds canonical and hreflang tags for better SEO.
- Automatic canonical tags
- Hreflang tags for all languages
- Improves multilingual SEO
🗺️ hexo-generator-i18n-sitemap
Generate sitemap.xml for multilingual sites with proper language filtering.
- Generates sitemap.xml and sitemap.txt
- Excludes homepage duplicates
- Multilingual support
📚 hexo-generator-i18n-archive
Generate archive pages for each language with proper filtering.
- Language-specific archives
- Year, month, day organization
- Pagination support
🏷️ hexo-generator-i18n-tag
Generate tag pages for each language with filtering and sorting.
- Language-specific tag pages
- Redirect posts appear last
- Pagination support
📁 hexo-generator-i18n-category
Generate category pages for each language with filtering and sorting.
- Language-specific category pages
- Redirect posts appear last
- Pagination support
🎴 hexo-github-card-inline
Render GitHub user and repository cards inline within your posts. Showcase profiles and projects with visual, data-rich representations.
- User profile cards with statistics
- Repository cards with metrics
- Language distribution charts
hexo-plugin-commentbox
Security Considerations
⚠️ External Script Loading
This plugin loads external JavaScript from unpkg.com/commentbox.io. Be aware:
- External scripts can access your page content and user data
- The script is loaded from a CDN without Subresource Integrity (SRI) verification
- Changes to the external script are outside your control
- Consider your site's Content Security Policy (CSP) requirements
📝 Disclaimer
This project is not affiliated with, endorsed by, or connected to commentbox.io in any way. It is an independent plugin created to integrate the commentbox.io service into Hexo blogs.
hexo-plugin-cookieconsent
A Hexo plugin for quickly adding cookie consent functionality to your website using the lightweight vanilla-cookieconsent library.
Features
- GDPR Compliant: Helps meet EU cookie consent requirements
- Lightweight: Minimal performance impact on your site
- Customizable: Full control over appearance and behavior
- Multi-language: Built-in support for multiple languages with auto-detection
- Category Management: Organize cookies by necessity, functionality, and analytics
Configuration Example
cookieconsent:
enable: true
injectJs: true
cssUrl: "/cache/cookieconsent.css"
options:
guiOptions:
consentModal:
layout: box
position: bottom right
categories:
necessary:
readOnly: true
functionality: {}
analytics: {}
language:
default: en
autoDetect: browser
Cookie Categories
📋 Category Types
Necessary Cookies (Always enabled) Essential for site functionality - security, navigation, and core features.
Functionality Cookies Remember user preferences like language settings and login details.
Analytics Cookies Help understand visitor behavior to improve site performance.
Use Cases
- GDPR Compliance: Meet European privacy regulations
- User Transparency: Clearly communicate cookie usage
- Privacy Control: Let users manage their cookie preferences
- Multi-region Sites: Auto-detect language and show appropriate consent text
💡 Performance Tip
Set injectJs: false and manually include the script in your theme for better control over loading timing.
hexo-plugin-apache-echarts
Add interactive Apache ECharts visualizations to your Hexo posts with simple tag syntax. View the ECharts gallery for chart examples.
Features
- Interactive client-side charts: Rich, responsive data visualizations
- CDN-based ECharts library loading: No local dependencies required
- Configurable ID generation: Random or hash-based chart IDs
- Automatic ECharts script injection: Zero manual setup
- Support for all ECharts chart types: Bar, line, pie, scatter, and more
Configuration Example
echarts:
enable: true
js_url: /cache/echarts.min.local.js
id_generation: 'hash'
hexo-plugin-i18n-canonical
Hexo plugin to manage canonical URLs for multilingual sites.
Features
- Automatically adds canonical tags: To all pages for proper SEO
- Automatically adds hreflang tags: For all language variants
- Points translated content to source language: Default: English
- Supports custom canonical language: Via canonical_lang front matter
- Supports zh-TW, zh-CN, and ja translations: Built-in multilingual support
- Skips pages with existing canonical tags: Prevents duplication
- Improves SEO for multilingual content: Better search engine indexing
hexo-generator-i18n-sitemap
Generates sitemap.xml for multilingual sites.
Features
- Generates sitemap.xml and sitemap.txt: With all pages and posts
- Excludes homepage index.html duplicates: Cleaner sitemap structure
hexo-generator-i18n-archive
Generates archive pages for each language.
Features
- Generates archive pages for each language: Language-specific filtering
- Filters posts by language: Only shows relevant posts
- Organizes posts by year, month, and day: Chronological organization
- Supports pagination: Handle large archives
- Can be toggled on/off via configuration: Performance control
hexo-generator-i18n-tag
Generates tag pages for each language with filtering and sorting.
Features
- Generates tag pages for each language: Language-specific filtering
- Filters posts by language: Only shows relevant posts
- Sorts posts with redirect posts appearing last: Better user experience
- Supports pagination: Handle large tag collections
- Can be toggled on/off via configuration: Performance control
hexo-generator-i18n-category
Generates category pages for each language with filtering and sorting.
Features
- Generates category pages for each language: Language-specific filtering
- Filters posts by language: Only shows relevant posts
- Sorts posts with redirect posts appearing last: Better user experience
- Supports pagination: Handle large category collections
- Can be toggled on/off via configuration: Performance control
hexo-github-card-inline
User Cards
Display comprehensive GitHub user profiles with statistics and language breakdown:
Repository Cards
Showcase specific repositories with key metrics:
neoalienson/pachinko
An iOS 'pinball' game using SpriteKit and Swift with physics engine
These plugins are open source and available on GitHub. This website is built with these plugins. Installation instructions and configuration details can be found in each repository. Contributions, issues, and feedback are welcome.