summaryrefslogtreecommitdiffstats
path: root/content/en/variables/git.md
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-01-27 10:48:33 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-01-27 10:48:33 +0100
commit9b0050e9aabe4be65c78ccf292a348f309d50ccd (patch)
tree94306a2294b6655aa2a5af606ae68d41c66f5d10 /content/en/variables/git.md
downloadhugo-9b0050e9aabe4be65c78ccf292a348f309d50ccd.tar.gz
hugo-9b0050e9aabe4be65c78ccf292a348f309d50ccd.zip
Squashed 'docs/' content from commit 5c085a37b
git-subtree-dir: docs git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
Diffstat (limited to 'content/en/variables/git.md')
-rw-r--r--content/en/variables/git.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/content/en/variables/git.md b/content/en/variables/git.md
new file mode 100644
index 000000000..3dc473265
--- /dev/null
+++ b/content/en/variables/git.md
@@ -0,0 +1,18 @@
+---
+title: Git variables
+description: Retrieve Git information related to the last commit of any page.
+categories: [variables]
+keywords: []
+menu:
+ docs:
+ parent: variables
+ weight: 30
+weight: 30
+aliases: [/extras/gitinfo/]
+---
+
+{{% include "variables/_common/consistent-terminology.md" %}}
+
+To retrieve Git information related to the last commit of any page, see the documentation for the [`GitInfo`] method on a `Page` object.
+
+[`GitInfo`]: /methods/page/gitinfo