Watermark
Less than 1 minute
VuePress Theme Hope allows you to add watermark with @vuepress/plugin-watermark.
Introduction
You can customize the watermark behavior with plugins.watermark in theme options, or with watermark in page frontmatter.
The simplest way is to set it to true to get a site name watermark:
Enable globally:
import {hopeTheme} from "vuepress-theme-hope"; export defaulthopeTheme({plugins: {watermark: true, }, });Enable in a specific page:
--- watermark: true ---
You can also fully customize the watermark:
Customize globally:
import {hopeTheme} from "vuepress-theme-hope"; export defaulthopeTheme({plugins: {watermark: {watermarkOptions: {content: "Customized Content",movable: true, // other options }, }, }, });Customize in a specific page:
--- watermark: width: 200 height: 200 content: Your Content opacity: 0.5 ---
For detailed configuration, see watermark plugin docs.
Changelog
4/14/25, 7:38 AM
View All Changelog
9e7b3-on253d1-onbdfcb-oncc7db-on