Skip to content

Commit eeeb96c

Browse files
committed
[v1.6 beta] add header-mask support, finally!
1 parent 0116190 commit eeeb96c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

_layouts/post.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,21 @@
99
<!-- Post Header -->
1010
<style type="text/css">
1111
header.intro-header{
12+
position: relative;
1213
background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')
1314
}
15+
16+
{% if page.header-mask %}
17+
header.intro-header .header-mask{
18+
width: 100%;
19+
height: 100%;
20+
position: absolute;
21+
background: rgba(0,0,0, {{ page.header-mask }});
22+
}
23+
{% endif %}
1424
</style>
1525
<header class="intro-header" >
26+
<div class="header-mask"></div>
1627
<div class="container">
1728
<div class="row">
1829
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">

0 commit comments

Comments
 (0)