chore(archetype): rename show_description to description_as_summary

This commit is contained in:
Dillon 2020-02-03 23:27:54 +08:00
parent 495f7e651f
commit d8854c7e47
8 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@ lastmod: {{ .Date }}
draft: true draft: true
description: "" description: ""
show_in_homepage: true show_in_homepage: true
show_description: false description_as_summary: false
license: "" license: ""
tags: [] tags: []

View file

@ -7,7 +7,7 @@ lastmod: 2019-10-01T17:55:28+08:00
draft: false draft: false
description: "Guide to emoji usage in Hugo" description: "Guide to emoji usage in Hugo"
show_in_homepage: true show_in_homepage: true
show_description: false description_as_summary: false
license: "" license: ""
tags: [ tags: [

View file

@ -7,7 +7,7 @@ lastmod: 2020-01-01T16:45:40+08:00
draft: false draft: false
description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements." description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
show_in_homepage: true show_in_homepage: true
show_description: false description_as_summary: false
license: "" license: ""
tags: [ tags: [

View file

@ -7,7 +7,7 @@ lastmod: 2019-08-01T18:02:41+08:00
draft: false draft: false
description: "Lorem Ipsum Dolor Si Amet" description: "Lorem Ipsum Dolor Si Amet"
show_in_homepage: true show_in_homepage: true
show_description: false description_as_summary: false
license: "" license: ""
tags: [ tags: [

View file

@ -7,7 +7,7 @@ lastmod: 2019-09-01T18:06:32+08:00
draft: false draft: false
description: "A brief description of Hugo Shortcodes" description: "A brief description of Hugo Shortcodes"
show_in_homepage: true show_in_homepage: true
show_description: false description_as_summary: false
license: "" license: ""
tags: [ tags: [

View file

@ -7,7 +7,7 @@ lastmod: 2019-08-25T16:22:42+08:00
draft: false draft: false
description: "这是一篇用于预览 Markdown 基本语法的文章。" description: "这是一篇用于预览 Markdown 基本语法的文章。"
show_in_homepage: true show_in_homepage: true
show_description: false description_as_summary: false
license: "" license: ""
tags: [ tags: [

View file

@ -7,7 +7,7 @@ lastmod: 2019-08-17T22:41:56+08:00
draft: true draft: true
description: "This is a test page." description: "This is a test page."
show_in_homepage: false show_in_homepage: false
show_description: false description_as_summary: false
license: "" license: ""
tags: [ tags: [

View file

@ -37,9 +37,9 @@
{{- end -}} {{- end -}}
</div> </div>
{{- /* Content */ -}} {{- /* Summary content */ -}}
<div class="post-content"> <div class="post-content">
{{- if .Params.show_description -}} {{- if .Params.description_as_summary -}}
<p> <p>
{{- .Params.description -}} {{- .Params.description -}}
</p> </p>