Mobile devtools component powered by vConsole and eruda.

来源:hugo-fixit/cmpt-mdevtools

目录
警告
本文最后更新于 2025-07-04,文中内容可能已过时。

cmpt-mdevtools

Mobile devtools component powered by vConsole and eruda.

Requirements

Install Component

The installation method is the same as installing a theme. There are several ways to install, choose one, for example, install through Hugo Modules:

1
2
3
4
5
[module]
  [[module.imports]]
    path = "github.com/hugo-fixit/FixIt"
+ [[module.imports]]
+   path = "github.com/hugo-fixit/cmpt-mdevtools"

Configuration

1
2
3
4
5
# Mobile Devtools config
[params.mDevtools]
  enable = false
  # "eruda", "vConsole" supported
  type = "eruda"

Inject Partial

In order to Inject the partial cmpt-mdevtools.html into the custom-assets through the custom block opened by the FixIt theme in the layouts/_partials/custom.html file, you need to fill in the following necessary configurations:

1
2
3
4
5
[params]
  [params.customPartials]
    # ... other partials
    head = [ "inject/cmpt-mdevtools.html" ]
    # ... other partials

References

Buy me a coffee~
hugo-fixit 支付宝支付宝
hugo-fixit 微信微信

发现新版本

当前站点有新版本可用。