From 41d6a4f7933f3c1e1c6da48f85490c01e1e7fb6a Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Date: Sun, 17 May 2026 00:43:47 +0000
Subject: [PATCH] wip: add filter partial

---
 layouts/_partials/func/debug-cli.html |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/layouts/_partials/func/hooks/debug-cli.html b/layouts/_partials/func/debug-cli.html
similarity index 91%
rename from layouts/_partials/func/hooks/debug-cli.html
rename to layouts/_partials/func/debug-cli.html
index 37d6280..e80e558 100644
--- a/layouts/_partials/func/hooks/debug-cli.html
+++ b/layouts/_partials/func/debug-cli.html
@@ -47,13 +47,16 @@
 {{- else if compare.Eq $severity "error" -}}
   {{- $colourLevel = $colourError -}}
   {{- $severityLabel = "!ERR" -}}
+{{- else if compare.Eq $severity "debug" -}}
+  {{- $colourLevel = $colourComment -}}
+  {{- $severityLabel = "DEBG" -}}
 {{- end -}}
 
 {{- if collections.IsSet . "level" -}}
   {{- $level = (cast.ToInt .level) -}}
 {{- end -}}
 
-{{- if compare.Le $severity "error" -}}
+{{- if compare.Eq $severity "error" -}}
   {{- fmt.Errorf (fmt.Printf "%s%s%s/%s%s %s%s%s" $colourAnanke $namespace $colourComment $colourLevel $severityLabel $colourComment .message $colourReset) -}}
 {{- else -}}
   {{- fmt.Warnf (fmt.Printf "%s%s%s/%s%s %s%s%s" $colourAnanke $namespace $colourComment $colourLevel $severityLabel $colourComment .message $colourReset) -}}

--
Gitblit v1.10.0