From d1bde894bc6c782da3f95bc38ffa7daca882da64 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Fri, 31 Oct 2025 10:57:28 +0100 Subject: added deprecated feature --- archetypes/default.md | 3 ++- layouts/_default/single.html | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/archetypes/default.md b/archetypes/default.md index 8c6989f..754ba1c 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -2,8 +2,9 @@ title: {{ replace .Name "-" " " | title }} date: {{ .Date }} index: false -#draft: true +draft: true #icon: '' #copied: ["me", "/"] table: false +deprecated: false --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 97190e4..27f3c24 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,6 +2,12 @@ {{ with .Params.icon }} {{ end }} +{{ if .Params.deprecated }} +
+
+

I don't like this guide. I just leave it in case, avoid using it.

+
+{{ end }} {{ if .Params.table }}

Table of Contents

{{.TableOfContents}} -- cgit v1.2.3