Closed mvxt closed 7 years ago
Hi, @mvxt
You can refer to my hexo source: https://github.com/iTimeTraveler/hexo-theme-hiero/tree/site-source
this is a header of example post markdown file:
---
title: Hillary Clinton Calls for Unity in Concession Speech
date: 2016-11-10 09:55:37
comments: true
categories:
- LifeStyle
photos:
- https://hillaryclintonspeeches.files.wordpress.com/2016/11/10clinton2-master768.jpg
---
the photos
field is the thumbnail that will be shown on Recent Posts
widget. Thank you for your interest :smiley: .
Thanks, works perfectly!
Looking to remove the photo from the main post, but keep the thumbnail.
Removing this line from article.ejs
, failed to produce the desired functionality.
<div class="entry-thumbnail">
<a href="<%- url_for(post.path) %>"><img src="<%= post.photos[0] %>" class="attachment-thumb-featured size-thumb-featured wp-post-image" alt=""></a>
</div>
Any ideas?
@kiarafrobles I actually did the same thing to my articles. Remove line 3 from /layout/_partial/article.ejs.
3 <%- partial('post/gallery') %>
Hello,
This is a great theme and I'm loving it. Thank you for sharing. I noticed in your preview example that in your "Recent Posts" module, there are small thumbnails next to your article post names. Mine are not showing up for whatever reason (see attached image below). How are you achieving this?
Best, M