I'd like to add Twitter Card via meta
tag to mdBook.
How can I add meta
tags (example below) to mdBook?
<meta name="twitter:card" content="summary"></meta>
Current workaround is to execute sed
command after mdbook build
.
You can use the theme feature of mdBook.
Create a random mdBook with --theme
option.
$ mdbook init --theme abc
Confirm theme/
directory is created.
$ ls
book book.toml src theme
Copy theme/
directory to your mdBook directory.
Edit theme/index.hbs
.
Execute mdbook build
as usual.