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-theme-pure

v1.0.2

Published

A modern and simple theme for Hexo.

Downloads

15

Readme

Pure

A modern and simple theme for Hexo.

Author Version Hexo Repo Size

image

English | 简体中文

This theme is transplanted from imhanjie/gridea-theme-pure and has been approved by the original author.

Demo

Installation

Install via GitHub

You need to switch to the directory where the site is located before performing the following operations.

npm install hexo-renderer-ejs hexo-renderer-less --save
git clone https://github.com/renbaoshuo/hexo-theme-pure.git themes/pure

Install via NPM

npm install hexo-theme-pure --save
# or use yarn: yard add hexo-theme-pure

Settings

  • favicon: Site logo displayed in browser tabs and bookmarks. (String, default: /favicon.ico)
  • avatar: Site logo displayed on the header. (String, default: /favicon.png)
  • katex: Whether to load KaTeX CSS. (Boolean, default: false)
  • force_https: Mandatory HTTPS. (Boolean, default: false)
  • check_update: Check update before exit. (Boolean, default: false)
  • menus (Array)
    • name: The name displayed on the navigation bar. (String)
    • link: The link of the page to jump to. (String)
    • target: The target of the link. (String, _self or _blank, default: _self)
  • post: Post settings
    • feature: display post image in post list (needs to set feature in post, Boolean, default: true)
  • disqus: DisqusJS Settings
    • enable: Whether to enable DisqusJS. (Boolean, default: false)
    • shortname: The shortname of the Disqus site.
    • api: Your disqus api.
    • apikey: Your disqus api key.
    • admin: Your disqus username.
  • gitalk: Gitalk Settings
    • enable: Whether to enable Gitalk. (Boolean, default: false)
    • clientId: Your GitHub oauth app client id
    • clientSecret: Your GitHub oauth app client secret
    • repository: Your GitHub comment repository
    • owner: Your GitHub username
  • web_analytics: Web Analytics Settings
    • enable: Whether to enable Web Analytics. (Boolean, default: false)
    • google: Google Analytics tracker id.
    • baidu: Baidu Analytics id.
  • footer: The content displayed in the footer.
  • friends: Friends (Array)
    • name: The name displayed on the friends list.
    • link: The link of the page to jump to.
    • logo: The logo displayed on the friends list.

Attention

Code highlight Settings

The theme has built-in highlight style of highlightjs. Please do not enable line_number and wrap because this theme does not support them.

Here is a configuration example:

highlight:
  enable: true
  auto_detect: true
  line_number: false  # This value must be `false`
  wrap: false         # This value must be `false`
  tab_replace: '    ' # 4 spaces
  hljs: true          # This value must be `true`
prismjs:
  enable: false

KaTeX Settings

It is recommended to use hexo-renderer-markdown-it to render Markdown and install @neilsustc/markdown-it-katex to render mathematical formulas.

npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-markdown-it @neilsustc/markdown-it-katex --save

Here is a configuration example:

# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
  render:
    html: true
    xhtmlOut: false
    breaks: true
    linkify: true
    typographer: true
  plugins:
    - '@neilsustc/markdown-it-katex'
  anchors:
    level: 2
    collisionSuffix: 't'
    permalink: false
    permalinkClass: header-anchor
    permalinkSymbol: ''

DisqusJS Settings

You must Register a Disqus Application before using DisqusJS.

Author

hexo-theme-pure © Baoshuo, Released under the GPL-3.0 License.
Authored and maintained by Baoshuo with help from contributors.

Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo