diff --git a/layouts/index.html b/layouts/index.html index 3ce65d0..0873660 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,32 +8,9 @@ {{ if .Site.Params.enableFeatured | default false }} {{ $featuredPostsList = where $allPostsList "Params.featured" true }} {{ $postsList = union (where $allPostsList "Params.featured" false) (where $allPostsList "Params.featured" nil) }} + {{- partial "featured_articles.html" $featuredPostsList -}} {{ end }} - - {{/* pagination */}}
{{ range (.Paginate $postsList).Pages }} diff --git a/layouts/partials/featured_articles.html b/layouts/partials/featured_articles.html new file mode 100644 index 0000000..347eeb7 --- /dev/null +++ b/layouts/partials/featured_articles.html @@ -0,0 +1,29 @@ +