带行号(Giallo 的 .giallo-l 标记),长行横向滚动:
fn main() {
let dot = RedDot::new("living-room");
tracker.follow(dot, Speed::Pounce).expect("the red dot always escapes under the sofa, behind the bookshelf and out past the sunbeam, but the chase is the whole point");
}
带行号并自动换行(Shiki 的 .line 标记):换行的部分缩进到行号之后,空行保留,第一行让开复制按钮。
fn main() {
let dot = RedDot::new("living-room");
tracker.follow(dot, Speed::Pounce).expect("the red dot always escapes under the sofa, behind the bookshelf and out past the sunbeam, but the chase is the whole point");
}
同一页里退出默认的行号:
duna feed --bowl kitchen
duna nap --spot sunbeam
社交链接
一排圆形的图标链接。图标在
dist/icons.css里(需要单独引入),每个链接都有一个视觉上隐藏的名字。下面是全部图标;
twitter是x的别名。同样的图标也以 SVG 文件放在dist/icons/里,可以直接内联。图标来自 Simple Icons(CC0)和 Bootstrap Icons(MIT),品牌名称和标志归各自所有者。githublinkedingoogle-scholarinstagramxemailrssorciddblpsemantic-scholarwechatweibozhihubilibilixiaohongshublueskymastodonthreadsyoutube标记
<link rel="stylesheet" href="…/dist/icons.css" /> <ul class="f-social" aria-label="Elsewhere"> <li> <a class="f-social__link" href="https://github.com/example" rel="me noopener"> <span class="f-icon f-icon--github" aria-hidden="true"></span> <span class="f-visually-hidden">GitHub</span> </a> </li> </ul>