New-JekyllBlogServer.ps1
19 Sep 2025Description
Purpose
Starts a Jekyll blog server using Docker Compose.
Detailed Description
The New-JekyllBlogServer function starts a Jekyll blog server using Docker Compose. It provides two parameter sets: ‘Select’ and ‘Blog’.
-
‘Select’ parameter set prompts the user to select a folder location and then starts the blog server in that location.
-
‘Blog’ parameter set starts the blog server in the specified path.
-
If no parameter set is specified, it prompts the user to select a folder location and starts the blog server in that location.
Usage
Example 1
New-JekyllBlogServer -BlogPath 'Select'
Starts the Jekyll blog server by prompting the user to select a folder location.
Example 2
New-JekyllBlogServer -BlogPath 'Blog' -Path 'C:\MyBlog'
Starts the Jekyll blog server in the ‘C:\MyBlog’ path.
Notes
No additional notes.
Script
# Define the New-JekyllBlogServer function for demonstration purposes
function New-JekyllBlogServer {
Write-Host "Starting Jekyll blog server..."
# Add your Jekyll blog server start commands here
}
Download
Please feel free to copy parts of the script or if you would like to download the entire script, simply click the download button. You can download the complete repository in a zip file by clicking the Download link in the menu bar on the left hand side of the page.
Report Issues
You can report an issue or contribute to this site on GitHub. Simply click the button below and add any relevant notes. I will attempt to respond to all issues as soon as possible.