summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html11
-rw-r--r--layouts/shortcodes/article-list.html5
-rw-r--r--layouts/shortcodes/img.html1
-rw-r--r--layouts/shortcodes/sml.html1
4 files changed, 10 insertions, 8 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3ee3cf5..3bc97a2 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,8 +1,4 @@
{{ 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 }}
@@ -11,4 +7,11 @@
{{.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/shortcodes/article-list.html b/layouts/shortcodes/article-list.html
index 5341738..d533f19 100644
--- a/layouts/shortcodes/article-list.html
+++ b/layouts/shortcodes/article-list.html
@@ -1,10 +1,7 @@
-<h2>
- {{ .Get "category" | title }}
-</h2>
<ul>
{{- range where .Site.RegularPages "Type" (.Get "category") | first (.Get "number") }}
<li>{{ .Date.Format "02/01/06" }} - <a href="{{ .RelPermalink }}">{{
.Title }}</a></li>
{{- end }}
</ul>
-<a href='{{ .Get "category" }}'>See more...</a>
+<a href='/{{ .Get "category" }}'>See more...</a>
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
new file mode 100644
index 0000000..013637a
--- /dev/null
+++ b/layouts/shortcodes/img.html
@@ -0,0 +1 @@
+<img src='{{ .Get "src" }}' alt='{{ .Get "alt" }}'>
diff --git a/layouts/shortcodes/sml.html b/layouts/shortcodes/sml.html
new file mode 100644
index 0000000..d27ced1
--- /dev/null
+++ b/layouts/shortcodes/sml.html
@@ -0,0 +1 @@
+<small>{{ .Inner }}</small>