Skip to content

Commit

Permalink
移除 post.html 中的最后修改时间动态获取代码,并清理相关注释
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoWendell committed Nov 25, 2024
1 parent 5c749c1 commit ba82675
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ <h1 data-toc-skip>{{ page.title }}</h1>
</span>
{% endif %}

<!-- 这行代码会动态获取当前文章文件的最后修改时间。file_modified_time 是一个 Liquid 过滤器,可以直接从文件的元信息中提取修改时间。 -->
<!-- {% assign file_modified_at = page.path | file_modified_time %}
{% if file_modified_at and file_modified_at != page.date %}
<span>
{{ site.data.locales[lang].post.updated }}
{% include datetime.html date=file_modified_at tooltip=true lang=lang %}
</span>
{% endif %} -->

<!-- 预览图 -->
{% if page.image %}
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
Expand Down
2 changes: 0 additions & 2 deletions _posts/2023-04-05-理论微课.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ image:
alt: 马原
---

<!-- ![维纳斯]({{site.baseurl}}/_posts/images/2023-04-05-理论微课维纳斯.png) -->

<video width="300" height="168.75" controls>
<source src="https://raw.githubusercontent.com/XiaoWendell/XiaoWendell.github.io/master/_posts\images\2023-04-05-理论微课\Wendell_理论微课.mp4" type="video/mp4">
</video>
Expand Down

0 comments on commit ba82675

Please sign in to comment.