vitepress-blog-starter icon indicating copy to clipboard operation
vitepress-blog-starter copied to clipboard

post.excerpt appears above PostDetail.vue

Open saddam-azad opened this issue 1 year ago • 2 comments

The PostDetail.vue template does not have a slot for post.excerpt yet in the post page (e.g. /blog/post/post4.html), the excerpt appears ABOVE the post followed by an HR tag. There does not appear to be a template to modify this.

I don't want to show the excerpt on the post page. Is there a template file that wraps around PostDetail.vue?

Capture

saddam-azad avatar Nov 05 '23 09:11 saddam-azad

Hi, help me to understand your issue.

If you don't add the excerpt, nothing is rendered and also no hr tag.

---
title: 5 Powerful Marketing Activities
author: Louis Lane
date: 2022-11-01
category: Tutorial

---

<PostDetail>

## Post Sample data

:smile:

</PostDetail>

imho nothing more is needed. If i am wrong please let me know.

Greetings,

Tom

sfxcode avatar Nov 19 '23 08:11 sfxcode

Hi, thanks for your reply. Our use-case requires showing the excerpt in the blog index, but not showing it on the post detail page.

saddam-azad avatar Nov 30 '23 11:11 saddam-azad