diff --git a/layouts/partials/recent.html b/layouts/partials/recent.html new file mode 100644 index 0000000..3136837 --- /dev/null +++ b/layouts/partials/recent.html @@ -0,0 +1,9 @@ + diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 70c19e1..f9abafa 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -7,17 +7,7 @@ {{ end }} {{ if .Site.Params.sidebar }} - {{ $num_recent_posts := (index .Site.Params.sidebar "num_recent_posts" | default 5) }} - - - + {{ partialCached "recent.html" .}} {{ end }} {{ with .Site.Menus.sidebar }}