From 40a5c9da9fe75f89d49d95022dc89a62310f5fba Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 26 Aug 2021 01:53:43 +0800 Subject: [PATCH] Revert "Fix description not display on homepage" This reverts commit 281a3bec391c6dce60b3d2084e72fc49d519541d. Because, description in `config.toml` will show in ``, 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. --- layouts/_default/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/home.html b/layouts/_default/home.html index c384333..1b1d36d 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -7,8 +7,8 @@ {{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
- {{ with .Site.Title }}

{{ . }}

{{ end }} - {{ with .Site.Params.Description }}

{{ . }}

{{ end }} + {{ with .Title }}

{{ . }}

{{ end }} + {{ with .Description }}

{{ . }}

{{ end }}
{{ with resources.GetMatch .Site.Params.headshotimg -}}