Skip to content

Commit d9f4bd3

Browse files
authored
Add date generated as comment (#325)
Strangely, there seems to be no official meta field for providing the last generated date. This information is useful in debugging; e.g., to know whether CI deployed at an expected time or not. Closes #307
1 parent 8be8ea7 commit d9f4bd3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="{{ .Site.LanguageCode }}">
33
<head>
4+
{{ print "<!-- Generated " (time.Now.UTC.Format "2006-01-02 15:04:05 UTC") " -->" | safeHTML }}
45
{{ partial "meta.html" . }}
56
<title>{{ block "title" . }}{{ .Site.Title }}{{ if not (eq .Site.Title .Title) }} - {{ .Title }}{{end}}{{ end }}</title>
67

0 commit comments

Comments
 (0)