Module: Jekyll
- Defined in:
- lib/starter_web/_plugins/filter/debug.rb,
lib/starter_web/_plugins/i18n/date.rb,
lib/starter_web/_plugins/index/lunr.rb,
lib/starter_web/_plugins/index/lunr.rb,
lib/starter_web/_plugins/index/lunr.rb,
lib/starter_web/_plugins/index/lunr.rb,
lib/starter_web/_plugins/index/lunr.rb,
lib/starter_web/_plugins/filter/debug.rb,
lib/starter_web/_plugins/filter/filters.rb,
lib/starter_web/_plugins/filter/liquify.rb,
lib/starter_web/_plugins/seo/j1-sitemap.rb,
lib/starter_web/_plugins/seo/j1-sitemap.rb,
lib/starter_web/_plugins/filter/minifyJS.rb,
lib/starter_web/_plugins/filter/prettify.rb,
lib/starter_web/_plugins/seo/j1-seo-tags.rb,
lib/starter_web/_plugins/seo/j1-seo-tags.rb,
lib/starter_web/_plugins/seo/j1-seo-tags.rb,
lib/starter_web/_plugins/seo/j1-seo-tags.rb,
lib/starter_web/_plugins/seo/j1-seo-tags.rb,
lib/starter_web/_plugins/seo/j1-seo-tags.rb,
lib/starter_web/_plugins/filter/encryptAES.rb,
lib/starter_web/_plugins/filter/minifyJSON.rb,
lib/starter_web/_plugins/filter/encodeBase64.rb,
lib/starter_web/_plugins/filter/xml_prettify.rb,
lib/starter_web/_plugins/system/load_env_vars.rb,
lib/starter_web/_plugins/helper/symlink_watcher.rb
Overview
~/_plugins/load_env_vars.rb (1) Expose a whitelisted set of environment variables to Liquid templates at build time as ‘<NAME>`.
claude - J1 claudeAI modifications #1
Rationale: Jekyll does NOT expose arbitrary process environment variables to Liquid. This generator injects a curated, explicit whitelist into ‘site.config` before any page is rendered, so adapters / data files / layouts can read secrets (API keys, tokens, …) at build time without committing them to the repository.
SECURITY NOTE: Any value read here is embedded into the generated static assets and is therefore VISIBLE to any visitor of the site. Use this pattern to keep secrets out of version control/YAML config fies only. For values that MUST remain secret from end users, proxy the API call through a backend/serverless function.
Usage:
1. set/export CLAUDE_API_KEY="sk-ant-api03-..." in the runtime env
2. place the value of CLAUDE_API_KEY in an .env file.
Defined Under Namespace
Modules: DebugFilter, EncodeBase64, EncryptAES, ExpandNestedVariableFilter, I18nFilter, J1LunrSearch, J1_Filters, MinifyJS, MinifyJSON, PrettyPrint, Watcher, XmlPrettyPrint Classes: Document, J1EnvVarsGenerator, J1SeoTag, J1Sitemap, Page, PageWithoutAFile, Post, SeoTag