1.1.2 • Published 7 months ago

hexo-banner v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Add a custom banner at the top of each page that supports HTML and Markdown formatted text content.

在每个页面的顶部添加一个自定义的 Banner,支持 HTML 和 Markdown 格式的文本内容。

🏠 主页

https://github.com/CaoMeiYouRen/hexo-banner#readme

📦 依赖要求

  • node >=16

🚀 安装

npm install hexo-banner

👨‍💻 使用

_config.yml 中进行如下配置。

banner:
  content: |
    # 这是一段 banner
  position: top
  styles:
    background-color: #f8f8f8
    color: #333
  css: |
    @media (min-width: 768px) {
      .hexo-banner {
        margin-left: 240px;
      }
    }
属性描述类型可选值
content支持 Markdown 的内容。string-
position插入位置,支持插入到 header 或 footer 中。stringtop | bottom
styles设置行内样式,对象类型。object-
css设置 CSS,字符串类型。string-

🛠️ 开发

npm run dev

🔧 编译

npm run build

🔍 Lint

npm run lint

💾 Commit

npm run commit

👤 作者

CaoMeiYouRen

🤝 贡献

欢迎 贡献、提问或提出新功能!如有问题请查看 issues page. 贡献或提出新功能可以查看contributing guide.

💰 支持

如果觉得这个项目有用的话请给一颗⭐️,非常感谢

🌟 Star History

Star History Chart

📝 License

Copyright © 2024 CaoMeiYouRen. This project is MIT licensed.


This README was generated with ❤️ by cmyr-template-cli

1.1.1

7 months ago

1.1.2

7 months ago

1.1.0

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago