Auto-detect threejs
This commit is contained in:
parent
a82da00d14
commit
b2697f13bb
2 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ tags:
|
||||||
- GLSL
|
- GLSL
|
||||||
series:
|
series:
|
||||||
- Graphics Dump
|
- Graphics Dump
|
||||||
threejs: true
|
|
||||||
math: true
|
math: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
{{ partial "comments" . }}
|
{{ partial "comments" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.threejs }}
|
{{ if .HasShortcode "three-scene" }}
|
||||||
{{ $imagesloaded := resources.Get "js/three.js" }}
|
{{ $imagesloaded := resources.Get "js/three.js" }}
|
||||||
{{ if hugo.IsProduction }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }}
|
{{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue