Browse Source

新闻时间修改

master
loucongjun 2 weeks ago
parent
commit
8841c36704
  1. 2
      public/themes/website/1/en/demo/news-detail.html
  2. 4
      public/themes/website/1/en/demo/news.html

2
public/themes/website/1/en/demo/news-detail.html

@ -126,7 +126,7 @@
<article class="nd-article">
<header class="nd-article__header">
<h1 class="nd-article__title">{$hc_content_tmp_news['title']}</h1>
<time class="nd-article__date" datetime="{$create_time_str}">{$create_time_str}</time>
<time class="nd-article__date" datetime="{$create_time_str}">{:date('Y-m-d',strtotime($create_time_str)) ?? ''}</time>
</header>
<div class="nd-richtext">

4
public/themes/website/1/en/demo/news.html

@ -120,7 +120,7 @@
</div>
<div class="n-featured__body">
<div class="n-featured__content">
<time class="n-featured__date" datetime="{$create_time_str}">{$create_time_str}</time>
<time class="n-featured__date" datetime="{$create_time_str}">{:date('Y-m-d',strtotime($create_time_str)) ?? ''}</time>
<h2 class="n-featured__title">{$title}</h2>
<p class="n-featured__desc">
{$description|raw}
@ -181,7 +181,7 @@
<article class="n-card" data-category="insight">
<div class="n-card__top">
<time class="n-card__date" datetime="{$create_time_str}">{$create_time_str}</time>
<time class="n-card__date" datetime="{$create_time_str}">{:date('Y-m-d',strtotime($create_time_str)) ?? ''}</time>
<h3 class="n-card__title">{$vo_content.title}</h3>
<a class="n-link n-link--sm" href="{:hcUrl('detail/index',['id'=>$vo_content['id'],'cid'=>$vo_content['category_id']])}">
<span>Explore more</span>

Loading…
Cancel
Save