{% extends "base.html" %} {% block body -%} {%- if pagename == master_doc -%} {%- include "layouts/home.html" with context -%} {%- else -%} {%- include "layouts/content.html" with context -%} {%- endif -%} {%- endblock %}