Revert "Fix description not display on homepage"

This reverts commit 281a3bec39.

Because, description in `config.toml` will show in `<head>`,
the description in `/content/posts/_index.md` will show on the homepage,
below the title as a small text. So this is not a bug.
This commit is contained in:
2021-08-26 01:53:43 +08:00
parent c691742260
commit 40a5c9da9f

View File

@@ -7,8 +7,8 @@
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}} {{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
<header class="home-header"> <header class="home-header">
<div class="home-blob-text-container"> <div class="home-blob-text-container">
{{ with .Site.Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }} {{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }}
{{ with .Site.Params.Description }}<p class="home-blob-text">{{ . }}</p>{{ end }} {{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }}
</div> </div>
{{ with resources.GetMatch .Site.Params.headshotimg -}} {{ with resources.GetMatch .Site.Params.headshotimg -}}
<div class="home-faceshot-card"> <div class="home-faceshot-card">