Skip to content

Commit

Permalink
feat: add displayPostGitInfo option
Browse files Browse the repository at this point in the history
You must add `displayPostGitInfo = true` to config.toml

BREAKING CHANGE
  • Loading branch information
reuixiy committed Aug 24, 2019
1 parent 8521e94 commit 5d395f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h1 class="post-title">{{ .Title }}</h1>
</div>
{{ end }}

{{ if and .GitInfo .Site.Params.enablePostGitInfo }}
{{ if and .GitInfo (.Params.gitinfo | default .Site.Params.displayPostGitInfo) }}
<div class="post-gitinfo">
{{ if or .Site.Params.displayCommitHash .Site.Params.displayCommitMessage }}
<div class="post-gitinfo-left">
Expand Down

0 comments on commit 5d395f9

Please sign in to comment.