Skip to content

Commit 383151e

Browse files
committed
説明専用バッジのリンクを変更
タイトル横の説明専用バッジに /reference/exposition-only へのリンクが付くようにしました。
1 parent 6b486d3 commit 383151e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/kunai/ui/badge.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const sanitize = (badges) => {
2222
let deprecated_or_removed = false
2323
let cppv = null
2424
let named_version = null
25+
let exposition_only = false
2526
for (const c of b_classes) {
2627
if (/^(?:future|archive)$/.test(c)) {
2728
named_version = c
@@ -31,6 +32,7 @@ const sanitize = (badges) => {
3132
}
3233

3334
if (c === 'exposition-only') {
35+
exposition_only = true
3436
classes.push('exposition-only-spec')
3537
}
3638

@@ -59,6 +61,7 @@ const sanitize = (badges) => {
5961

6062
const lang_path = cppv ? `/lang/cpp${cppv}` :
6163
named_version ? `/lang/${named_version}` :
64+
exposition_only ? '/reference/exposition-only' :
6265
`/lang`
6366
const a_elem = $('<a>', {href: `${lang_path}.html`})
6467
.append($('<i>'))

0 commit comments

Comments
 (0)