こんにちは、私は Jekyll プロジェクトに取り組んでおり、テンプレート コードから動的に変更したい変数を _config.yml に入れる必要があります。
これは私がやりたいことですが、うまくいきません。これを行うことは可能ですか?
_config.yml で:
my_var: "value"
template.html で:
{% site.my_var = "newvalue" %}
{% case site.my_var %}
{% when "value" %}
//do this
{% when "newvalue" %}
//do this instead
{% endcase %}