Skip to content

Commit

Permalink
fix: Render last update conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Apr 17, 2024
1 parent b4cc9c7 commit 7d5553b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
name = "wagtail-resume"
authors = ["Adin Hodovic <hodovicadin@gmail.com>"]
license = "MIT"
version = "2.7.0"
version = "2.7.1"
readme = "README.md"
homepage = "https://github.com/adinhodovic/wagtail-resume"
repository = "https://github.com/adinhodovic/wagtail-resume"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ <h2 class="mt-2 mb-0">{{ page.full_name }}</h2>
</div>
{% endfor %}
</div>
<p class="small italic mt-1">Last update: {{ page.latest_revision_created_at|date }}</p>
{% if page.latest_revision_created_at %}
<p class="small italic mt-1">Last update: {{ page.latest_revision_created_at|date }}</p>
{% endif %}
</div>
<div>{% image page.photo original class="photo" %}</div>
</div>
Expand Down

0 comments on commit 7d5553b

Please sign in to comment.