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:
parent
ff7b17393a
commit
e1efac013b
@ -41,7 +41,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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">
|
<section class="header-text">
|
||||||
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
||||||
{{ with .Site.Params.subtitle }}
|
{{ with .Site.Params.subtitle }}
|
||||||
|
@ -6,7 +6,7 @@ main {
|
|||||||
/* Header */
|
/* Header */
|
||||||
|
|
||||||
.global-header {
|
.global-header {
|
||||||
background-image: url(/images/bg.jpg);
|
background: #222 no-repeat center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user