编写
编写ruby.html
放在layouts/shortcodes/
文件夹中
1<!-- layouts/shortcodes/ruby.html -->
2<ruby>
3 {{ .Get "text" }}<rp>(</rp><rt>{{ .Get "title" }}</rt><rp>)</rp>
4</ruby>
使用
1{{< ruby title="完全没理解" text="太棒了,我逐渐理解一切" >}}
除另有声明外,本博客文章均采用 知识共享 (Creative Commons) 署名 4.0 国际许可协议 进行许可。转载请注明原作者与文章出处。