#NationBuilder Twitter Cards (Version 1.0) Created by Ian Patrick Hines
January 3, 2014
Original: ianpatrickhines.com
License: The MIT License (MIT) (See LICENSE.markdown)
NationBuilder Twitter Cards is a liquid partial template for NationBuilder website themes that enables them to dynamically support Twitter Cards.
To add this functionality to your custom theme:
-
Download the
_twitter_card.html
file in this repository and add it to your NationBuilder theme. -
Add
{% include "twitter_card" %}
in the<head>
section of your_layout.html
template. -
Save & Publish the changes to your theme.
-
Visit Twitter's Card Documentation and apply for approval to display Twitter cards for your site.
-
Tweet links from your site and see awesome, beautifully formatted Twitter cards.
Note: Twitter cards will only display for pages for which you have explicitly set an "Excerpt" in your page's SEO settings. To learn more about how to configure your page's SEO settings in NationBuilder, read this FAQ.