pub(super) fn PostNavLinks(props: PostNavLinksProps) -> impl IntoViewExpand description
文章相邻导航组件。
Props:
prev:上一篇文章摘要next:下一篇文章摘要sample:图鉴使用不可导航的样例锚点,默认 false。
两张并排卡片,下一篇右对齐;窄容器中纵向排列。 无相邻文章时不渲染对应链接,两侧都缺失时不渲染导航。
§Required Props
prev:impl Into<Option<PostNav>>next:impl Into<Option<PostNav>>
§Optional Props
sample:bool