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-plugin-china-search-console

v2.1.5

Published

VuePress plugin - China search console

Downloads

116

Readme

vuepress-plugin-china-search-console

Home: https://vuepress.qbb.sh/china-search-console/

Source: Github

Vuepress2 plugin: For the Chinese search engine console, include baidu analytics, vuepress page auto push baidu search engine, auto push 360 search engine and auto push toutiao(bytedance) search engine.


针对Vuepress2的SEO增强插件:包含 百度统计,页面自动推送百度收录,页面自动推送360搜索收录, 页面自动推送头条搜索收录

description

Install

yarn add -D vuepress-plugin-china-search-console
# or
npm install -D vuepress-plugin-china-search-console

Use JS:

// .vuepress/config.js
import { searchConsolePlugin } from 'vuepress-plugin-china-search-console'
module.exports = {
  plugins: [
    searchConsolePlugin({
      // options ...
    })
  ]
}

Use TS:

// .vuepress/config.ts
import { defineUserConfig } from 'vuepress'
import { searchConsolePlugin } from 'vuepress-plugin-china-search-console'

export default defineUserConfig({
  plugins: [
    searchConsolePlugin({
      // options ...
    })
  ]
})

Options:

export interface SearchConsolePluginOptions {
  /**
     * @description: baidu 统计id | 填写后开启百度统计分析
     * @see: https://tongji.baidu.com/web/help/article?id=175&type=0&from_query=%E4%BB%A3%E7%A0%81%E8%8E%B7%E5%8F%96&index=0
     */
  baiduId?: string
  /**
     * @tip: 由于默认头条自动推送采用https,使用http网页不会生成
     * @description: 头条搜索 自动推送id | 填写后开启头条搜索自动推送
     * @see: https://zhanzhang.toutiao.com/page/inner/link/auto_include
     */
  toutiaoAutoPushId?: string
  /**
     * @description: 是否开启百度自动推送 | 即页面自动推送收录建议
     * @default: true
     */
  autoPushBaiduSwitch?: boolean
  /**
     * @tip: 2021-01-27 获得官方邮件回复,目前自动收录已不使用
     * @description: 是否开启360自动推送 | 即页面自动推送收录建议
     * @default: false
     */
  autoPush360Switch?: boolean
}

Other

  • 借鉴了 Vuepress2官方插件 - google分析
  • 自动收录 :就是借浪打浪的思想,利用用户访问你的网站,网站发起给搜索引擎,进而提高你网站的曝光度。至于有多少成效其实要看搜索引擎了。
  • 由于百度和360自动收录是代码是固定的,但头条需要一个token,需要去站长平台进行查询,虽然自动推送比较方便但还是建议大家都去站点平台提交站点地图比较好。
  • 其实目前来看最省心的 SEO 是设置 sitemaprobots.txt,vuepress官方也正在提交审核阶段,相信很快就会有了。plugin-sitemap。推出后大家就可以去各个站长平台提交自己的 sitemap 地址了。
  • 本来该插件是只想做百度分析,但是自动推送收录这个随便一起集成了。
  • 建议在百度统计 管理页面点击侧边栏的单页应用设置,开启单页应用数据统计

如何获取百度统计id:

  • 进入百度站长页面 讲解图

如何获取头条自动推送id

  • 进入头条站长页面 讲解图

License

MIT

Copyright (c) 2022-present Qiubin Zheng [email protected] (https://github.com/Zhengqbbb)

I just try my best to make thing well, Could you give a star ⭐ to encourage me ?