Ka Wāwae I Hoʻopilikino ʻia

Ke lawe nei i ka papahana demo ma ke ʻano he laʻana, .i18n/htm/foot.pug ma ka papa kuhikuhi md e wehewehe i ka wāwae o ka pūnaewele.

Kāhua Wāwae

Aia ʻekolu css faila ma lalo o md/.i18n/htm i ka papahana demo.

Kiʻi Kikokikona

Hoʻokumu ʻia ka ʻikona footer ma ka hana ʻana i kahi font i kapa ʻia F iconfont.cn ka mana Pelekane /中文版).

E ʻoluʻolu e hana i kāu ʻona ponoʻī a hoʻololi i ka font ikona i ka hoʻonohonoho ʻana ma conf.css :

@font-face {
  font-family: "F";
  src: url(//p.3ti.site/ico1.woff2) format("woff2");
}

#Ft>b>a.site {
  background: url("//p.3ti.site/i18n.svg") 0 0 / cover;
  display: block;
  height: 24px;
  opacity: 0.8;
  width: 115px;
  flex-shrink: 0;
}

Mai kuhikuhi pololei i ka faila font o iconfont.cn no ka mea ʻaʻole hiki ke hoʻouka ʻia ma ka polokalamu Safari.

Ka Wāwae ʻōlelo He Nui

Penei ke code ma .i18n/htm/foot.pug :

#Ft
  b
    a.site(href="/")
    b ${I18N.C}

Eia ${I18N.C} pili me en/i18n.yml :

C: Power By <a class="a" href="https://i18n.site">i18n.site</a>

Ke hoʻohana nei i ${I18N.xxx} e like me kēia ʻano kākau, i hui pū ʻia me i18n.yml , hiki iā ʻoe ke hoʻokō i ka internationalization multi-language o ka footer.

ʻO ka hoʻohui ʻana i class="a" i ka loulou i mea e pale ai i ka hoʻololi ʻana i ka loulou i MarkDown E nānā : HTML YAML : Markdown