Skip to content

Commit

Permalink
Merge pull request #13 from ebkalderon/render-updated-post-field
Browse files Browse the repository at this point in the history
Render page.updated field if specified
  • Loading branch information
ejmg authored Mar 15, 2021
2 parents b8033c7 + f8d10c1 commit b316f90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/zerm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title="what is zerm?"
description="a summary of what zerm is and why it is different."
date=2019-08-07
updated=2021-02-03

[taxonomies]
tags = ["rust", "test", "zola"]
Expand Down
5 changes: 5 additions & 0 deletions templates/macros/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
{{ page.date | date(format="%Y.%m.%d") }}
{# end of page.date if-check #}
{%- endif -%}

{%- if page.updated -%}
[Updated: {{ page.updated | date(format="%Y.%m.%d") }}]
{# end of page.updated if-check #}
{%- endif -%}
</span>

<span class="post-author">
Expand Down

1 comment on commit b316f90

@vercel
Copy link

@vercel vercel bot commented on b316f90 Mar 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.