aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-10-13 21:38:30 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-10-13 21:38:30 +0800
commit22515fb8c090568c21a5dbe80e2e38380b53e908 (patch)
treec88ab2f074c284123f904c3f0b11d520d0c75dc3 /layouts/partials
parent0ba82dd1768e941a5c7014b47a5eacaaefcc4f58 (diff)
feat: load console for mobile browsers in debug mode
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 892a857..a1264e6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -50,6 +50,12 @@
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
<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 -->
<link href="{{ "dist/even.min.css?v=2.6.3" | relURL }}" rel="stylesheet">
{{ if .Site.Params.bootcdn -}}