Banners
This guide explains how to add a banner to the site.
Add a site-wide banner
In src/site/_date/site.js, look for these two lines:
isBannerEnabled: …,
banner: …
Example:
isBannerEnabled: true,
banner:
'PWA Summit: a conference to help everyone succeed with PWAs is happening Oct 6 & 7. [Submit your talk now](https://pwasummit.org).',
Exclude a banner from a page
If you set show_banner: false in a page's YAML frontmatter, then it will
not display a site banner.
这篇文档对你有帮助吗?
谢谢你的反馈!