diff --git a/Languages/HTML/Templates/Layout/HTML-Default-Layout.ps.ps1 b/Languages/HTML/Templates/Layout/HTML-Default-Layout.ps.ps1 index 11eead38b..8d65572a0 100644 --- a/Languages/HTML/Templates/Layout/HTML-Default-Layout.ps.ps1 +++ b/Languages/HTML/Templates/Layout/HTML-Default-Layout.ps.ps1 @@ -77,9 +77,12 @@ Template function HTML.Default.Layout { $JavaScript, # The name of the palette to use. If set, it will include the 4bitcss link tag. + # This is a CSS file that sets the foreground and background colors. + # If palette contains slashes, it will be presumed to be an external palette file. + # This palette file _should_ follow the same conventions as those found in [4bitcss](https://4bitcss.com). [vbn()] - [Alias('ColorScheme','ColorPalette')] - [string] + [Alias('Palette','ColorScheme','ColorPalette')] + [string[]] $PaletteName, # One or more google fonts to include @@ -101,7 +104,7 @@ Template function HTML.Default.Layout { # The language of the page. If set, it will include the lang attribute. [vbn()] [cultureinfo] - $Language, + $Language = [cultureinfo]::CurrentUICulture, # The date the page was published. If set, it will include the article:published_time meta tag. [vbn()] @@ -229,8 +232,13 @@ Template function HTML.Default.Layout { } if ($PaletteName) { foreach ($NameOfPalette in $PaletteName) { - $MachineFriendlyName = $NameOfPalette -replace '\s','-' -replace '\p{P}','-' -replace '-+','-' -replace '-$' - "" + if ($PaletteName -match '[\\/]') { + "" + } else { + $MachineFriendlyName = $NameOfPalette -replace '\s','-' -replace '\p{P}','-' -replace '-+','-' -replace '-$' + "" + } + } $Class += "foreground", "background" }