diff options
Diffstat (limited to 'layouts/partials/widgets/recent_articles.html')
-rw-r--r-- | layouts/partials/widgets/recent_articles.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/widgets/recent_articles.html b/layouts/partials/widgets/recent_articles.html new file mode 100644 index 0000000..844d3d7 --- /dev/null +++ b/layouts/partials/widgets/recent_articles.html @@ -0,0 +1,17 @@ +{{ if .Site.Params.widgets.recent_articles }} + +<div class="widget-wrap"> + <div class="widget"> + <ul id="recent-post"> + <li id="first-recent"><a href="/index.xml" id="firstmove" class="move"><h3 class="widget-title"> + Posts + </h3></a></li> + {{ range first 10 (where .Site.Pages "Type" "post") }} + +<li><a href="{{ .Permalink }}" class="move"> {{ .Title }}</a> </li> + {{ end }} + </ul> + </div> +</div> +{{ end }} + |