修复主题摘要的问题

This commit is contained in:
liyukun 2022-04-11 19:20:27 +08:00
parent d8b6ad3b82
commit 552e012903
5 changed files with 6 additions and 5 deletions

View File

@ -401,6 +401,7 @@ function tpl_get_list($orderBy, $pageSize, $cid, $type, $table = 'article', $whe
'model' => $documentListModel,
'lists' => $lists
];
//dd($re);
return $re;
}

View File

@ -41,7 +41,7 @@
<a 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']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['description'],100)}</a>
<a target="_blank" href="{$field['url']}">{:cn_substr($field['abstract'],100)}</a>
</div>
<div class="post-item-info">
<div class="post-item-meta">

View File

@ -41,7 +41,7 @@
<a 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']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['abstract'],100)}</a>
<a target="_blank" href="{$field['url']}">{:cn_substr($field['abstract'],100)}</a>
</div>
<div class="post-item-info">
<div class="post-item-meta">

View File

@ -40,7 +40,7 @@
{if $field['is_top']==1}<span class="post-item-sticky">置顶</span>{/if}
<a href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">
<div class="post-item-content">
{:cn_substr($field['abstract'],100)}
</div>
<div class="post-item-info">

View File

@ -118,8 +118,8 @@
{if $field['is_top']==1}<span class="post-item-sticky">置顶</span>{/if}
<a href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">
{:cn_substr($field['description'],100)}
<div class="post-item-content">
{:cn_substr($field['abstract'],100)}
</div>
<div class="post-item-info">
<div class="post-item-meta">