feat: add env shortcode for conditional content rendering based on Hugo environment

This commit is contained in:
Cell
2025-12-22 13:59:47 +08:00
parent 4cd9a6940e
commit 9bcdbe3325
3 changed files with 25 additions and 6 deletions
+3 -5
View File
@@ -194,8 +194,6 @@ function isObjectLiteral(str) {
## Gist Embed
```md
{{</* gist Lruihao fb8b2d0353465c4d40bf74818db80710 */>}}
```
<!-- {{< gist Lruihao fb8b2d0353465c4d40bf74818db80710 >}} -->
{{< env "production" >}}
{{< gist Lruihao fb8b2d0353465c4d40bf74818db80710 >}}
{{< /env >}}