diff --git a/PSJekyll.types.ps1xml b/PSJekyll.types.ps1xml index db07239..8b6f848 100644 --- a/PSJekyll.types.ps1xml +++ b/PSJekyll.types.ps1xml @@ -1182,24 +1182,22 @@ $FontName, [string] $CodeFont ) +@( if ($FontName) { "<link href='https://fonts.googleapis.com/css?family=$fontName' rel='stylesheet'>" -} else { - @( - "{% if site.googleFont %}" - "<link href='https://fonts.googleapis.com/css?family={{site.googleFont}}' rel='stylesheet'>" - "<style type='text/css'>body { font-family: '{{site.googleFont}}',sans-serif } </style>" - "{% else %}" - "<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>" - "<style type='text/css'>body { font-family: 'Roboto',sans-serif } </style>" - "{% endif %}" - ) -join [Environment]::Newline +} else { + "{% if site.googleFont %}" + "<link href='https://fonts.googleapis.com/css?family={{site.googleFont}}' rel='stylesheet'>" + "<style type='text/css'>body { font-family: '{{site.googleFont}}',sans-serif } </style>" + "{% else %}" + "<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>" + "<style type='text/css'>body { font-family: 'Roboto',sans-serif } </style>" + "{% endif %}" } if ($CodeFont) { "<link href='https://fonts.googleapis.com/css?family=$CodeFont' rel='stylesheet'>" -} else { - @( +} else { "{% if site.codeFont %}" "<link href='https://fonts.googleapis.com/css?family={{site.codeFont}}' rel='stylesheet'>" "<style type='text/css'>code, pre { font-family: '{{site.codeFont}}',monospace } </style>" @@ -1207,8 +1205,8 @@ if ($CodeFont) { "<link href='https://fonts.googleapis.com/css?family=Roboto+Mono' rel='stylesheet'>" "<style type='text/css'>code, pre { font-family: 'Roboto Mono',monospace } </style>" "{% endif %}" - ) -join [Environment]::Newline } +) -join [Environment]::Newline