Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore(archetype): rename show_description to description_as_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 3, 2020
1 parent 495f7e6 commit d8854c7
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lastmod: {{ .Date }}
draft: true
description: ""
show_in_homepage: true
show_description: false
description_as_summary: false
license: ""

tags: []
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/posts/emoji-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lastmod: 2019-10-01T17:55:28+08:00
draft: false
description: "Guide to emoji usage in Hugo"
show_in_homepage: true
show_description: false
description_as_summary: false
license: ""

tags: [
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/posts/markdown-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lastmod: 2020-01-01T16:45:40+08:00
draft: false
description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
show_in_homepage: true
show_description: false
description_as_summary: false
license: ""

tags: [
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/posts/placeholder-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lastmod: 2019-08-01T18:02:41+08:00
draft: false
description: "Lorem Ipsum Dolor Si Amet"
show_in_homepage: true
show_description: false
description_as_summary: false
license: ""

tags: [
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/posts/rich-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lastmod: 2019-09-01T18:06:32+08:00
draft: false
description: "A brief description of Hugo Shortcodes"
show_in_homepage: true
show_description: false
description_as_summary: false
license: ""

tags: [
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/zh/content/posts/Basic-Markdown-Preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lastmod: 2019-08-25T16:22:42+08:00
draft: false
description: "这是一篇用于预览 Markdown 基本语法的文章。"
show_in_homepage: true
show_description: false
description_as_summary: false
license: ""

tags: [
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/zh/content/posts/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lastmod: 2019-08-17T22:41:56+08:00
draft: true
description: "This is a test page."
show_in_homepage: false
show_description: false
description_as_summary: false
license: ""

tags: [
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ <h1 class="post-title post-list-title" itemprop="name headline">
{{- end -}}
</div>

{{- /* Content */ -}}
{{- /* Summary content */ -}}
<div class="post-content">
{{- if .Params.show_description -}}
{{- if .Params.description_as_summary -}}
<p>
{{- .Params.description -}}
</p>
Expand Down

0 comments on commit d8854c7

Please sign in to comment.