Skip to content

Commit

Permalink
has subtitle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Feb 24, 2022
1 parent 9d07f84 commit b8899e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
---
<main id="main" class="mb-5">
{%- if page.title %}
{%- if page.type %}
{%- assign subtitle = page.type | replace: "_", " " | capitalize %}
<h1>{% unless subtitle == nil or subtitle == blank or subtitle == "" %}<span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {% endunless %}{{ page.title }}
<h1 class="has-subtitle"><span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {{ page.title }}
{%- else %}
<h1>{{ page.title }}
{%- endif %}
<div class="btn-group">
{%- if page.custom-editme %}
<a role="button" data-bs-toggle="tooltip" title="Propose changes to the content of this page on GitHub" href="{{site.github.repository_url}}/blob/master/{{page.custom-editme}}" class="btn hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
Expand Down

0 comments on commit b8899e6

Please sign in to comment.