Skip to content

Commit eb56391

Browse files
cheungarykagansop
andauthored
[W-15795774] fix redundant homepage title (#715)
* resolve conflicts * fix homepage title * no redundant for archive --------- Co-authored-by: agansop <79335071+agansop@users.noreply.github.com>
1 parent 75f374e commit eb56391

File tree

5 files changed

+8
-71
lines changed

5 files changed

+8
-71
lines changed

package-lock.json

Lines changed: 3 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"eslint-plugin-import": "2.29.1",
4242
"eslint-plugin-node": "11.1.0",
4343
"eslint-plugin-promise": "6.1.1",
44-
"eslint-plugin-standard": "4.1.0",
4544
"fs-extra": "11.2.0",
4645
"gulp": "5.0.0",
4746
"gulp-concat": "2.6.1",

preview-site-src/ui-model.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ site:
1111
homeUrl: *index_url
1212
title: MuleSoft Documentation
1313
keys: {
14-
## uncomment the following line to switch site-profile to jp
15-
# siteProfile: 'jp'
14+
siteProfile: 'preview'
1615
}
1716
components:
1817
general:

src/helpers/capitalize.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = (str) => str.charAt(0).toUpperCase() + str.slice(1)

src/layouts/home.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang={{#if (eq (site-profile) 'jp' )}}"jp"{{else}}"en"{{/if}}>
33

44
<head>
5-
<title>{{{detag (or page.title 'Untitled')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title>
5+
<title>{{{detag (or page.title 'Untitled')}}}{{#if site.title}} {{#if (not (is-one-of site-profile 'archive' 'jp' 'prod'))}}| {{{capitalize (site-profile)}}}{{/if}}{{/if}}</title>
66
{{> head}}
77
</head>
88

0 commit comments

Comments
 (0)