From 9e5401d0fac2215f74ee8a4c5d2533fbb6d84943 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Fri, 14 Apr 2017 22:23:18 -0400 Subject: [PATCH] change article to post --- layouts/index.html | 19 ++++++++++--------- layouts/{article => post}/single.html | 0 .../{article => post}/summary-with-image.html | 0 layouts/{article => post}/summary.html | 0 layouts/section/{article.html => post.html} | 0 5 files changed, 10 insertions(+), 9 deletions(-) rename layouts/{article => post}/single.html (100%) rename layouts/{article => post}/summary-with-image.html (100%) rename layouts/{article => post}/summary.html (100%) rename layouts/section/{article.html => post.html} (100%) 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