fix(home): Don't use div element inside heading

This error appears when we use typeit (with div element) in home-subtitle (with heading element).
PS: We don't need to re-set the class because home-subtitle has already declared the font-size in the style.

Partially fixes: #401

Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
This commit is contained in:
Khusika Dhamar Gusti 2020-11-28 08:53:51 +07:00
parent 9151f85ce9
commit 3649382c34

View file

@ -28,7 +28,7 @@
{{- end -}}
{{- with $profile.subtitle -}}
<h2 class="home-subtitle">
<div class="home-subtitle">
{{- if $profile.typeit -}}
{{- $id := dict "Content" . "Scratch" $.Scratch | partial "function/id.html" -}}
<div id="{{ $id }}" class="typeit"></div>
@ -36,7 +36,7 @@
{{- else -}}
{{- . -}}
{{- end -}}
</h2>
</div>
{{- end -}}
{{- if $profile.social -}}