Skip to content

Commit

Permalink
jekyll generated date in footer
Browse files Browse the repository at this point in the history
fix #932
  • Loading branch information
codecalm committed Nov 6, 2021
1 parent 59fbe1b commit 886c137
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/_includes/layout/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
All rights reserved.
</li>
<li class="list-inline-item">
<a href="{{ site.base }}/changelog.html" class="link-secondary" rel="noopener">v{{ site.data.package.version }}</a>
{% if jekyll.environment == 'production' %}
<a href="{{ site.base }}/changelog.html" class="link-secondary" rel="noopener">
v{{ site.data.package.version }}
</a>
{% else %}
Generated {{ site.time | date: '%Y-%m-%d %H:%M %Z' }}
{% endif %}
</li>
</ul>
</div>
Expand Down

0 comments on commit 886c137

Please sign in to comment.