Skip to content

Commit bc47682

Browse files
Merge pull request #3495 from SwiftPackageIndex/update-custom-collections-page-title
Update custom collection page title
2 parents a4a4cd1 + 1ef8259 commit bc47682

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/App/Views/CustomCollection/CustomCollectionShow+View.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum CustomCollectionShow {
2727
}
2828

2929
override func pageTitle() -> String? {
30-
"Packages for collection \(model.name)"
30+
"\(model.name) package collection"
3131
}
3232

3333
override func pageDescription() -> String? {
@@ -46,7 +46,7 @@ enum CustomCollectionShow {
4646
.group(
4747
.h2(
4848
.class("trimmed"),
49-
.text("Packages for collection “\(model.name)")
49+
.text("\(model.name) package collection")
5050
),
5151
.p(
5252
.text("These packages are available as a package collection, "),

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/test_CustomCollectionShow.1.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<link rel="canonical" href="http://localhost:8080/"/>
88
<meta name="twitter:url" content="http://localhost:8080/"/>
99
<meta property="og:url" content="http://localhost:8080/"/>
10-
<title>Packages for collection Custom Collection &ndash; Swift Package Index</title>
11-
<meta name="twitter:title" content="Packages for collection Custom Collection &ndash; Swift Package Index"/>
12-
<meta property="og:title" content="Packages for collection Custom Collection &ndash; Swift Package Index"/>
10+
<title>Custom Collection package collection &ndash; Swift Package Index</title>
11+
<meta name="twitter:title" content="Custom Collection package collection &ndash; Swift Package Index"/>
12+
<meta property="og:title" content="Custom Collection package collection &ndash; Swift Package Index"/>
1313
<meta name="description" content="The Swift Package Index is indexing 5 packages for collection Custom Collection."/>
1414
<meta name="twitter:description" content="The Swift Package Index is indexing 5 packages for collection Custom Collection."/>
1515
<meta property="og:description" content="The Swift Package Index is indexing 5 packages for collection Custom Collection."/>
@@ -82,7 +82,7 @@ <h1>
8282
</nav>
8383
<main>
8484
<div class="inner">
85-
<h2 class="trimmed">Packages for collection “Custom Collection</h2>
85+
<h2 class="trimmed">Custom Collection package collection</h2>
8686
<p>These packages are available as a package collection,
8787
<a href="/package-collections">usable in Xcode 13 or the Swift Package Manager 5.5</a>.
8888
</p>

0 commit comments

Comments
 (0)