sync data.json variables to be used in frontmatter #1796
Unanswered
yansusanto
asked this question in
Q&A
Replies: 1 comment 13 replies
-
There might be a way using ---
title: HOMEPAGE (ALABAMA)
key: alabama
---
{%- assign state = data[key] -%}
tanf: {{ state.tanf }}
snap: {{ state.snap }}
ui: {{ state.ui }}
medicaid: {{ state.medicaid }} Where |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm pretty new to 11ty and working on a project. If I may ask if there is a way for me to sync global data to be as frontmatter data.
Say I have this on my data.json,
alabama.md
Is there a way for me to use data from data.json?
Thank you. Any advice is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions