Skip to content

Commit

Permalink
Remove p and add comma if multiple
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde de Vries <[email protected]>
  • Loading branch information
hidde committed Feb 25, 2021
1 parent 4c17bd2 commit f06685d
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,21 @@ <h1>{% if page.title_icon %}
{{ page.title | xml_escape }}
{% endif %}
<span class="in-resource-sub">
{% for link in page.parent_in_h1 %}
{%- if link.ref -%}{%- unless page.ref == link.ref -%}
{% if link.name == "title" %}
<p>{% include t.html t="in" %} {% include link.html to=link.ref %}</p>
{% elsif link.name == "nav_title" %}
<p>{% include t.html t="in" %} {% include link.html to=link.ref usenavtitle="true" %}</p>
{% elsif link.name == "title_html" %}
<p>{% include t.html t="in" %} {% include link.html to=link.ref usetitlehtml="true" %}</p>
{% else %}
<p>{% include t.html t="in" %} {% include link.html to=link.ref text=link.name %}</p>
{% endif %}
{%- endunless -%}{%- endif -%}
{% endfor %}
{% include t.html t="in" %}{{ ' ' }}
{%- for link in page.parent_in_h1 -%}
{%- unless forloop.first == true -%},{{ ' ' }}{%- endunless -%}
{%- if link.ref -%}{%- unless page.ref == link.ref -%}
{%- if link.name == "title" -%}
{% include link.html to=link.ref %}<
{%- elsif link.name == "nav_title" -%}
{% include link.html to=link.ref usenavtitle="true" %}
{%- elsif link.name == "title_html" -%}
{% include link.html to=link.ref usetitlehtml="true" %}
{%- else -%}
{% include link.html to=link.ref text=link.name %}
{%- endif -%}
{%- endunless -%}{%- endif -%}
{%- endfor -%}
</span>
</h1>
</header>
Expand Down

0 comments on commit f06685d

Please sign in to comment.