This commit is contained in:
liyukun 2021-08-08 01:01:28 +08:00
parent 7016f80fac
commit 713054fbea
3 changed files with 20 additions and 8 deletions

View File

@ -33,17 +33,19 @@
</a>
</div>
<!-- tag链接等待完善-->
{notempty name="$field['tags']"}
<div class="post-item-tags ">
<span class="cat-item">
<a target="_blank" href="{$field['url']}">{:cn_substr($field['title'],15)}...</a>
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],15)}</a>
</span>
</div>
{/notempty}
<div class="post-item-main">
<h2>
<a target="_blank" href="{$field['url']}">{:cn_substr($field['title'],15)}...</a>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content">
<a target="_blank" href="{$field['url']}">{:cn_substr($field['content'],15)}...</a>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],40)}</a>
</div>
<div class="post-item-info">
<div class="post-item-meta">

View File

@ -120,18 +120,19 @@
<img src="__IMG__/loading.gif" data-original="{:file_cdn($field['cover_path'])}"/>
</a>
</div>
{notempty name="$field['tags']"}
<div class="post-item-tags">
<span class="cat-item">
<a target="_blank" href="{$field['url']}">{:cn_substr($field['title'],15)}...</a>
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],20)}</a>
</span>
</div>
{/notempty}
<div class="post-item-main">
<h2>
<span class="post-item-sticky">置顶</span>
<a href="{$field['url']}" target="_blank">{:cn_substr($field['title'],15)}...</a>
{if $field['is_top']==1}<span class="post-item-sticky">置顶</span>{/if}
<a href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;" target="_blank">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content">{:cn_substr($field['description'],40)}...
</div>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],40)}</div>
<div class="post-item-info">
<div class="post-item-meta">
<div class="post-item-meta-item">

9
待完成.txt Normal file
View File

@ -0,0 +1,9 @@
清理模板中无用的功能
修正右侧模板的数据
文章tag的改造tag插入tag表记录id然后跳转对应的链接为什么写tag表是因为需要排序和右侧列表
设计添加tag时候插入 tag表 tag包含 tag_name 文章id 获取时候查询这个这个表
修改一些调用喂RPC方式后期课题考虑替换这个