From 950fdab90aeddc957dd40a0a82be2a3480bd100a Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 24 Jul 2021 04:17:35 -0700 Subject: [PATCH] Fix AddDate documentation --- content/en/functions/adddate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/adddate.md b/content/en/functions/adddate.md index 4c5807f71..5037beb02 100644 --- a/content/en/functions/adddate.md +++ b/content/en/functions/adddate.md @@ -34,7 +34,7 @@ link = "https://twitter.com/spf13" date = "2017-01-07T00:00:00Z" {{< /code-toggle >}} -Let's assume you want to grab Tweets from the last two years and present them in a random order. In conjunction with the [`where`](/functions/where/) and [`now`](/functions/now/) functions, you can limit our range to the last two years via `now.AddDate -2 0 0`, which represents a point in time 2 years, 0 days, and 0 hours before the time of your last site build. +Let's assume you want to grab Tweets from the last two years and present them in a random order. In conjunction with the [`where`](/functions/where/) and [`now`](/functions/now/) functions, you can limit our range to the last two years via `now.AddDate -2 0 0`, which represents a point in time 2 years, 0 months, and 0 days before the time of your last site build. {{< code file="partials/templates/random-tweets.html" download="tweets.html" >}} {{ range where $.Site.Data.tweets.tweet "date" "ge" (now.AddDate -2 0 0) | shuffle }}