Skip to content

Instantly share code, notes, and snippets.

@jackbrighton
jackbrighton / gist:0f9d33b8eec40b98539dff7511651b33
Last active February 20, 2019 20:25
{sn_articles_by_tag}
{preload_replace:pre_logo="IPM_Logo_Main.png"}
{preload_replace:pre_title="Stories on the Supplemental Nutrition Assistance Program from Illinois Public Media"}
{preload_replace:pre_description="Stories on the Supplemental Nutrition Assistance Program from Illinois Public Media and WILL-AM-FM-TV-Online, the public media service at the University of Illinois"}
{preload_replace:pre_keywords="SNAP,Supplemental Nutrition Assistance Program"}
{preload_replace:pre_sidebar_template="embeds/_embed_sidebar_news"}
{preload_replace:pre_channel="features|news|newsnational|21stshow"}
{preload_replace:pre_channel_description_entry_id="48841"}
{preload_replace:pre_channel_template_group="news"}
{preload_replace:pre_tags="snap-series"}
{sn_articles_by_tag}
@jackbrighton
jackbrighton / tableau_styles_for_white_backgrounds
Last active September 7, 2018 19:45
Markup and styles for Tableau embeds on web pages that have a white background color
<!-- It bugs me the way Tableau embeds just kind of blend in with the text on web pages with white backgrounds. It interrupts the flow
of the text without really telling the user "Hey I'm a figure meant to augment the text." So I created this markup with some inline styles,
to give the Tableau embed a background color that matches the background color of Tableau's logo space under the Tableau figure.
I also added styles for a caption underneath. Customize the styles however you wish. Move the inline styles
to your style sheets as desired. And feel free to use my Coal Combustion Waste map :) -->
<div class="tableau-embed" style="background: #F5F5F5; padding: 6px 8px; margin-bottom: 8px;">
<!-- start of Tableau embed code -->
<div class="tableauPlaceholder" id="viz1533417565947" style="position: relative"><noscript><a href='#'><img alt='Coal Combustion Waste Disposal Units at U.S. Power Plants ' src='https:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;Co&#47;CoalCombustionWasteDisposalUnitsatU_S_Po
@jackbrighton
jackbrighton / pages_redirect_template
Created July 30, 2018 20:58
A simple ExpressionEngine template to create a url redirect from a Pages entry
{exp:channel:entries channel='pages'}
{weblinks limit="1"}
<meta http-equiv="REFRESH" content="0;url={link_url}">
{/weblinks}
{/exp:channel:entries}