Skip to content

Commit 5174164

Browse files
committed
.phpdoc/template: Add meta description
1 parent b5a0b86 commit 5174164

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tools/php_api_ref/.phpdoc/template/class.html.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{% extends 'base.html.twig' %}
22

33
{% block title %}{{ node.name }} | {{ parent() }}{% endblock %}
4+
{% block meta %}
5+
<meta name="description" content="{{ node.summary }}" />
6+
{% endblock %}
47

58
{% block content %}
69
{% include 'components/breadcrumbs.html.twig' %}

tools/php_api_ref/.phpdoc/template/interface.html.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{% extends 'base.html.twig' %}
22

33
{% block title %}{{ node.name }} | {{ parent() }}{% endblock %}
4+
{% block meta %}
5+
<meta name="description" content="{{ node.summary }}" />
6+
{% endblock %}
47

58
{% block content %}
69
{% include 'components/breadcrumbs.html.twig' %}
@@ -16,7 +19,7 @@
1619

1720
{% if constants is not empty or properties is not empty or methods is not empty %}
1821
<label class="md-nav__title" for="__toc" title="{{ node.name }}">
19-
{{ node.name}}
22+
{{ node.name }}
2023
</label>
2124
{% endif %}
2225

0 commit comments

Comments
 (0)