This repository has been archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
properties.ndjson
12 lines (7 loc) · 1.61 KB
/
properties.ndjson
1
2
3
4
5
6
7
8
9
10
---
layout: null
sitemap: false
---
{% for data in site.properties %}
{"_type": "property","title": {{ data.title | jsonify }},"slug":{"_type":"slug","current":{{ data.url | slugify | replace: "properties-", "" | jsonify }}},"propertyType": {{ data.property-type | jsonify }},"mainImage":{"_sanityAsset":"image@file:///Users/brentrobbins/VS/greeleydowntown.com/new/studio/import{{ data.image_path }}","_type":"mainImage","alt":{{ data.title | jsonify }}},"saleOrLease": {{ data.sale-or-lease | jsonify }}, {% if data.square-footage %}"squareFootage": {{ data.square-footage | jsonify }},{% endif %} {% if data.price %}"price": {{ data.price | jsonify }},{% endif %} {% if data.real-estate-agency %}"realEstateAgency": {{ data.real-estate-agency | jsonify }},{% endif %} {% if data.real-estate-agent %}"realEstateAgent": {{ data.real-estate-agent | jsonify }},{% endif %} {% if data.real-estate-email %}"realEstateEmail": {{ data.real-estate-email | jsonify }},{% endif %} {% if data.real-estate-phone %}"realEstatePhone": {{ data.real-estate-phone | jsonify }},{% endif %} "location": {"_type":"location","city": {{ data.title | jsonify }},"state": {{ data.state | jsonify }},"streetAddress": {{ data.address | jsonify }},"zipcode": {{ data.zip | jsonify }}},"body":[{"_type":"block","markDefs":[],"style":"normal","children":[{"_type":"span","marks":[],"text": {{ data.content | markdownify | strip_html | jsonify | replace: "\n", "" }} }]}],"seoSettings":{"_type":"seo","description": {{ data.content | markdownify | strip_html | truncatewords: 160 | jsonify | replace: "\n", "" }},"title": {{ data.title | jsonify }}}}
{% endfor %}