From 304a54e316c3329c086906643e4722924e1a7c2b Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Sat, 5 Oct 2024 16:46:43 -0700 Subject: [PATCH] feat: PSJekyll.Template.IncludeGoogleFont ( Fixes #59 ) --- Types/PSJekyll.Template/IncludeGoogleFont.ps1 | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Types/PSJekyll.Template/IncludeGoogleFont.ps1 diff --git a/Types/PSJekyll.Template/IncludeGoogleFont.ps1 b/Types/PSJekyll.Template/IncludeGoogleFont.ps1 new file mode 100644 index 0000000..6dc48da --- /dev/null +++ b/Types/PSJekyll.Template/IncludeGoogleFont.ps1 @@ -0,0 +1,24 @@ +<# +.SYNOPSIS + Includes a Google Font. +.DESCRIPTION + Includes a Google Font in the site. + + This will add a link to the Google Font. It should be located in the head of the site. +#> + +param( +# The name of the font to include. +[string] +$FontName +) +if ($FontName) { + "" +} else { + @( + "<% if site.googleFont %>" + "" + "<% endif %>" + ) -join [Environment]::Newline +} +