Skip to content

Commit 79fd53d

Browse files
committed
Hide git info for uncommitted pages
1 parent 8a80046 commit 79fd53d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/_default/docs.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ <h1 class="srcf-title" id="content">{{ .Title | markdownify }}</h1>
5151

5252
{{ .Content }}
5353

54+
{{ if .GitInfo }}
5455
<hr>
5556
<p class="text-muted">
5657
<a href="{{ .Site.Params.repo}}/commit/{{.GitInfo.Hash}}" target="_blank" rel="noopener">Last modified</a> on {{.Lastmod | dateFormat "Monday Jan 2, 2006"}} by {{ .GitInfo.AuthorName }}
5758
</p>
59+
{{ end }}
5860

5961
</div>
6062
</main>

0 commit comments

Comments
 (0)