-
Notifications
You must be signed in to change notification settings - Fork 0
Skeleton XML Jinja
Roman Manchenko edited this page Feb 7, 2019
·
6 revisions
<jinja><![CDATA[
Hello, {{context.post.roar_authors[0].title}}!
]]></jinja>
{
"context": {
"post": { // is `null` for any page other than Post Page
...
},
"is_amp": Boolean,
"is_mobile": Boolean,
"is_tablet": Boolean,
"is_desktop": Boolean,
"is_writer_home_page": Boolean,
"NoAds": Boolean,
"global_settings": { // contains all the <variable> elements from Global Settings block
"typekit-id": String,
"google-fonts": String,
"text-color": String,
"primary-color": String,
"primary-color-hover": String,
"secondary-color": String,
"font-size": int,
"line-height" int,
"primary-font": String,
"secondary-font": String,
"background-color": String,
"favicon": String, // absolute url
"twitter-site": Striing,
"twitter-site-id": String,
"facebook-page-id": String,
"googleplus_default_href": String, // url like https://plus.google.com/+weekendaswomen,
"pinterest_default_href": String, // url like https://www.pinterest.com/weekendaswomen/,
"instagram_default_href": String, // url like https://www.instagram.com/weekendaswomen/,
"facebook_default_href": String, // url like https://www.facebook.com/weekendaswomen,
"linkedin_default_href": String, // url like https://www.linked.com/in/weekendaswomen,
"twitter_default_href": String, // url like https://twitter.com/weekendaswomen,
"youtube_default_href": String, // url like https://www.youtube.com/user/weekendaswomen,
"instant_article_on_by_default": Boolean,
"applenews_article_by_default": Boolean,
"facebook_page_id": String,
"facebook_app_id": String,
"quantcast_id": String,
"re_ad_placement_id_for_ia": String,
"facebook_app_secret": String,
"applenews_api_key": String,
"use_applenews_article": Boolean,
"disable_utm_params": Boolean,
"mid_ia_articles": String,
"ga_custom_dimensions": Object,
"instagram_client_secret": String,
"instagram_client_id": String,
"applenews_api_secret": String,
"use_instant_articles": Boolean,
"twitter_api_key": String,
"disable_stats_emails": Boolean,
"facebook_page_token": String,
"twitter_api_secret": String,
"applenews_channel_id": String,
"ad_placement_id_for_ia": String,
"title_for_instant_articles": String,
"company_name": String,
"use_kicker_for_ia": Boolean,
"take_live_instant_articles": Boolean,
},
}
}
Refer to Post Variables section for more information about the available variables at post object.