Footer & ICP Beian
The site footer appears at the bottom of every page. ModernDuang gives you control over copyright information, social media links, custom HTML content, and ICP record-filing (Beian) numbers required for websites hosted in mainland China.
Configuration
The footer is configured under the footer key in _config.modernduang.yml:
Basic Footer Options
Copyright Line
The copyright line auto-generates from since and author:
- The start year is taken from
since - The end year is the current year (auto-updates)
- If
sinceequals the current year, only a single year is shown:© 2026 YourName
If author is empty, the copyright line uses the site title from Hexo's _config.yml as a fallback.
Powered By
When powered: true, the following line appears below the copyright:
Both "Hexo" and "ModernDuang" are linked to their respective project websites.
Footer Social Icons
The footer can display a row of social icon links, configured under footer.social:
How Icons Resolve URLs
The github and email toggles automatically pull their URLs from your profile social links (profile.social). For example, if you configured:
Then footer.social.github: true will display a GitHub icon pointing to https://github.com/yourname.
If the corresponding social entry is not found in profile.social, the icon is hidden regardless of the toggle.
Custom Social Icons
You can add arbitrary social icons that are not tied to profile links:
See the Social Icons page for the full list of 11 built-in icon names.
Custom Footer HTML
You can inject arbitrary HTML content into the footer using the custom property:
The custom HTML is rendered below the copyright line and above the Beian information. Any valid HTML is accepted, but note that:
- Inline styles are supported
- Script tags may be stripped by Hexo's rendering engine
- The HTML is inserted raw, so be careful to close all tags
ICP Beian (Record Filing)
If your website is hosted in mainland China, you are legally required to display an ICP (Internet Content Provider) record-filing number in the footer. ModernDuang supports three Beian formats:
MIIT Beian (beian.icp)
The standard MIIT (Ministry of Industry and Information Technology) ICP filing number:
Renders as:
The entire string is displayed as-is and linked to https://beian.miit.gov.cn/. You must include the full Beian number exactly as issued by the MIIT.
Moe Beian (beian.moe)
The Moe ICP filing (萌ICP备), a community-managed alternative for personal websites:
Renders as:
The theme automatically prepends "萌ICP备" and appends "号" to your numeric code. Official site: https://icp.gov.moe/join.php.
Chabei Beian (beian.chabei)
The Chabei ICP filing (茶ICP备), another community Beian service:
Renders as:
The theme automatically prepends "茶ICP备" and appends "号". Official site: https://icp.redcha.cn/.
Display Order
If multiple Beian numbers are set, they are displayed in this order:
- MIIT (
icp) - Moe (
moe) - Chabei (
chabei)
Each entry is separated by a vertical bar (|) divider.
Complete Example
Here is a fully configured footer:
This footer would render as:
Related Pages
- Profile Card — Where
githubandemailfooter icons get their URLs - Social Icons — Full list of built-in icon names for custom footer items
- Navigation & Menus — Top nav bar (above the main content, opposite the footer)
