-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swap images for main pages #55
Comments
Something like choosing a random photo from a new directory: |
You'd be able to specify this in the YAML with a tag like:
and grab it in the page layout with: <img src="/img/header/{{ page.header-image }}"> |
@svmatthews @geografa The background image is defined in the global css file (along with In order to implement this we'd need to define the image as an |
What if you added an image inline for the <div class="main col12 contain dark" style="background-image:url({{ page.header-image }});"> And some styles to make sure the background image works properly .main {
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
} |
You could also specify a default background image if one doesn't exist: <div class="main col12 contain dark" style="background-image:url({% if page.header-image %}{{ page.header-image }}{% else %}DEFAULT_IMG.jpg{% endif %});"> |
@svmatthews What CSS framework is this? |
What I mentioned above is framework independent. But the |
Right, I get that, I'm just not sure if all of these presentational classes On Mon, May 11, 2015 at 1:57 PM, Sam Matthews notifications@github.com
|
Not a framework, just based on https://www.mapbox.com/base/ |
Mystery solved 🔍! @rhewitt22 this functionality definitely requires a little rewriting of how the header is structured. I'd be happy to work on this one if you'd like. |
@geografa I'm going to pretend I didn't see this "Feel free to find inspiration in the source code. Just don't use it directly." 😉 |
Right now everything is hard coded into |
keep each page banner interesting. let's swap these out. prob need to adjust the yml and layouts and then put images in a common folder
The text was updated successfully, but these errors were encountered: