add back shortcodes from old blog-structure
This commit is contained in:
parent
a971a03446
commit
ad01088725
3 changed files with 17 additions and 0 deletions
8
layouts/shortcodes/posts-recents.html
Executable file
8
layouts/shortcodes/posts-recents.html
Executable file
|
@ -0,0 +1,8 @@
|
|||
{{- $count := .Get 0 | default "5" -}}
|
||||
<ul>
|
||||
{{- range first (int $count) (sort (where .Site.RegularPages "Section" "blog") "Date" "desc") -}}
|
||||
<li>
|
||||
({{ .Date.Format "2006-01-02" }}) <a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue