diff --git a/lectures/_config.yml b/lectures/_config.yml index e4a8a23d..5e8d83c5 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -30,6 +30,7 @@ sphinx: html_favicon: _static/lectures-favicon.ico html_theme: quantecon_book_theme html_static_path: ['_static'] + templates_path: ['_templates'] html_theme_options: authors: - name: Thomas J. Sargent diff --git a/lectures/_templates/layout.html b/lectures/_templates/layout.html new file mode 100644 index 00000000..4285a693 --- /dev/null +++ b/lectures/_templates/layout.html @@ -0,0 +1,359 @@ +{# + This template overrides the quantecon_book_theme layout to fix the Jupyter Book link + from https://jupyterbook.org/en/stable/ to https://jupyterbook.org/v1/ + + Unfortunately, the theme doesn't provide a more granular block to override just the + footer link, so we need to override the entire 'content' block. This is the minimal + change required to fix the redirect issue reported by the link checker. + + The only modification from the parent template is on line 89: + - OLD: Jupyter Book + + NEW: Jupyter Book +#} +{%- extends "quantecon_book_theme/layout.html" %} + +{%- block content %} + + +{%- if not theme_quantecon_project %} + +{%- endif %} + + + +
{{ pagetitle | e }}
+ +