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-bgmtv-bangumi

v1.0.6

Published

hexo 番组计划番剧页

Downloads

14

Readme

hexo-bilibili-bangumi

介绍

为 Hexo 添加番剧页面,修改自@HCLonely 大佬的代码https://github.com/HCLonely/hexo-bilibili-bangumi 目前为了方便github action部署hexo发布此包, 欢迎安装

支持从BilbiliBangumi番组计划选择一种获取数据

BiliBili Demo Bangumi番组计划 Demo (待续)

安装

$ npm install hexo-bgmtv-bangumi --save

配置

将下面的配置写入站点的配置文件 _config.yml 里(不是主题的配置文件).

bangumi:
  enable: true
  path:
  vmid:
  title: '追番列表'
  quote: '生命不息,追番不止!'
  show: 1
  loading:
  metaColor:
  color:
  webp:
  progress:
  bgmtv:
  • enable: 是否启用
  • path: 番剧页面路径,默认bangumis/index.html
  • vmid: 哔哩哔哩番剧页面的 vmid(uid),如何获取?
  • title: 该页面的标题
  • quote: 写在页面开头的一段话,支持 html 语法,可留空。
  • show: 初始显示页面:0: 想看, 1: 在看, 2: 看过,默认为1
  • loading: 图片加载完成前的 loading 图片
  • metaColor: meta 部分(简介上方)字体颜色
  • color: 简介字体颜色
  • webp: 番剧封面使用webp格式(此格式在safari浏览器下不显示,但是图片大小可以缩小 100 倍左右), 默认true
  • progress: 获取番剧数据时是否显示进度条,默认true
  • bgmtv: 从Bangumi番组计划获取数据,评分等,设置为true便激活,同时相应修改部分显示内容,webp和progress暂不支持

使用

  1. 从Bilibili获取数据,bgmtv不填或false, 从Bangumi番组计划获取数据, bgmtv填true
  2. hexo generatehexo deploy之前使用hexo bangumi -u命令更新番剧数据!
  3. 删除数据命令:hexo bangumi -d

获取 vmid

需要将追番列表设置为公开!

  • 使用Bangumi番组计划数据 登录Bangumi番组计划后,点击自己头像或者名字,得到形如https://bangumi.tv/user/xxxxxx网址最后的一串数字就是 vmid

示例

示例图片

手动添加番剧数据

只支持从B站获取数据的方式 从B站获取数据时,因为某些番剧在哔哩哔哩上没有,但是又想在hexo中展示,可以手动添加番剧数据!

sources/_data/ 目录下新建文件,命名为 extra_bangumis.json ,并添加以如下内容:

{
  "watchedExtra": [
    {
      "title": "缘之空", 
      "type": "番剧", 
      "area": "日本", 
      "cover": "https://cdn.jsdelivr.net/gh/mmdjiji/bangumis@main/Yosuga-no-Sora/cover.jpg", 
      "totalCount": "全12话", 
      "id": 0,
      "follow": "不可用", 
      "view": "不可用", 
      "danmaku": "不可用", 
      "coin": "不可用", 
      "score": "不可用", 
      "des": "远离都市的田园小镇,奥木染。春日野悠带着妹妹穹,来到了这座城镇。坐落在这里的是,儿时暑假经常造访的充满回忆的已故祖父的家。双亲因意外事故而丧生,变得无依无靠..."
    }
  ]
}

title 是番剧的标题,cover 是封面图链接, des 是简介,上述字段均根据需要修改。

另外除了 watchedExtra 数组,还可以在后面添加新的数组,可用数组名如下:

|可用数组名|含义| |-|-| |wantWatchExtra|想看| |watchingExtra|在看| |watchedExtra|看过|

需要注意,在两个数组之间需要用 , 分隔。

Lisense

Apache Licence 2.0