summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/article-list.html5
-rw-r--r--layouts/shortcodes/img.html1
-rw-r--r--layouts/shortcodes/sml.html1
3 files changed, 3 insertions, 4 deletions
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>