v1.0 — 功能完整版本
- 首页: Hero + 编辑推荐 + 近笺卡片 + 微言摘要 - 笺文: 列表 + 分页(头像+作者+日期+浏览量) - 微言: 列表 + 评论折叠 - 拾影: 瀑布流 + 灯箱 - 文章详情: 封面 + 正文 + 评论 - 图片: 缩略图 soft crop,原图裁黑边 - 头像: 本地 SVG 替换 Gravatar - 导航: 激活状态圆点指示 - 安装: 自动创建页面和菜单
This commit is contained in:
+2
-2
@@ -9,14 +9,14 @@ update_post_meta(get_the_ID(), 'post_views', $views + 1);
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<div class="article-full">
|
||||
<?php if (get_post_type() === 'post') : ?>
|
||||
<a href="/" class="back-link">← 返回首页</a>
|
||||
<a href="/articles/" class="back-link">← 返回笺文</a>
|
||||
<?php elseif (get_post_type() === 'tucao') : ?>
|
||||
<a href="<?php echo esc_url(get_post_type_archive_link('tucao')); ?>" class="back-link">← 返回微言</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div class="article-cover">
|
||||
<?php the_post_thumbnail('kjweji-featured', array('alt' => get_the_title())); ?>
|
||||
<?php the_post_thumbnail('medium', array('alt' => get_the_title())); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user