summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2025-11-11 09:46:27 +0100
committerNantha Sorubakanthan <nantha@mielota.com>2025-11-11 09:46:43 +0100
commitebdaad8278917343f478ef54f14aa49511939c35 (patch)
tree61c25c75dc2c2ada975afaa2b6f73496fd05f08e /layouts
parenta8419ad914cf7627d779ed68a91e9c373751f57d (diff)
update layouts/archetypes structure and delete copies
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html20
-rw-r--r--layouts/blog/single.html9
-rw-r--r--layouts/guide/single.html14
3 files changed, 23 insertions, 20 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 27f3c24..366e181 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,23 +1,3 @@
{{ define "main" }}
-{{ 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}}
-{{ end }}
{{- .Content }}
-{{ with .Params.copied }}
-<p style="text-align: right;">
- <small>
- <i>This article is copied from <a href="{{ index . 1 }}">{{ index . 0}}</a></i>
- </small>
-</p>
-{{ end }}
{{ end }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
new file mode 100644
index 0000000..926afb4
--- /dev/null
+++ b/layouts/blog/single.html
@@ -0,0 +1,9 @@
+{{ define "main" }}
+{{ if .Params.deprecated }}
+<br>
+<blockquote class="deprecated">
+ <p>I don't like this article anymore, consider it deprecated.</p>
+</blockquote>
+{{ end }}
+{{- .Content }}
+{{ end }}
diff --git a/layouts/guide/single.html b/layouts/guide/single.html
new file mode 100644
index 0000000..f1eca27
--- /dev/null
+++ b/layouts/guide/single.html
@@ -0,0 +1,14 @@
+{{ define "main" }}
+{{ 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 }}
+<h2>Table of Contents</h2>
+{{ .TableOfContents }}
+{{- .Content }}
+{{ end }}