From b2697f13bb28947fa0e9eec8583918bede9d8114 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 3 Jan 2025 13:47:42 -0500 Subject: [PATCH] Auto-detect threejs --- content/blog/drawing-simple-cubes/index.md | 1 - themes/red/layouts/_default/single.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/content/blog/drawing-simple-cubes/index.md b/content/blog/drawing-simple-cubes/index.md index d697157..dded292 100644 --- a/content/blog/drawing-simple-cubes/index.md +++ b/content/blog/drawing-simple-cubes/index.md @@ -8,7 +8,6 @@ tags: - GLSL series: - Graphics Dump -threejs: true math: true --- diff --git a/themes/red/layouts/_default/single.html b/themes/red/layouts/_default/single.html index 446a4f6..eae0b23 100644 --- a/themes/red/layouts/_default/single.html +++ b/themes/red/layouts/_default/single.html @@ -30,7 +30,7 @@ {{ partial "comments" . }} {{ end }} - {{ if .Params.threejs }} + {{ if .HasShortcode "three-scene" }} {{ $imagesloaded := resources.Get "js/three.js" }} {{ if hugo.IsProduction }} {{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }}