summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2025-10-29 18:08:07 +0100
committerNantha Sorubakanthan <nantha@mielota.com>2025-10-29 18:08:20 +0100
commitc69bbc7c0ee77c11dbc7cae346dbf282fffb956d (patch)
tree189dd84ec62e9a0372edfa6b4025be881e2d0139 /layouts/_default
parent31d55a1d0688a6cbbb0f8a1bef5f325ccfe782b8 (diff)
change header and color for copied articles also update stuff
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 366e181..3ee3cf5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,3 +1,14 @@
{{ define "main" }}
+{{ with .Params.copied }}
+<small><i>This article is copied from <a href="{{ index . 1 }}">{{ index .
+ 0}}</a></i></small>
+{{ end }}
+{{ with .Params.icon }}
+<img style="height: 10em;display: block;margin: auto;" src="{{ . }}">
+{{ end }}
+{{ if .Params.table }}
+<h2>Table of Contents</h2>
+{{.TableOfContents}}
+{{ end }}
{{- .Content }}
{{ end }}