-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGet-HtmlMetaData.ps1
More file actions
31 lines (28 loc) · 1.04 KB
/
Get-HtmlMetaData.ps1
File metadata and controls
31 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function Get-HtmlMetaData {
[CmdletBinding()]
param(
[Parameter(Mandatory = $false)]
[string]$description
)
begin {
Write-Verbose -Message ((Get-ResStr 'STARTING_FUNCTION') -f $myInvocation.Mycommand)
New-Variable -Name 'result' -Scope 'Private' -Value ([System.Collections.Hashtable]@{})
$initialVariables = Get-CurrentVariables -Debug:$DebugPreference
}
process {
[hashtable]$result = @{
author="EULANDA Software GmbH - ERP-Systems - Germany"
generator="Powershell $($PsVersiontable.GitCommitId) by function ConvertTo-Html"
keywords="eulanda, erp, powershell, convertto-html, html"
viewport="width=device-width, initial-scale=1.0"
}
if ($description) {
$result.Add('description', $description) | Out-Null
}
}
end {
Get-CurrentVariables -InitialVariables $initialVariables -Debug:$DebugPreference
Return $result
}
# Test: Get-HtmlMetaData -description 'My meta description'
}