Skip to content

Commit cce33c5

Browse files
committed
Commented the create script.
1 parent 22edc2b commit cce33c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

create_post.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# GitHub Copilot prompt I used to generate this script:
2+
# Write a Powershell script to create a starting point for a blog post.
3+
# The post is stored in folder "docs/posts/{year}/{month}/{day}" .
4+
# Create the folder, then in that folder create a markdown file called "index.md".
5+
# At the top of the file create a yaml block with title and date.
6+
7+
# I needed to unquote the date, and add the Out-Null to the New-Item command.
8+
19
# Get the current date
210
$currentDate = Get-Date
311
$year = $currentDate.Year

0 commit comments

Comments
 (0)