Skip to content

Commit

Permalink
Hide git info for uncommitted pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rsa33 committed Dec 8, 2023
1 parent 8a80046 commit 79fd53d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/_default/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ <h1 class="srcf-title" id="content">{{ .Title | markdownify }}</h1>

{{ .Content }}

{{ if .GitInfo }}
<hr>
<p class="text-muted">
<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 }}
</p>
{{ end }}

</div>
</main>
Expand Down

0 comments on commit 79fd53d

Please sign in to comment.