main.html 1.1 KB

12345678910111213141516171819202122232425
  1. {% extends "base.html" %}
  2. {#
  3. The entry point for the ReadTheDocs Theme.
  4. Any theme customisations should override this file to redefine blocks defined in
  5. the various templates. The custom theme should only need to define a main.html
  6. which `{% extends "base.html" %}` and defines various blocks which will replace
  7. the blocks defined in base.html and its included child templates.
  8. #}
  9. {%- block site_meta %}
  10. <meta charset="utf-8">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  13. {%- if 'media.readthedocs.org' not in config.extra_css[0] %}
  14. <meta name="robots" content="noindex, nofollow">
  15. {%- endif %}
  16. {% if page and page.is_homepage %}<meta name="description" content="{{ config.site_description }}">{% endif %}
  17. {% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
  18. {% if config.site_favicon %}<link rel="shortcut icon" href="{{ config.site_favicon|url }}">
  19. {% else %}<link rel="shortcut icon" href="{{ 'img/favicon.ico'|url }}">{% endif %}
  20. {%- endblock %}