mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-14 00:49:44 +00:00
feat: load console for mobile browsers in debug mode
This commit is contained in:
parent
0ba82dd176
commit
22515fb8c0
2 changed files with 9 additions and 1 deletions
|
@ -42,6 +42,8 @@ copyright = "" # default: author.name ↓ # 默认为下面配
|
||||||
url = "/categories/"
|
url = "/categories/"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
debug = false # If true, load `eruda.min.js`. See https://github.com/liriliri/eruda
|
||||||
|
|
||||||
since = "2017" # Site creation time # 站点建立时间
|
since = "2017" # Site creation time # 站点建立时间
|
||||||
|
|
||||||
# site info (option) # 站点信息(可选)
|
# site info (option) # 站点信息(可选)
|
||||||
|
|
|
@ -50,6 +50,12 @@
|
||||||
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
|
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
|
||||||
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | relURL }}" color="#5bbad5">
|
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | relURL }}" color="#5bbad5">
|
||||||
|
|
||||||
|
<!-- debug -->
|
||||||
|
{{- if .Site.Params.debug }}
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/eruda@1.2.6/eruda.min.js" integrity="sha256-Jmz4bc3kp+rRrXX2tGadNBKFLwtzMapr8kHABxSAAP8=" crossorigin="anonymous"></script>
|
||||||
|
<script>eruda.init();</script>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
<link href="{{ "dist/even.min.css?v=2.6.3" | relURL }}" rel="stylesheet">
|
<link href="{{ "dist/even.min.css?v=2.6.3" | relURL }}" rel="stylesheet">
|
||||||
{{ if .Site.Params.bootcdn -}}
|
{{ if .Site.Params.bootcdn -}}
|
||||||
|
|
Loading…
Reference in a new issue