summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-03 11:52:57 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-03 11:52:57 +0200
commit0934983529824d819ceaf98df33b30abee7659bc (patch)
treeee8a7c74a14ee14612c8998fd601ae2c4bee29cc /docs/content/en/functions
parent1c5b025dd063f21f6b43189c36060d5930a22fbf (diff)
parentbd77f6e1c99e04a476f0b1bb4e44569134e02399 (diff)
Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r--docs/content/en/functions/adddate.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/en/functions/adddate.md b/docs/content/en/functions/adddate.md
index 4c5807f71..5037beb02 100644
--- a/docs/content/en/functions/adddate.md
+++ b/docs/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 }}