Footer Configuration Details
🕒 Reading time: 1 min📝 Words: 12👀 Views: Loading...
Overview
Footer configuration is in stalux/config/footer.yml:
id: footerbuildtime: "2025-05-01T10:00:00" # Build time for uptime displaycopyright: enabled: true startYear: 2024 customText: ""theme: showPoweredBy: true showThemeInfo: truebeian: icp: enabled: false number: "" security: enabled: false text: "Public Security Filing" number: "XXXXXXXXXXXX"badges: - label: "Powered by" message: "Astro" color: "orange" style: "flat-square" href: "https://astro.build/" # ... more badges ... # Collapsible badge group (v1.1+): - title: "Blog Community" collapsed: true items: - label: "Community A" message: "Community" color: "green" href: "https://example.com" - label: "Community B" message: "Navigation" color: "yellow" href: "https://example.org"custom: | <div id="custom-footer-hook"></div>Badge Types
| Type | Fields | Behavior |
|---|---|---|
| Flat badge | label, message, color, style, alt, href |
Renders a single badge |
| Badge group | title, collapsed, items[] |
Collapsible <details> with localStorage persistence |
Common Operations
| Operation | How |
|---|---|
| Update filing numbers | Enable the toggle and fill in the number |
| Simplify badges | Remove items you don’t need |
| Customize copyright | Set customText or adjust startYear |
| Add scripts | Place them in custom (trusted scripts only) |
Footer Configuration Details
Author: xingwangzhe
Article link: https://stalux.needhelp.icu/posts/dd30cf92/
This article is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.