Created
June 30, 2014 10:23
-
-
Save teammixture/fc0d0006c5d62034f6eb to your computer and use it in GitHub Desktop.
Setting a global variable block at the top of the page, allows any page to inject variables that are available globally...
This file contains hidden or 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
<!doctype html> | |
{% block _vars %}{% endblock %} | |
<html lang="en"> | |
<head> | |
<title>title</title> | |
</head> | |
<body class="{{ _bodyClass }}"> | |
{% block content %}{% endblock %} | |
</body> | |
</html> |
This file contains hidden or 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
{% block _vars %} | |
{% assign _bodyClass = "my-class" %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment