Created
October 16, 2012 09:42
-
-
Save paulmsmith/3898361 to your computer and use it in GitHub Desktop.
Jekyll Include with var example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## using the includes and setting the var | |
{% assign themetitle = 'text text' %} | |
{% include modules/theme_title.html %} | |
{% assign themetitle = 'new title text' %} | |
{% include modules/theme_title.html %} | |
## contents of theme_title.html | |
<h1 class="theme-title">{{ themetitle }}</h1> | |
## output of the includes | |
<h1 class="theme-title">text text</h1> | |
<h1 class="theme-title">new title text</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment