update articles

This commit is contained in:
LingZhaoHui 2022-07-09 15:46:52 +08:00
parent d2416aea0b
commit a36e95a349

View File

@ -31,6 +31,13 @@
<div class="blog-slider card"> <div class="blog-slider card">
<div class="blog-slider__wrp swiper-wrapper"> <div class="blog-slider__wrp swiper-wrapper">
<div class="blog-slider__item swiper-slide"> <div class="blog-slider__item swiper-slide">
<div class="blog-slider__img">
<a href="${article.articlePermalink}">
<img class="thumbnail" src="${adminUser.userAvatar!}" height="250" width="150"
data-src="${article.articleImg1URL}" alt="${article.articleTitle!}"
referrerpolicy="origin">
</a>
</div>
<div class="blog-slider__content"> <div class="blog-slider__content">
<div> <div>
<span class="blog-slider__code" <span class="blog-slider__code"
@ -53,8 +60,8 @@
href="${article.articlePermalink}">${article.articleTitle!}</a> href="${article.articlePermalink}">${article.articleTitle!}</a>
</h2> </h2>
<div class="blog-slider__text is-size-6" content="" > <div class="blog-slider__text is-size-6" content="" >
<#if article.articleAbstractText!?length gt 150> <#if article.articleAbstractText!?length gt 48>
${article.articleAbstractText!?substring(0, 150)} <#else> ${article.articleAbstractText!?substring(0, 48)} <#else>
${article.articleAbstractText!}</#if> ${article.articleAbstractText!}</#if>
</div> </div>
<a href="${article.articlePermalink}" <a href="${article.articlePermalink}"
@ -67,6 +74,13 @@
</div> </div>
<#else> <#else>
<div class="card"> <div class="card">
<div class="card-image">
<a href="${article.articlePermalink}">
<img class="thumbnail" src="${adminUser.userAvatar!}" height="200" width="100"
data-src="${article.articleImg1URL}" alt="${article.articleTitle!}"
referrerpolicy="origin">
</a>
</div>
<div class="card-content article " id="card-content" style="width: 100%"> <div class="card-content article " id="card-content" style="width: 100%">
<div class="level article-meta is-size-7 is-uppercase is-mobile is-overflow-x-auto"> <div class="level article-meta is-size-7 is-uppercase is-mobile is-overflow-x-auto">
<div class="level-left"> <div class="level-left">
@ -94,9 +108,10 @@
</h2> </h2>
<div id="is-hidden-touch" class="content is-hidden-touch is-size-6"> <div id="is-hidden-touch" class="content is-hidden-touch is-size-6">
<#if article.articleAbstractText!?length gt 200> <#if article.articleAbstractText!?length gt 128>
${article.articleAbstractText!?substring(0, 200)} <#else> ${article.articleAbstractText!?substring(0, 110)} <#else>
${article.articleAbstractText!}</#if> ${article.articleAbstractText!}</#if>
<#-- ${article.articleAbstractText!?substring(0, 110)} ...... -->
</div> </div>
<div class="level is-mobile"> <div class="level is-mobile">