Site variables
| Variable | Description |
|---|---|
| slug | http://[slug].yourdomain.com/ e.g. www |
| name | Name of your site e.g. Abe Lincoln for President |
| long_name | Longer name |
| candidate_name_or_site_name | Candidate's name, or the site name if no candidate e.g. Abe Lincoln |
| candidate_first_name_or_site_name | Candidate's first name, or the site name if no candidate e.g. Abe |
| title | Default page title, important for search engines e.g. Abe Lincoln for President 2012 |
| headline | Site headline e.g. Abe Lincoln |
| subheadline | Site subheadline e.g. for President |
| url | URL of homepage without the http e.g. abeforprez.com |
| full_url | URL of homepage e.g. https://abeforprez.com/ |
| mobile_menu_url | URL of mobile menu e.g. /mobile_menu |
| language | Default site language which can be configured in the site settings e.g. {{ site.language }} |
| page_tags | Page tags used on the site e.g. {% if site.page_tags contains "saturday" %} |
| ask_for_volunteers? | Is asking for volunteers enabled on this site? |
| ask_for_mobiles? | Ask for mobile numbers whenever possible |
| ask_to_publish_to_stream? | Is the checkbox for asking people if they want to keep their form submissions turned on? |
| show_public_profiles? | Are public profiles turned on? |
| show_parent_in_nav_dropdown? | Include the parent page in the nav menu dropdowns |
| is_homepage? | Are you currently on the homepage? e.g. {% if site.is_homepage? %} |
| homepage | Home page, a page object e.g. {{ site.homepage.url }} |
| has_button1? | Is there a big button #1? e.g. {% if site.has_button1? %} |
| button1_text | Text for the first button e.g. {{ site.button1_text }} |
| button1_page | Page to link to for the first button e.g. {{ site.button1_page.url }} |
| has_button2? | Is there a big button #2? e.g. {% if site.has_button2? %} |
| button2_text | Text for the first button e.g. {{ site.button2_text }} |
| button2_page | Page to link to for the second button e.g. {{ site.button2_page.url }} |
| has_button3? | Is there a big button #3? e.g. {% if site.has_button3? %} |
| button3_text | Text for the third button e.g. {{ site.button3_text }} |
| button3_page | Page to link to for the third button e.g. {{ site.button3_page.url }} |
| has_donation_page? | Is there a primary donation page? e.g. {% if site.has_donation_page? %} |
| donation_page | Primary donation page e.g. {{ site.donation_page }} |
| has_membership_page? | Is there a primary membership page? e.g. {% if site.has_membership_page? %} |
| has_volunteer_page? | Is there a primary volunteer page? e.g. {% if site.has_volunteer_page? %} |
| volunteer_page | Primary volunteer page e.g. {{ site.volunteer_page.url }} |
| has_rule_page? | Is there a rules page? e.g. {{ site.has_rule_page? }} |
| rule_page | Rules page e.g. {{ site.rule_page }} |
| has_friends_page? | Is there a primary find friends page? e.g. {% if site.has_friends_page? %} |
| friends_page | Primary find a friends page e.g. {{ site.friends_page.url }} |
| has_splash_page? | Is there a splash page? e.g. {% if site.has_splash_page? %} |
| splash_page | Splash page for this site (optional) e.g. {{ site.splash_page.url }} |
| has_signup_page? | Is there a signup page? e.g. {% if site.has_signup_page? %} |
| signup_page | Signup page for this site e.g. {{ site.signup_page.url }} |
| has_invoice_page? | Is there a primary invoices page? e.g. {% if site.has_invoice_page? %} |
| invoice_page | Primary invoices page e.g. {{ site.invoice_page.url }} |
| has_broadcaster? | Is there an official broadcaster for this site e.g. {% if site.has_broadcaster? %} |
| broadcaster | Official broadcaster for this site |
| has_facebook? | Is there an official facebook or open graph page? e.g. {% if site.has_facebook? %} |
| has_facebook_page? | Is there an official facebook page? e.g. {% if site.has_facebook_page? %} |
| is_facebook_like_dark? | Is the Facebook like button set to dark (for darker themes) |
| facebook_colorscheme | Facebook color scheme variable |
| open_graph_broadcaster | The broadcaster who uses this site as their homepage e.g. {{ site.open_graph_broadcaster.open_graph_type }} |
| has_meta_image? | Does the site have a primary image? |
| meta_image_url | Logo used by Facebook share/digg/etc. e.g. <img src="{{ site.meta_image_url }}" /> |
| meta_image_medium_url | Image used by Facebook share/digg/etc. e.g. <img src="{{ site.meta_image_medium_url }}" /> |
| meta_image_large_url | Image used by Facebook share/digg/etc. e.g. <img src="{{ site.meta_image_large_url }}" /> |
| has_header_image? | Does the site have a header image? |
| header_image_url_960 | 960px wide header image e.g. <img src="{{ site.header_image_url_960 }}" /> |
| header_image_url_980 | 980px wide header image e.g. <img src="{{ site.header_image_url_980 }}" /> |
| header_image_url_1026 | 1026px wide header image e.g. <img src="{{ site.header_image_url_1026 }}" /> |
| header_image_url_2048 | 2048px wide header image e.g. <img src="{{ site.header_image_url_2048 }}" /> |
| has_background_image? | Does the site have a background image? (used by some themes) |
| background_image_url | e.g. <img src="{{ site.background_image_url }}" /> |
| footer_content | Content for footer e.g. {{ site.footer_content }} |
| activities | A paginated array of the 20 most recent public activity objects for the entire nation |
| root_nav_pages | All the pages in the main nav e.g. |
| root_nav_pages_reversed | Same as previous, just in reverse order |
| supporter_pages | All the pages in the supporter nav e.g. |
| most_recent_pages | A paginated array of the 20 most recently published page |
| most_recent_petition_pages | A paginated array of the 20 most recently published petition pages |
| most_recent_endorsement_pages | A paginated array of the 20 most recently published endorsement pages |
| most_recent_blog_post_pages | A paginated array of the 20 most recently published blog post pages |
| most_recent_suggestion_pages | A paginated array of the 20 most recently published suggestion pages |
| most_recent_faq_pages | A paginated array of the 20 most recently published faq pages |
| most_recent_question_pages | A paginated array of the 20 most recently published question pages |
| most_recent_press_release_pages | A paginated array of the 20 most recently published press release pages |
| most_recent_survey_pages | A paginated array of the 20 most recently published survey pages |
| upcoming_event_pages | A paginated array of 20 upcoming event pages |
| recent_supporters | A list of recent supporters by name e.g. {{ site.recent_supporters }} |
| recent_supporters_with_pictures | A list of recent supporters by picture e.g. {{ site.recent_supporters_with_pictures }} |
| random_supporters | A randomized list of 20 supporters e.g. {{ site.random_supporters }} |
| random_supporters_with_pictures | A randomized list of 20 supporters with pictures e.g. {{ site.random_supporters_with_pictures }} |