Skip to content

Commit

Permalink
feat: PSJekyll.Site.get_Domain ( Fixes #61 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Oct 5, 2024
1 parent 9d37c2b commit 5a51afd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Types/PSJekyll.Site/get_Domain.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<#
.SYNOPSIS
Gets the domain name of the site.
.DESCRIPTION
Gets the domain name of the Jekyll site.
This can be provided by a CNAME file in the root of the site.
#>
$cNamePath = Join-Path $this.Directory "CNAME"
if (Test-Path $cNamePath) {
Get-Content -Path $cNamePath
}

0 comments on commit 5a51afd

Please sign in to comment.