Skip to content

Commit

Permalink
feat: Tech.Hugo ( Fixes #1072 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Mar 16, 2024
1 parent 2e153f6 commit c42ea2a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Tech/Hugo/Hugo-Tech.ps.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Tech Constant Hugo {
<#
.SYNOPSIS
Hugo Tech Definition
.DESCRIPTION
Defines Hugo as a techology PipeScript can work with.
#>
param()
$Name = 'Hugo'
$Synopsis = 'A Fast and Flexible Static Site Generator'
$Description = @'
Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.
'@
$Website = 'https://gohugo.io/'
$Install = {
if ($IsMacOS) {brew install hugo}
elseif ($IsLinux) { sudo snap install hugo }
elseif (
$executionContext.SessionState.InvokeCommand.GetCommand('choco','Application,Alias')
)
{choco install hugo-extended}
elseif (
$executionContext.SessionState.InvokeCommand.GetCommand('scoop','Application,Alias')
)
{scoop install hugo}
elseif (
$executionContext.SessionState.InvokeCommand.GetCommand('winget','Application,Alias')
)
{winget install Hugo.Hugo.Extended}
else {
'https://gohugo.io/download/'
}
}
$Serve = {hugo server @args}
$Language = 'Go'
}

0 comments on commit c42ea2a

Please sign in to comment.