diff options
-rw-r--r-- | archetypes/default.md | 2 | ||||
-rw-r--r-- | exampleSite/content/posts/emoji-support.md | 2 | ||||
-rw-r--r-- | exampleSite/content/posts/markdown-syntax.md | 2 | ||||
-rw-r--r-- | exampleSite/content/posts/placeholder-text.md | 2 | ||||
-rw-r--r-- | exampleSite/content/posts/rich-content.md | 2 | ||||
-rw-r--r-- | exampleSite/zh/content/posts/Basic-Markdown-Preview.md | 2 | ||||
-rw-r--r-- | exampleSite/zh/content/posts/test.md | 2 | ||||
-rw-r--r-- | layouts/_default/summary.html | 4 |
8 files changed, 9 insertions, 9 deletions
diff --git a/archetypes/default.md b/archetypes/default.md index ad7609c..51a441a 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -7,7 +7,7 @@ lastmod: {{ .Date }} draft: true description: "" show_in_homepage: true -show_description: false +description_as_summary: false license: "" tags: [] diff --git a/exampleSite/content/posts/emoji-support.md b/exampleSite/content/posts/emoji-support.md index 008871b..eb1ecb5 100644 --- a/exampleSite/content/posts/emoji-support.md +++ b/exampleSite/content/posts/emoji-support.md @@ -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: [ diff --git a/exampleSite/content/posts/markdown-syntax.md b/exampleSite/content/posts/markdown-syntax.md index 4502576..59f5390 100644 --- a/exampleSite/content/posts/markdown-syntax.md +++ b/exampleSite/content/posts/markdown-syntax.md @@ -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: [ diff --git a/exampleSite/content/posts/placeholder-text.md b/exampleSite/content/posts/placeholder-text.md index 059273c..7fcc790 100644 --- a/exampleSite/content/posts/placeholder-text.md +++ b/exampleSite/content/posts/placeholder-text.md @@ -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: [ diff --git a/exampleSite/content/posts/rich-content.md b/exampleSite/content/posts/rich-content.md index 770b7c3..f26c862 100644 --- a/exampleSite/content/posts/rich-content.md +++ b/exampleSite/content/posts/rich-content.md @@ -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: [ diff --git a/exampleSite/zh/content/posts/Basic-Markdown-Preview.md b/exampleSite/zh/content/posts/Basic-Markdown-Preview.md index 65c50c7..86b94aa 100644 --- a/exampleSite/zh/content/posts/Basic-Markdown-Preview.md +++ b/exampleSite/zh/content/posts/Basic-Markdown-Preview.md @@ -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: [ diff --git a/exampleSite/zh/content/posts/test.md b/exampleSite/zh/content/posts/test.md index ac4ff27..f2a59ec 100644 --- a/exampleSite/zh/content/posts/test.md +++ b/exampleSite/zh/content/posts/test.md @@ -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: [ diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index e7beb20..3c37dbb 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -37,9 +37,9 @@ {{- end -}} </div> - {{- /* Content */ -}} + {{- /* Summary content */ -}} <div class="post-content"> - {{- if .Params.show_description -}} + {{- if .Params.description_as_summary -}} <p> {{- .Params.description -}} </p> |