Skip to content

Commit a6f3169

Browse files
StartAutomatingStartAutomating
StartAutomating
authored and
StartAutomating
committed
feat: OpenGraph.get_HTML ( Fixes #8 )
Adding Author and IconURI to OpenGraph module output
1 parent 123d11b commit a6f3169

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

OpenGraph.types.ps1xml

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
if ($this.Description) {
1111
"<meta name='description' content='$([Web.HttpUtility]::HtmlAttributeEncode($this.Description))' />"
1212
}
13-
if ($this.PrivateData.PSData.IconUri) {
14-
13+
if ($this.Author) {
14+
"<meta name='article:author' content='$([Web.HttpUtility]::HtmlAttributeEncode($this.Author))' />"
1515
}
16+
if ($this.PrivateData.PSData.IconUri) {
17+
"<meta property='og:image' content='$([Web.HttpUtility]::HtmlAttributeEncode($this.PrivateData.PSData.IconUri))' />"
18+
}
1619
} else {
1720
foreach ($property in $this.PSObject.Properties) {
1821
if ($property.Name -match ':') {

0 commit comments

Comments
 (0)