文件还在测试中
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<section class="page-hero">
|
||||
<div class="container">
|
||||
<h1>新闻动态</h1>
|
||||
<p>产品发布、技术科普与行业案例</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="section" style="padding-top:20px">
|
||||
<div class="container">
|
||||
<div class="news-grid">
|
||||
<?php foreach ($news as $n): ?>
|
||||
<a class="news-card reveal" href="<?php echo site_url('news/' . $n['slug']); ?>">
|
||||
<div class="news-thumb" style="background:<?php echo gradient($n['id']); ?>">📰</div>
|
||||
<div class="news-body">
|
||||
<div class="news-date"><?php echo e(format_date($n['published_at'])); ?> · <?php echo e($n['author']); ?></div>
|
||||
<div class="news-title"><?php echo e($n['title']); ?></div>
|
||||
<div class="news-sum"><?php echo e($n['summary']); ?></div>
|
||||
</div>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php if (empty($news)): ?><p style="color:var(--c-muted)">暂无新闻。</p><?php endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user