diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-29 18:08:07 +0100 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-29 18:08:20 +0100 |
| commit | c69bbc7c0ee77c11dbc7cae346dbf282fffb956d (patch) | |
| tree | 189dd84ec62e9a0372edfa6b4025be881e2d0139 /layouts/_default | |
| parent | 31d55a1d0688a6cbbb0f8a1bef5f325ccfe782b8 (diff) | |
change header and color for copied articles also update stuff
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/single.html | 11 |
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 }} |
