added ability to change the top image for each post

just add an "image" parameter in the front matter of your post
This commit is contained in:
Mark Pitman 2015-06-25 23:05:57 -07:00
parent ff7b17393a
commit e1efac013b
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
{{ end }}
</head>
<body>
<header class="global-header">
<header class="global-header" style="background-image:url({{ if isset .Params "image" }}{{ .Params.image }} {{ else }} /images/bg.jpg {{ end }})">
<section class="header-text">
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
{{ with .Site.Params.subtitle }}

View File

@ -6,7 +6,7 @@ main {
/* Header */
.global-header {
background-image: url(/images/bg.jpg);
background: #222 no-repeat center center;
background-size: cover;
}