Navigation and footer
Menu items, dropdowns, the CTA, footer columns and the footer illustration.
Top navigation
nav is a list. A plain item has href; an item with items becomes a dropdown:
nav:
- label: Weekly
labelZh: 周更
href: /weekly/
- label: Writing
labelZh: 写作
items:
- label: Posts
labelZh: 文章
href: /posts/
sub: Long pieces and notes
subZh: 长文与随手记sub is the small line inside a dropdown. labelZh is optional: omit it and the item disappears from the Chinese navigation instead of pointing at a page that does not exist.
The button on the right is a separate block:
navCta:
label: Say hi
labelZh: 打个招呼
href: /contact/Footer columns
footerColumns:
- title: Writing
titleZh: 写作
links:
- { label: Posts, labelZh: 文章, href: /posts/ }Add a column by appending an entry; add a link by appending to links. No component changes.
Footer bottom line and illustration
footer:
copyright: '© {year} {name}' # {year} and {name} are filled in
copyrightZh: '© {year} {name}'
copyrightName: inspos
authorUrl: '' # the author line links back here
authorLabel: ''
text: '' # free text after the copyright
textZh: ''
artLight: /footer/footer-light.webp
artDark: /footer/footer-dark.webpcopyright takes over the whole line; leave it empty and the theme writes © {year} {copyrightName} itself. text is a place for a licence note or anything else that belongs next to the copyright — it is plain text, not Markdown.
The credit
footer:
credit:
show: true
label: Powered by Astro
labelZh: 由 Astro 驱动
href: https://astro.buildRendered as a single 11px line at 60% opacity beneath everything else: present, not advertised. Set show: false to remove it.
The illustration is 1600 × 529 WebP, one file per theme. Replace the two files in public/footer/ keeping the names. Set both paths to "" to drop it.