Skip to content

Instantly share code, notes, and snippets.

@mrmartineau
Created January 20, 2017 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmartineau/01bde36c11a6b799112148a8dc83cc16 to your computer and use it in GitHub Desktop.
Save mrmartineau/01bde36c11a6b799112148a8dc83cc16 to your computer and use it in GitHub Desktop.
From my blog post: Creating dynamic layouts with Jekyll
<style>
.hero {
background-color: {{ page.style.color.primary }};
color:{{ page.hero.color }};
background-image: url({{ site.assets.imgPath }}{{ page.hero.bg }}?w=500&{{ site.assets.params }});
}
.hero-title {
color: {{ page.hero.color }};
}
.hero-link {
color: {{ page.hero.color }};
}
.section--quote {
background-color: {{ page.style.color.primary }};
color: {{ page.style.color.text }};
}
</style>
# ----------------------- #
# Styling & Colour scheme #
# ----------------------- #
style:
color:
primary: "#db030f"
secondary: "#000"
text: "#fff"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment