Skip to content

Commit c2f33c7

Browse files
Tim Bannisterdipesh-rawat
andcommitted
Make case study title prefix localizable
Co-authored-by: Dipesh Rawat <[email protected]>
1 parent 9a9038f commit c2f33c7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

data/i18n/en/en.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ other = "Show More Posts..."
1818
[banner_acknowledgement]
1919
other = "Hide this notice"
2020

21+
[case_study_prefix]
22+
other = "Case study:"
23+
2124
[caution]
2225
other = "Caution:"
2326

layouts/case-studies/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!-- Heading -->
77
<div class="banner {{ if .Params.use_gradient_overlay }}overlay{{ end }}" {{ if isset .Params "heading_background" }}style="background-image: url({{ .Params.heading_background }});"{{ end }}>
88
<h1>
9-
<span class="heading">{{ .Params.title_prefix | default "CASE STUDY:" }}</span>
9+
<span class="heading">{{ .Params.title_prefix | default ( T "case_study_prefix" ) }}</span>
1010
{{- if isset .Params "heading_title_logo" -}}
1111
<img class="heading-logo" src="{{ .Params.heading_title_logo}}" />
1212
{{- else if isset .Params "heading_title_text" -}}

0 commit comments

Comments
 (0)