Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.