From 28aee4b0e728b4eb28e03298117a6ff9e61f6afb Mon Sep 17 00:00:00 2001 From: Howard Baek <50791792+howardbaek@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:55:51 -0700 Subject: [PATCH 1/2] Add JS code to open links in new tab --- assets/open-new-tab.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 assets/open-new-tab.html diff --git a/assets/open-new-tab.html b/assets/open-new-tab.html new file mode 100644 index 00000000..2f93db47 --- /dev/null +++ b/assets/open-new-tab.html @@ -0,0 +1,9 @@ + \ No newline at end of file From 85bcb7e522bc11334ed147e0388d2a058e47dbad Mon Sep 17 00:00:00 2001 From: Howard Baek <50791792+howardbaek@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:56:18 -0700 Subject: [PATCH 2/2] Add `open-new-tab.html` to `_output.yml` --- _output.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_output.yml b/_output.yml index 37d3f52a..4abb75f3 100644 --- a/_output.yml +++ b/_output.yml @@ -2,8 +2,8 @@ bookdown::gitbook: css: assets/style.css includes: before_body: assets/big-image.html - after_body: assets/footer.html - highlight: tango + after_body: [assets/footer.html, assets/open-new-tab.html] + highlight: tango config: toc: collapse: section