diff options
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/article-list.html | 3 | ||||
| -rw-r--r-- | layouts/shortcodes/time-now.html | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html index 338643c..090d654 100644 --- a/layouts/shortcodes/article-list.html +++ b/layouts/shortcodes/article-list.html @@ -1,3 +1,6 @@ +<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> diff --git a/layouts/shortcodes/time-now.html b/layouts/shortcodes/time-now.html new file mode 100644 index 0000000..d09ddc4 --- /dev/null +++ b/layouts/shortcodes/time-now.html @@ -0,0 +1 @@ +{{ time.Now.Format "02/01/2006" }} |
