From c69bbc7c0ee77c11dbc7cae346dbf282fffb956d Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Wed, 29 Oct 2025 18:08:07 +0100 Subject: change header and color for copied articles also update stuff --- layouts/_default/single.html | 11 +++++++++++ layouts/guide/single.html | 7 ------- layouts/shortcodes/article-list.html | 4 +++- 3 files changed, 14 insertions(+), 8 deletions(-) delete mode 100644 layouts/guide/single.html (limited to 'layouts') 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 }} +This article is copied from {{ index . + 0}} +{{ end }} +{{ with .Params.icon }} + +{{ end }} +{{ if .Params.table }} +

Table of Contents

+{{.TableOfContents}} +{{ end }} {{- .Content }} {{ end }} diff --git a/layouts/guide/single.html b/layouts/guide/single.html deleted file mode 100644 index 6efdfe0..0000000 --- a/layouts/guide/single.html +++ /dev/null @@ -1,7 +0,0 @@ -{{define "main"}} -
-

Table of Contents

- {{.TableOfContents}} - {{.Content}} -
-{{end}} \ No newline at end of file diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html index 090d654..d3d826e 100644 --- a/layouts/shortcodes/article-list.html +++ b/layouts/shortcodes/article-list.html @@ -3,7 +3,9 @@ See more... -- cgit v1.2.3