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 🙏

© 2026 – Pkg Stats / Ryan Hefner

hexo-theme-mdx

v0.6.6

Published

A hexo theme with material design

Readme

[!WARNING]

可能有Bug,小心点用,出Bug烦请及时提出Issue反馈

[!NOTE] 你正在阅读中文文档。

Take me to the English documentation.

hexo-theme-mdx

一个具有Material Design设计的Hexo主题

预览(欢迎提交链接)

Yuameshiの窝

AyaneYeの随手记

浏览器兼容性

| 浏览器 | 兼容性 | | -------------------- | ------------- | | Chrome | ✔ 最近5个版本 | | Firefox | ✔ 最近5个版本 | | Edge Chromium | ✔ 最近5个版本 | | Edge EdgeHTML | ❔ 未知 | | Safari | ✔ 最近5个版本 | | Internet Explorer 11 | ❌ 基础支持 |

注意:由于Internet Explorer即将在2022年6月15日停止支持,所以在2022年6月15日之后所有的MDx版本(包括alpha和beta版本)将不再支持Internet Explorer。

要获得更多信息,请参见此页面

开始使用

1.安装MDx

# 使用 npm 或 yarn 安装(推荐)
$ npm install hexo-theme-mdx --save
# 或者使用git clone或git submodule (不推荐)
# 您可以去掉'-b'来获取最新的开发版本(不稳定)
# 如需获取仓库的完整提交历史,请去掉'--depth 1'
$ git clone https://github.com/Yuameshi/hexo-theme-mdx.git themes/mdx -b <版本号(仅限稳定版)> --depth 1
# 若您执行了上一条命令,则此条命令无需执行
$ git submodule add https://github.com/Yuameshi/hexo-theme-mdx.git themes/mdx

2.启用主题

您可以修改 _config.yml 以启用MDx主题

- theme: previous theme
+ theme: mdx

配置主题

1.下载配置文件

# Bash
$ wget https://cdn.jsdelivr.net/gh/Yuameshi/hexo-theme-mdx@main/_config.yml -O _config.mdx.yml
# PowerShell
(New-Object System.Net.WebClient).DownloadFile("wget https://cdn.jsdelivr.net/gh/Yuameshi/hexo-theme-mdx@main/_config.yml", "_config.mdx.yml")

或者拷贝这里的内容到_config.mdx.yml

[!WARNING] 如果您是通过 git 安装的主题并希望将配置文件置于目录顶层,那么您应该删除主题目录中的 _config.yml

2.根据个人需求编辑配置文件

详细的配置请参阅配置文件中的注释。

主题特有功能

特有标签

折叠内容

用法: {% mdx_fold Title isOpen %} Something {% endmdx_fold %}

示例

以下是折叠内容

{% mdx_fold 这是一个默认打开的折叠内容的标题 true %}
这是折叠内容这是折叠内容这是折叠内容
{% endmdx_fold %}
{% mdx_fold 这是一个默认关闭的折叠内容的标题 false %}
这是折叠内容这是折叠内容这是折叠内容
{% endmdx_fold %}

GitHub信息卡

用法: {% mdx_github_info_card repoOwner repoName %}

示例

下面来介绍一个GitHub仓库:

{% mdx_github_info_card Yuameshi hexo-theme-mdx %}

警告内容

用法: {% mdx_warn Title %} Something {% endmdx_warn %}

示例

以下是警告内容

{% mdx_warn 这是一个警告内容的标题 %}
这里是一段警告这里是一段警告这里是一段警告这里是一段警告这里是一段警告
{% endmdx_warn %}