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 }}