diff --git a/layouts/index.html b/layouts/index.html index 0b97f3507da8d3beb4080700eb42bcfc843707ff..ffc3782d9c02cb26d8cfac733fdd2832d5f46556 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,11 +2,10 @@ - + - {{ range where .Site.Pages "Kind" "page" }} - {{ if ne .Params.Exclude true }} + {{ range where .Site.Pages "Kind" "page" }} {{ if ne .Params.Exclude true }} {{ if (or .Params.Image .CurrentSection.Params.Image) }} - + {{ end }} - {{ title .Section }} - - {{ .Title }} - - - {{ .Params.Subtitle }} - + + {{ title .Section }} + + {{ .Title }} + + + {{ .Params.Subtitle }} + + - {{ end }} - {{ end }} + {{ end }} {{ end }} diff --git a/static/css/index.css b/static/css/index.css index 4b20a9d4f1c49cf82b2b0177cb0afb3ef96bb45a..2edf65a5969f3513b0dff9fc2f94fe53b0419a3b 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -1,8 +1,26 @@ +.card-item::after { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 2; + background: rgba(0, 0, 0, 0.4); +} +.card-item .card-content { + position: absolute; + height: 100%; + width: 100%; + z-index: 9; + top: 0; + left: 0; +} .card-item .object-cover { - filter: brightness(0.6) blur(1px); + filter: blur(1px); transition: all 0.2s; } .card-item:hover .object-cover { transform: scale(1.02); - filter: brightness(0.6) blur(0); + filter: blur(0); }
- {{ .Params.Subtitle }} -
+ {{ .Params.Subtitle }} +