Skip to content

Commit

Permalink
Avoid overriding the entire index.hbs file
Browse files Browse the repository at this point in the history
Avoids breakage across mdBook versions (e.g. live-reload recently stopped working)
  • Loading branch information
ISSOtm committed Sep 21, 2022
1 parent 0c8e532 commit ae89342
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 325 deletions.
6 changes: 3 additions & 3 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ traverse-parent-directories = false
optional = true
exclude = [
'https://github\.com/gbdev/pandocs/tree/', # Do not check the "this was generated from commit N" link, as the commit may not have been pushed yet
'print.html', # Do not check the print page, as it is generated separately
'single.html', # Do not check the single page, as it is generated separately
'http[s]*://problemkaputt\.de', # Skip checking problemkaputt.de, as connection to this domain is generally unreliable
'print.html', # Do not check the print page, as it is generated separately
'single.html', # Do not check the single page, as it is generated separately
'http[s]*://problemkaputt\.de', # Skip checking problemkaputt.de, as connection to this domain is generally unreliable
]
9 changes: 9 additions & 0 deletions theme/head.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Open Graph tags-->
<meta name="og:site_name" content="summary" />
<meta name="og:image" content="https://gbdev.io/pandocs/favicon.png" />
<meta name="og:title" content="{{ title }}" />
<meta name="og:description" content="{{ description }}" />

<!-- Twitter meta tags -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@gbdev0" />
322 changes: 0 additions & 322 deletions theme/index.hbs

This file was deleted.

0 comments on commit ae89342

Please sign in to comment.