summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/hugo.go')
-rw-r--r--hugolib/hugo.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/hugolib/hugo.go b/hugolib/hugo.go
new file mode 100644
index 000000000..67c048dfa
--- /dev/null
+++ b/hugolib/hugo.go
@@ -0,0 +1,25 @@
+package hugolib
+
+const Version = "0.13-DEV"
+
+var (
+ CommitHash string
+ BuildDate string
+)
+
+// Hugo contains all the information about the current Hugo environment
+type HugoInfo struct {
+ Version string
+ Generator string
+ CommitHash string
+ BuildDate string
+}
+
+func NewHugoInfo() HugoInfo {
+ return HugoInfo{
+ Version: Version,
+ CommitHash: CommitHash,
+ BuildDate: BuildDate,
+ Generator: `<meta name="generator" content="Hugo ` + Version + `" />`,
+ }
+}