This commit is contained in:
Van 2019-08-27 15:45:58 +08:00
parent 65343c5618
commit 6adee8cc2f
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
3 changed files with 72 additions and 63 deletions

View File

@ -18,7 +18,7 @@
--> -->
<#list articles as article> <#list articles as article>
<article> <article>
<header class="fn__flex"> <header class="fn__flex">
<h2 class="fn__flex-1"> <h2 class="fn__flex-1">
<a rel="bookmark" href="${servePath}${article.articlePermalink}"> <a rel="bookmark" href="${servePath}${article.articlePermalink}">
@ -39,9 +39,15 @@
</h2> </h2>
<time><span class="icon-date"></span> ${article.articleUpdateDate?string("yyyy-MM-dd")}</time> <time><span class="icon-date"></span> ${article.articleUpdateDate?string("yyyy-MM-dd")}</time>
</header> </header>
<section class="abstract vditor-reset"> <#if article.articleAbstractText == ''>
${article.articleAbstract} <a class="abstract" href="${servePath}${article.articlePermalink}">
</section> <img src="${article.articleImg1URL}"/>
</a>
<#else>
<a class="abstract vditor-reset" href="${servePath}${article.articlePermalink}">
${article.articleAbstractText}
</a>
</#if>
<footer class="article__footer fn__flex"> <footer class="article__footer fn__flex">
<span class="icon-tag fn__flex-center"></span> <span class="icon-tag fn__flex-center"></span>
<span>&nbsp;&nbsp;&nbsp;</span> <span>&nbsp;&nbsp;&nbsp;</span>
@ -69,10 +75,11 @@
</a> </a>
</#if> </#if>
<a rel="nofollow" href="${servePath}/authors/${article.authorId}" class="fn__flex-center"> <a rel="nofollow" href="${servePath}/authors/${article.authorId}" class="fn__flex-center">
<img class="avatar" title="${article.authorName}" alt="${article.authorName}" src="${article.authorThumbnailURL}"/> <img class="avatar" title="${article.authorName}" alt="${article.authorName}"
src="${article.authorThumbnailURL}"/>
</a> </a>
</footer> </footer>
</article> </article>
</#list> </#list>
<#if 0 != paginationPageCount> <#if 0 != paginationPageCount>
@ -93,4 +100,4 @@
<a href="${servePath}${path}?p=${paginationNextPageNum}" class="extend">${nextPagePabel}</a> <a href="${servePath}${path}?p=${paginationNextPageNum}" class="extend">${nextPagePabel}</a>
</#if> </#if>
</nav> </nav>
</#if> </#if>

File diff suppressed because one or more lines are too long

View File

@ -641,7 +641,9 @@ article .abstract {
padding-right: 30px; padding-right: 30px;
padding-left: 30px; padding-left: 30px;
overflow: hidden; overflow: hidden;
word-wrap: break-word word-wrap: break-word;
display: block;
color: rgba(0,0,0,0.6);
} }
.article__footer { .article__footer {