[英]How to take the 'src' from an image in a post and make it a background image just for that post with jquery when there's multiple posts on page?
[英]How can I make the first image of posts appear with the titles of the posts on the home page, not just a post title as Text Link?
我有一個簡單的文本博客模板我的意思是我的模板只顯示標題而不顯示圖像。
它在主頁上僅顯示帖子的標題作為這些帖子的網址,但我需要在主頁上顯示任何帶有標題的帖子的第一張圖片。
如何使帖子的第一張圖片與主頁上的帖子標題一起顯示,而不僅僅是作為文本鏈接的帖子標題?
<b:if cond='data:blog.url == data:blog.homepageUrl'><data:post.title/></b:if>
<b:with value='data:post.featuredImage.isResizable ? resizeImage(data:post.featuredImage, 240, "1:2") : data:post.thumbnail' var='image'>
<img class='full' expr:alt='data:post.title' expr:src='data:image'/>
</b:with>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.