From 9d5966096f7ec50d3d358353cd5248d9dffb401d Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 19 Mar 2023 14:42:09 -0400 Subject: [PATCH] update templates, place holder posts to include end_section shortcode where appropriate --- content/tips/_example.md | 7 +++- content/tips/_placeholder.md | 38 +++++++++++++++++++ .../hugo-xmin/static/admin/desktop/config.yml | 10 +++-- .../hugo-xmin/static/admin/mobile/config.yml | 17 +++++---- 4 files changed, 61 insertions(+), 11 deletions(-) create mode 100644 content/tips/_placeholder.md diff --git a/content/tips/_example.md b/content/tips/_example.md index bf46e15..fadaf4a 100644 --- a/content/tips/_example.md +++ b/content/tips/_example.md @@ -14,12 +14,14 @@ tags: --- ## Changelog -{{< back_to_top >}} {{< changelog >}} +{{< back_to_top >}} {{< change 2023-03-17 "test change 1" >}} {{< change 2023-03-18 "test change 2" >}} {{< /changelog >}} +{{< end_section >}} + This sample post is mainly for [**blogdown**](https://github.com/rstudio/blogdown) users. If you do not use **blogdown**, you can skip the first section. ## 1. Markdown or R Markdown @@ -45,6 +47,8 @@ When creating a new post, you have to decide whether the post format is Markdown blogdown::new_post("Post Title", rmd = FALSE) ``` +{{< end_section >}} + ## 2. Sample Text {{< back_to_top >}} @@ -90,3 +94,4 @@ A table (centered by default): | 5.0| 3.6| 1.4| 0.2|setosa | | 5.4| 3.9| 1.7| 0.4|setosa | +{{< end_section >}} diff --git a/content/tips/_placeholder.md b/content/tips/_placeholder.md new file mode 100644 index 0000000..1166811 --- /dev/null +++ b/content/tips/_placeholder.md @@ -0,0 +1,38 @@ +--- +title: Placeholder Tip +author: KemoNine +publishDate: 2023-03-19 +lastMod: 2023-03-19 +toc: true +draft: false +categories: + - tips +tags: + - faq + - example +--- + +## Changelog +{{< changelog >}} +{{< back_to_top >}} +{{< change 2023-03-19 "Initial creation" >}} +{{< /changelog >}} +{{< end_section >}} + +## Intro + +This is a placeholder tip to prevent errors. More content will slowly be posted over time. + +{{< end_section >}} + +## Section 1 + +This is where some useful content would go + +{{< end_section >}} + +## Conclusion + +In summary... + +{{< end_section >}} diff --git a/themes/hugo-xmin/static/admin/desktop/config.yml b/themes/hugo-xmin/static/admin/desktop/config.yml index f251ad0..b2ee1db 100644 --- a/themes/hugo-xmin/static/admin/desktop/config.yml +++ b/themes/hugo-xmin/static/admin/desktop/config.yml @@ -52,9 +52,9 @@ collections: widget: markdown default: >- ## Changelog - - {{< back_to_top >}} - + + {{< changelog >}} + {{< changelog >}} {{< change 2000-12-30 "change 1" >}} @@ -62,6 +62,8 @@ collections: {{< change 2000-12-31 "change 2" >}} {{< /changelog >}} + + {{< end_section >}} - name: "tips" # Used in routes, e.g., /admin/collections/blog label: "Tips" # Used in the UI @@ -114,3 +116,5 @@ collections: {{< change 2000-12-31 "change 2" >}} {{< /changelog >}} + + {{< end_section >}} diff --git a/themes/hugo-xmin/static/admin/mobile/config.yml b/themes/hugo-xmin/static/admin/mobile/config.yml index 49bbb76..3170683 100644 --- a/themes/hugo-xmin/static/admin/mobile/config.yml +++ b/themes/hugo-xmin/static/admin/mobile/config.yml @@ -44,9 +44,9 @@ collections: required: true default: >- ## Changelog - - {{< back_to_top >}} - + + {{< changelog >}} + {{< changelog >}} {{< change 2000-12-30 "change 1" >}} @@ -54,6 +54,8 @@ collections: {{< change 2000-12-31 "change 2" >}} {{< /changelog >}} + + {{< end_section >}} - name: "tips" # Used in routes, e.g., /admin/collections/blog label: "Tips" # Used in the UI folder: "content/tips" # The path to the folder where the documents are stored @@ -90,9 +92,9 @@ collections: required: true default: >- ## Changelog - - {{< back_to_top >}} - + + {{< changelog >}} + {{< changelog >}} {{< change 2000-12-30 "change 1" >}} @@ -100,4 +102,5 @@ collections: {{< change 2000-12-31 "change 2" >}} {{< /changelog >}} - + + {{< end_section >}}