Skip to content

Commit abfc5c9

Browse files
committed
configure external links to open in a new tab
1 parent 552a14f commit abfc5c9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mkdocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
site_name: KKT89's Library
22
repo_url: https://github.com/KKT89/cpp-lib
33
repo_name: KKT89/cpp-lib
4+
45
docs_dir: docsrc
56
nav:
67
- Home: index.md
@@ -33,8 +34,12 @@ theme:
3334
name: Switch to light mode
3435

3536
plugins:
36-
search:
37-
lang: 'ja'
37+
- search:
38+
lang: 'ja'
39+
- open-in-new-tab: # ← プラグイン名
40+
external_only: true # 内部リンクはそのまま
41+
noopener: true # rel="noopener"
42+
noreferrer: true # rel="noreferrer"
3843

3944
markdown_extensions:
4045
- admonition

0 commit comments

Comments
 (0)