Skip to content

Commit

Permalink
Remove last updated date
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-wijaya committed Sep 28, 2024
1 parent 9ef15c0 commit baa4700
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ <h1 data-toc-skip>{{ page.title }}</h1>
{% include datetime.html date=page.date tooltip=true lang=lang %}
</span>

<!-- lastmod date -->
{% if page.last_modified_at and page.last_modified_at != page.date %}
<span>
{{ site.data.locales[lang].post.updated }}
{% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
</span>
{% endif %}

{% if page.override_image and page.show_image_in_post != false %}
<!-- Inside post, use override_image -->
{% capture src %}src="{{ page.override_image.path | default: page.override_image.path }}"{% endcapture %}
Expand All @@ -44,7 +36,7 @@ <h1 data-toc-skip>{{ page.title }}</h1>
<figcaption class="text-center pt-2 pb-2">{{ page.override_image.alt }}</figcaption>
{%- endif -%}
</div>
{% elsif page.image and page.show_image_in_post != false %}
{% elsif page.image and page.show_image_in_post != false %}
<!-- Default behavior: Use image if override_image is not present -->
{% capture src %}src="{{ page.image.path | default: page.image.path }}"{% endcapture %}
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
Expand All @@ -55,7 +47,7 @@ <h1 data-toc-skip>{{ page.title }}</h1>
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
{%- endif -%}
</div>
{% endif %}
{% endif %}

<div class="d-flex justify-content-between">
<!-- author(s) -->
Expand Down

0 comments on commit baa4700

Please sign in to comment.