docs: another way to hide a page title at API Reference page

This commit is contained in:
Mateusz Pusz
2024-10-30 14:01:57 +01:00
parent 856e42e4f5
commit 641ea85fc9
3 changed files with 33 additions and 6 deletions

View File

@ -0,0 +1,20 @@
{% extends "main.html" %}
{% block htmltitle %}
{% if page.meta and page.meta.title %}
<title>{{ page.meta.title }}</title>
{% elif page.title and not page.is_homepage %}
<title>{{ page.title | striptags }}</title>
{% else %}
<title>{{ config.site_name }}</title>
{% endif %}
{% endblock %}
{% block content %}
{% include "partials/api_ref_content.html" %}
{% endblock %}
{% block extrahead %}
<style>.md-content__button {display:none !important}; </style>
<style>.md-header__topic {font-weight:700 !important}</style>
{% endblock %}

View File

@ -0,0 +1,11 @@
{% if "material/tags" in config.plugins and tags %}
{% include "partials/tags.html" %}
{% endif %}
{% include "partials/actions.html" %}
{% if "\x3ch1" not in page.content %}
<!--h1>{{ page.title | d(config.site_name, true)}}</h1-->
{% endif %}
{{ page.content }}
{% include "partials/source-file.html" %}
{% include "partials/feedback.html" %}
{% include "partials/comments.html" %}

View File

@ -1,15 +1,11 @@
---
title: API Reference - mp-units
template: api_reference.html
hide:
- navigation
- toc
---
<style>
.md-content .md-typeset h1 {
display: none;
}
</style>
<script src="../javascripts/jquery.min.js"></script>
<script src="../javascripts/iframeResizer.min.js"></script>