You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default Lanyon settings shows the full view for posts on the index.html page. I'm attempting to edit the index.html file to show the excerpt for posts, so that only the title, date and first paragraph of each post are displayed.
What do I need to add or modify in index.html to make this work?
I hope someone can help me with this issue. Thanks!
Update: After working on this some more, I found a helpful discussion on Stack Overflow
The solution that yielded the best result was replacing {{ post.content }} in index.html with {{ post.content | markdownify | strip_html | truncatewords: 50 }}
Using {{ post.excerpt }} did not lead to the correct formatting of each post on the Home page.
Maybe the discussion link and my experimentation will help others using this theme.
The text was updated successfully, but these errors were encountered:
The default Lanyon settings shows the full view for posts on the index.html page. I'm attempting to edit the index.html file to show the excerpt for posts, so that only the title, date and first paragraph of each post are displayed.
What do I need to add or modify in index.html to make this work?
I hope someone can help me with this issue. Thanks!
Update: After working on this some more, I found a helpful discussion on Stack Overflow
The solution that yielded the best result was replacing {{ post.content }} in index.html with
{{ post.content | markdownify | strip_html | truncatewords: 50 }}
Using {{ post.excerpt }} did not lead to the correct formatting of each post on the Home page.
Maybe the discussion link and my experimentation will help others using this theme.
The text was updated successfully, but these errors were encountered: