summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/now.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/now.md')
-rw-r--r--docs/content/en/functions/now.md16
1 files changed, 4 insertions, 12 deletions
diff --git a/docs/content/en/functions/now.md b/docs/content/en/functions/now.md
index 24e1ab3f7..68d628f11 100644
--- a/docs/content/en/functions/now.md
+++ b/docs/content/en/functions/now.md
@@ -1,36 +1,28 @@
---
title: now
-linktitle: now
description: Returns the current local time
-date: 2017-02-01
-publishdate: 2017-02-01
-lastmod: 2017-04-30
categories: [functions]
menu:
docs:
- parent: "functions"
+ parent: functions
keywords: [dates,time]
signature: ["now"]
-workson: []
-hugoversion:
relatedfuncs: [Unix,dateFormat]
-deprecated: false
-aliases: []
---
See [`time.Time`](https://godoc.org/time#Time).
For example, building your site on June 24, 2017, with the following templating:
-```
+```go-html-template
<div>
- <small>&copy; {{ now.Format "2006"}}</small>
+ <small>&copy; {{ now.Format "2006" }}</small>
</div>
```
would produce the following:
-```
+```html
<div>
<small>&copy; 2017</small>
</div>