/hugo-ruby

Hugo Component for the HTML tag `<ruby>`.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

hugo-ruby

Hugo Component for the HTML tag <ruby>.

More information about <ruby> from MDN: : The Ruby Annotation element

Not to be confused with the Ruby programming language.

Syntax

{{< ruby rb="明日" rt="あした">}}
{{< ruby 明日 あした>}}

Both generate the following HTML:

<ruby>
    明日
    <rp>(</rp>
    <rt>あした</rt>
    <rp>)</rp>
</ruby>