diff --git a/layouts/index.html b/layouts/index.html index d57e3d5..bdb6610 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,17 +2,17 @@
{{ .Content }}
+ {{/* Create a variable to use the same section twice. Note that we've included the date here. */}} + {{ $section := where .Data.Pages.ByDate.Reverse "Section" "post" }} + {{ if $section }} +
-
-

- Recent Articles -

+

+ Recent Articles +

- - {{/* Create a variable to use the same section twice. Note that we've included the date here. */}} - {{ $section := where .Data.Pages.ByDate.Reverse "Section" "article" }}
- {{ range (first 3 $section) }} + {{ range (first 3 $section) }}
{{ .Render "summary-with-image" }}
@@ -20,7 +20,7 @@
-

More posts

+

More Posts

{{/* Nest the requirements, "after" then "first" on the outside */}} {{ range (first 4 (after 1 $section)) }}

@@ -33,4 +33,5 @@

+ {{ end }} {{ end }} diff --git a/layouts/article/single.html b/layouts/post/single.html similarity index 100% rename from layouts/article/single.html rename to layouts/post/single.html diff --git a/layouts/article/summary-with-image.html b/layouts/post/summary-with-image.html similarity index 100% rename from layouts/article/summary-with-image.html rename to layouts/post/summary-with-image.html diff --git a/layouts/article/summary.html b/layouts/post/summary.html similarity index 100% rename from layouts/article/summary.html rename to layouts/post/summary.html diff --git a/layouts/section/article.html b/layouts/section/post.html similarity index 100% rename from layouts/section/article.html rename to layouts/section/post.html