Skip to content

Commit f141f1e

Browse files
committed
Removed description handling from the single.html, as it is not needed anymore diectly
Signed-off-by: Hofi <hofione@gmail.com>
1 parent 831a67a commit f141f1e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

_layouts/single.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,24 @@
3131
{% unless page.header.overlay_color or page.header.overlay_image %}
3232
<header>
3333
{% if page.title %}
34-
<h1 id="page-title" class="page__title p-name {% if page.subtitle == null and page.description == null %} page__title_decoration{% endif %}" itemprop="headline">
34+
{% comment %}<!-- <h1 id="page-title" class="page__title p-name {% if page.subtitle == null and page.description == null %} page__title_decoration{% endif %}" itemprop="headline"> -->{% endcomment %}
35+
<h1 id="page-title" class="page__title p-name page__title_decoration" itemprop="headline">
3536
<a href="{{ page.url | absolute_url }}" class="u-url nav-link" itemprop="url">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a>
3637
</h1>
3738
{% endif %}
39+
{% comment %}<!--
40+
DO NOT ADD page.subtitle and page.description !!!
41+
It will be added by aour Jekyll plugin as simple text paragraph right at the beggining of the content, before the first heading instead, that will be used as description in the tooltips.
42+
This eliminates markdown and liquid rendering differences in the description part.
43+
3844
{% if page.subtitle or page.description %}
3945
{% if page.subtitle %}
4046
{% assign subtitle = page.subtitle %}
4147
{% else %}
4248
{% assign subtitle = page.description %}
4349
{% endif %}
4450
<p id="page-subtitle" class="page__subtitle p-name page__title_decoration" itemprop="headline">{{ subtitle | liquify | markdownify | remove: "<p>" | remove: "</p>" }}</p>
45-
{% endif %}
51+
{% endif %} -->{% endcomment %}
4652
{% include page__meta.html %}
4753
</header>
4854
{% endunless %}

0 commit comments

Comments
 (0)