diff --git a/content/pages/homepage.md b/content/pages/homepage.md index e6a379b1..8085ce58 100644 --- a/content/pages/homepage.md +++ b/content/pages/homepage.md @@ -1,5 +1,4 @@ -title: Read the Docs -subtitle: Example subtitle +title: Home template: readthedocs/homepage save_as: index.html status: hidden diff --git a/readthedocs-theme/templates/base.html b/readthedocs-theme/templates/base.html index 26bffc1b..49f4981b 100644 --- a/readthedocs-theme/templates/base.html +++ b/readthedocs-theme/templates/base.html @@ -40,11 +40,11 @@ {% endblock head %} - + {% include 'includes/topnav.html' %}
{% block content %}{% endblock %}
{% include 'includes/footer.html' %} - \ No newline at end of file + diff --git a/readthedocs-theme/templates/page.html b/readthedocs-theme/templates/page.html index 4b3bc344..b52cc8b4 100644 --- a/readthedocs-theme/templates/page.html +++ b/readthedocs-theme/templates/page.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% block html_lang %}{{ page.lang }}{% endblock %} +{% block body_id %}page-{{ page.slug }}{% endblock body_id %} {% block title %}{% if page.title %}{{ page.title|striptags }} - {% endif %}{{ SITENAME }}{%endblock%} diff --git a/readthedocs-theme/templates/readthedocs/homepage.html b/readthedocs-theme/templates/readthedocs/homepage.html index f67c61de..ad5d4d97 100644 --- a/readthedocs-theme/templates/readthedocs/homepage.html +++ b/readthedocs-theme/templates/readthedocs/homepage.html @@ -1,7 +1,5 @@ {% extends "page.html" %} -{% block body_id %}home{% endblock %} - {% block content %}