# Access netlify environment variable in shortcode

**URL:** <https://discourse.gohugo.io/t/access-netlify-environment-variable-in-shortcode/37692>\
**Category:** support\
**Tags:** netlify\
**Created:** [March 16, 2022, 10:47am UTC](https://discourse.gohugo.io/t/access-netlify-environment-variable-in-shortcode/37692 "2022-03-16T10:47:05Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [March 21, 2022, 3:16pm UTC](https://discourse.gohugo.io/t/access-netlify-environment-variable-in-shortcode/37692/12 "2022-03-21T15:16:40Z")

</div>

| env var | to get the value |
| --- | --- |
| `HUGO_PARAMS_FOO` | `site.Params.foo` |
| `HUGO_PARAMS_FOO_BAR` | `site.Params.foo.bar` |
| `HUGO_BAZ` | `os.Getenv "HUGO_BAZ"` |

---

_[View the full topic](https://discourse.gohugo.io/t/access-netlify-environment-variable-in-shortcode/37692)._
