summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2025-10-31 10:57:28 +0100
committerNantha Sorubakanthan <nantha@mielota.com>2025-10-31 10:57:28 +0100
commitd1bde894bc6c782da3f95bc38ffa7daca882da64 (patch)
tree986b2a4138a116eff3ee255b599fdec9ff50ed01
parenta741a07656665aa66e9ba91094c4f0bbeca19644 (diff)
added deprecated feature
-rw-r--r--archetypes/default.md3
-rw-r--r--layouts/_default/single.html6
2 files changed, 8 insertions, 1 deletions
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 }}
<img src="{{ . }}" class="icon">
{{ end }}
+{{ if .Params.deprecated }}
+<br>
+<blockquote class="deprecated">
+ <p>I don't like this guide. I just leave it in case, avoid using it.</p>
+</blockquote>
+{{ end }}
{{ if .Params.table }}
<h2>Table of Contents</h2>
{{.TableOfContents}}