fix(index): Use data attributes for home.posts

Partially fixes: #401

Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
This commit is contained in:
Khusika Dhamar Gusti 2020-11-25 20:45:13 +07:00
parent 74c90db9c4
commit fbceb4ad5d
3 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@
} }
} }
.home[posts] { .home[data-home=posts] {
.home-profile { .home-profile {
@include transform(translateY(0)); @include transform(translateY(0));
padding-top: 2rem; padding-top: 2rem;

View file

@ -3,7 +3,7 @@
{{- $profile := .Site.Params.home.profile -}} {{- $profile := .Site.Params.home.profile -}}
{{- $posts := .Site.Params.home.posts -}} {{- $posts := .Site.Params.home.posts -}}
<div class="page home"{{ if ne $posts.enable false }} posts{{ end }}> <div class="page home"{{ if ne $posts.enable false }} data-home="posts"{{ end }}>
{{- /* Profile */ -}} {{- /* Profile */ -}}
{{- if ne $profile.enable false -}} {{- if ne $profile.enable false -}}
{{- partial "home/profile.html" . -}} {{- partial "home/profile.html" . -}}

File diff suppressed because one or more lines are too long