page-header
页面的标题栏:一个 h1、可选的副标题,以及一个主操作。
标题、副标题和一个主要操作
<header rst-page-header >
<div rst-page-header-titles >
<h1 >文章</h1 >
<p rst-page-header-sub >你写过的所有内容,最新的在前。</p >
</div >
<a rst-btn ="primary" href ="/posts/new" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="M5 12h14" /><path d ="M12 5v14" /></svg >
写一篇文章
</a >
</header >
{{ template "page-header" dict
"Title" "文章"
"Sub" "你写过的所有内容,最新的在前。"
"ActionHref" "/posts/new"
"ActionLabel" "写一篇文章"
"ActionIcon" "plus" }}
只有标题
<header rst-page-header >
<div rst-page-header-titles >
<h1 >设置</h1 >
</div >
</header >
{{ template "page-header" dict "Title" "设置" }}