Skip to content

Commit

Permalink
Removed description handling from the single.html, as it is not neede…
Browse files Browse the repository at this point in the history
…d anymore diectly

Signed-off-by: Hofi <hofione@gmail.com>
  • Loading branch information
HofiOne committed May 10, 2024
1 parent 831a67a commit f141f1e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,24 @@
{% unless page.header.overlay_color or page.header.overlay_image %}
<header>
{% if page.title %}
<h1 id="page-title" class="page__title p-name {% if page.subtitle == null and page.description == null %} page__title_decoration{% endif %}" itemprop="headline">
{% 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 %}
<h1 id="page-title" class="page__title p-name page__title_decoration" itemprop="headline">
<a href="{{ page.url | absolute_url }}" class="u-url nav-link" itemprop="url">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a>
</h1>
{% endif %}
{% comment %}<!--
DO NOT ADD page.subtitle and page.description !!!
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.
This eliminates markdown and liquid rendering differences in the description part.
{% if page.subtitle or page.description %}
{% if page.subtitle %}
{% assign subtitle = page.subtitle %}
{% else %}
{% assign subtitle = page.description %}
{% endif %}
<p id="page-subtitle" class="page__subtitle p-name page__title_decoration" itemprop="headline">{{ subtitle | liquify | markdownify | remove: "<p>" | remove: "</p>" }}</p>
{% endif %}
{% endif %} -->{% endcomment %}
{% include page__meta.html %}
</header>
{% endunless %}
Expand Down

0 comments on commit f141f1e

Please sign in to comment.