Skip to content

Commit f31b657

Browse files
feat: Adding metadata ( Fixes PoshWeb#16 )
Adjusting description
1 parent 7747309 commit f31b657

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

build.ps1

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,9 @@ $history = @(try {
116116
$buildTimes | ConvertTo-Html -Title BuildTimes > ./times.html
117117

118118

119-
$descriptionMessage = foreach ($buildtime in $buildTime) {
120-
[Web.HttpUtility]::HtmlAttributeEncode(
121-
($buildTime.Technique, $buildTime.Time -join ':')
122-
)
123-
}
119+
$descriptionMessage = @(foreach ($buildtime in $buildTimes) {
120+
($buildTime.Technique, $buildTime.Time -join ':')
121+
}) -join [Environment]::NewLine
124122

125123
@(
126124
"<html>"
@@ -133,7 +131,11 @@ $descriptionMessage = foreach ($buildtime in $buildTime) {
133131

134132
"<meta name='og:title' content='4kb Markdown Files Benchmark' />"
135133

136-
"<meta name='og:description' content='4kb Markdown Files Benchmark. The fastest framework is no framework. $descriptionMessage' />"
134+
"<meta name='og:description' content='
135+
4kb Markdown Files Benchmark.
136+
The fastest framework is no framework.
137+
$([Web.HttpUtility]::HtmlAttributeEncode($descriptionMessage))
138+
' />"
137139

138140
"<meta name='article:published_time' content='$($StartTime.ToString('s'))' />"
139141

0 commit comments

Comments
 (0)