
The manual comma handling for the sameAs array is brittle and hard to maintain if more social links are added in the future. Using Nunjucks' built-in joiner utility provides a much cleaner and more idiomatic way to handle delimiters in conditional blocks.
"sameAs": [
{%- set comma = joiner(",") -%}
{%- if seo.person.github -%}{{ comma() }}{{ ("https://github.com/" + seo.person.github) | safeJsonLd | safe }}{%- endif -%}
{%- if seo.person.linkedin -%}{{ comma() }}{{ seo.person.linkedin | safeJsonLd | safe }}{%- endif -%}
]
Originally posted by @gemini-code-assist[bot] in #494
Reactions are currently unavailable
Originally posted by @gemini-code-assist[bot] in #494