npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-vtuber-banner

v1.1.0

Published

添加你喜欢的vTuber/vup的卡片到你的博客

Downloads

2

Readme

hexo-vTuber-Banner

添加你喜欢的vTuber/vup的卡片到你的博客

在线演示:demo

文档:中文 English

安装

所需依赖

  • hexo-fs

所需Hexo版本

  • 3.0以上版本

安装vBanner

npm install -s hexo-vtuber-banner

yarn add hexo-vtuber-banner

配置

_config.yml下的配置

Hexo_config.yml中需要添加如下配置

vBanner:
  enable: true	# true or false

配置项说明:

enable

开启让插件是否自动渲染到localtion配置的页面


VJson的配置

执行hexo g命令后会在hexo_config.yml同级目录生成VJson文件夹,里面有vtuber.json配置文件

[{
    Vname: "",
    VLogo: "",
    VBirthday: "",
    VColor: "",
    VBanner: "",
    Vlink: "",
    VSlogan: ""
}]

配置项

| 属性名 | 属性值 | | :---------: | :---------------: | | Vname * | vtuber或vup的名字 | | [VLogo] | logo图片的url | | [VBirthday] | 生日 [xx-xx] | | VColor * | 映像色 [16进制] | | VBanner * | 人物图片url | | Vlink * | 图片来源url | | [VSlogan] | 标语 |

*为必填,[]可选

说明

  • 为了有更好的显示效果。VLogo图片、VBanner图片比例最好为16:9的比例,即 宽:高
  • 图片可以放到VJson文件夹下的bannerImg文件夹下,本地图片url为http://your_site_url/bannerImg/your_image_file
  • 图片的格式:png、jpg、jpeg
  • 图片的链接必须可以直接访问到
  • 建议图片放入OSS

使用

vBanner一共提供了两种使用的方法

  • markdown中使用tag
  • 通过辅助函数引入vBanner

Markdown中书写

{%vBanner [填入vTuber/vup的名字] %}

说明

必须使用json中配置的vTuber/vup的名字

在theme中手动引入

  • ejs模板中
<%- vBanner('vtuber/vup 的名字') %>
  • njk模板中 (next主题v8.0及以上)
{{ vBanner('vtuber/vup 的名字') }}

将上面的代码放到你要添加vBanner的地方,比如要在header中添加,就到header的模板中添加上面的代码

最后

需要反馈请到issue区

各位帅老DD们,觉得不错给个:100:吧

许可证

MIT License