Skip to content

Commit 1878787

Browse files
committed
fix: layouts/index.html: Fix whitespace in contributor text
1 parent 26f1f7d commit 1878787

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

layouts/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ <h2 class="section-title">Start Your Journey</h2>
211211
</div>
212212
<div class="journey-ribbon-content">
213213
<p class="journey-ribbon-contributor">
214-
{{ $ribbon.contributor_text_prefix }}
215-
{{ if $contributor_page_resource }}
214+
{{ $ribbon.contributor_text_prefix -}}
215+
{{- if $contributor_page_resource -}}
216216
<a href="{{ $contributor_page_resource.RelPermalink }}">{{ $ribbon.primary_contributor_name }}</a>
217-
{{ else }}
218-
{{ $ribbon.primary_contributor_name }}
219-
{{ end }}
220-
{{ $ribbon.contributor_text_suffix | safeHTML }}
217+
{{- else -}}
218+
{{- $ribbon.primary_contributor_name -}}
219+
{{- end -}}
220+
{{- $ribbon.contributor_text_suffix | safeHTML -}}
221221
</p>
222222
<h3 class="journey-ribbon-title">{{ $ribbon.title }}</h3>
223223
<p class="journey-ribbon-description">

0 commit comments

Comments
 (0)