summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-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 }}