From 6c88a165e81877a9e56ede789c07e3e0d2e05601 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 7 Nov 2022 21:20:37 +0100 Subject: posts: hide date icon in feed --- _includes/jekyll-theme/posts/date.html | 2 +- _includes/jekyll-theme/posts/feed-entry.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/jekyll-theme/posts/date.html b/_includes/jekyll-theme/posts/date.html index de7c4de..0788cb8 100644 --- a/_includes/jekyll-theme/posts/date.html +++ b/_includes/jekyll-theme/posts/date.html @@ -2,4 +2,4 @@ {% unless fmt %} {% assign fmt = '%Y-%m-%d' %} {% endunless %} - {{ include.date | date: fmt }} +{% unless include.hide_icon %} {% endunless %}{{ include.date | date: fmt }} diff --git a/_includes/jekyll-theme/posts/feed-entry.html b/_includes/jekyll-theme/posts/feed-entry.html index 4d648e7..fc4fd45 100644 --- a/_includes/jekyll-theme/posts/feed-entry.html +++ b/_includes/jekyll-theme/posts/feed-entry.html @@ -1,6 +1,6 @@ {% assign header_date = null %} {% if include.date %} - {% capture header_date %}

{%- include jekyll-theme/posts/date.html date=include.date monospace=true -%}

{% endcapture %} + {% capture header_date %}

{%- include jekyll-theme/posts/date.html date=include.date monospace=true hide_icon=true -%}

{% endcapture %} {% endif %} {% assign header_category = null %} -- cgit v1.2.3