From 3d3adca77229e83f781c22a28a6786f8cb229968 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Wed, 3 Jul 2024 10:41:24 -0400 Subject: [PATCH] debug mode and fixing build graph --- .drone.yml | 2 ++ build.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index 821a30c..d2697ac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,6 +16,8 @@ steps: mount: - /root/go/pkg/mod/ - name: hugo_prod + depends_on: + - restore_cache image: code.ndumas.com/ndumas/hugo:latest commands: - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com diff --git a/build.sh b/build.sh index 88b31e2..d350d6d 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,8 @@ #! /bin/bash +# debug alias, uncomment for extreme debugging +alias hugo=hugo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints + case $1 in main) hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com