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

vuepress-theme-zjblog

v1.5.4

Published

vuepress-theme

Downloads

40

Readme

vuepress-theme-zjblog

vuepress vuepress-theme bgcz 主题模板

博客预览

    这个vuepress主题是我在vuepress-theme-yubisaki这个主题之上 进行修改而来的,原来的这个主题就非常好,只是我想加了一点我想要的内容和改了一点小问题,我搭建的博客猿码集为了能自动打包,所以才上传npm的.

新加内容

  • 增加了百度的自动推送功能及控制开关
  • 增加了个人感觉好玩的footer
  • 增加了一个card用来展示微信公众号
  • 增加二维码,手机扫码阅读
  • 修改了评论会初始化两次的问题(偶尔会出现)
  • 修改404页面样式
  • 如果不设置背景图地址就每次随机一张图片作为背景图
  • 修改分页的问题
  • 增加友情链接配置
  • 修改生成二维码链接为https
  • 修改分页在tags显示的问题
  • 使用actions自动部署到npm
  • 增加获取随机图片的配置
  • 增加网站统计
  • tags的问题修改
  • 标题修改
  • tags页面美化
  • backgroundUrl 不填增加默认随机图

新增的配置

themeConfig:{
  //footer上显示的邮箱地址
  zjemail: '[email protected]',
  //footer上显示的github地址
  zjgithub: '',
  //footer上显示的stackoverflow地址
  zjoverflow:'',
  //新增展示的微信二维码
  zjwx: '',
  //把title和首页的标题区分开了,这是首页logo旁边的字
  zjHome: '猿码集',
  //友情链接
  zjurl:[{url:'https://www.bangechengzi.com/',name:'半个橙子'}],
  //每日一张随机图片地址
  backgroundUrl: 'https://www.bangechengzi.com/img/',
  // 友盟统计代码
  cnzzUrl: '',
  // 百度推送开关
  baidpush: false
}

我的博客配置

module.exports = {
  theme: 'zjblog',
  title: '猿码集-程序猿进击之路',
  description: '猿码集,每天进步一点点.',
  head: [
      ['link', { rel: 'icon', href: '/favicon.ico'}],
      ['link', { rel: 'manifest', href: '/manifest.json' }]
  ],
  ga: 'UA-******-1',
  serviceWorker: true,
  // fuck IE
  evergreen: true,
  markdown: {
    // markdown-it-anchor 的选项
    anchor: { permalink: true },
    // markdown-it-toc 的选项
    toc: { includeLevel: [1, 2] },
    config: md => {
      md.use(require('markdown-it-task-lists')) // 一个 checkbox 的 TODO List 插件
        .use(require('markdown-it-imsize'), { autofill: true }) // 支持自定义 md 图片大小 ![](http://test.png =200x200)
    }
  },
// 主题的一些配置
  themeConfig: {
  serviceWorker: {
    updatePopup: { 
       message: "文章有更新", 
       buttonText: "刷新" 
    }
  },
  zjemail: '[email protected]',
  zjgithub: 'https://github.com/zjblog',
  zjoverflow:'',
  zjwx: 'https://blog-1255892226.cos.ap-beijing.myqcloud.com/xyqs.jpg',
  zjHome: '',
  zjurl:[{url:'https://www.bangechengzi.com/',name:'半个橙子'}],
  baidpush: false,
  cnzzUrl: '',
  // 博客背景图片
  background: '',
  backgroundUrl: '',
  // 博客的 logo
  logo: '/bgcz.png',
  // 定制文章标题颜色
  accentColor: 'black',
  // 每页显示的文章数量
  per_page: 5,
  // 创建文章的时间格式, 不设则不显示 可选 [yyyy-MM-dd HH:mm:ss]
  date_format: 'yyyy-MM-dd',
  // 开启标签功能
  tags: true,
  // vssue 的配置项, 不支持 flipMoveOptions
  comment: {
    owner: 'ZjBlog',
    repo: 'bgcz',
    clientID: '*******',
    clientSecret: '*******',
    admin:['ZjBlog'],
    perPage: 5,
    distractionFreeMode: false  // Facebook-like distraction free mode
  },
  nav: [
    { text: '首 页', link: '/', root: true }, // 指定它为博客根目录
    { text: '笔 记', link: '/home/',root: true},
    { text: '标 签', link: '/tags/', tags: true }, // 指定它为标签目录
    { text: '半个橙子', link: 'https://www.bangechengzi.com/'},
    { text: 'GitHub', link: 'https://github.com/ZjBlog' }
  ]
 }
}

使用actions自动创建问题

使用这个createIssueByLablesaction可以在写完文章推送到github的时候自动创建文章的相关issue,这样就不需要你自己去点击初始了.大家可以试试