Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.24 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.24 KB

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:

[module]
  [[module.imports]]
    path = "github.com/hugo-fixit/FixIt"
+ [[module.imports]]
+   path = "github.com/hugo-fixit/cmpt-mdevtools"

Configuration

# Mobile Devtools config
[params.mDevtools]
  enable = false
  # "eruda", "vConsole" supported
  type = "eruda"

Inject Partial

Inject the cmpt-mdevtools.html into the custom-assets through the custom block opened by the FixIt theme in the layouts/partials/custom.html file:

{{- define "custom-assets" -}}
  {{- partial "inject/cmpt-mdevtools.html" . -}}
{{- end -}}

References