Fix description not display on homepage

This commit is contained in:
2021-08-23 17:08:21 +08:00
parent f1e4ec6217
commit 281a3bec39

View File

@@ -7,8 +7,8 @@
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
<header class="home-header" style="background-image: url('{{ "img/home-blob.svg" | absURL }}');">
<div class="home-blob-text-container">
{{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }}
{{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }}
{{ with .Site.Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }}
{{ with .Site.Params.Description }}<p class="home-blob-text">{{ . }}</p>{{ end }}
</div>
{{ with resources.GetMatch .Site.Params.headshotimg -}}
<div class="home-faceshot-card">