We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22edc2b commit cce33c5Copy full SHA for cce33c5
create_post.ps1
@@ -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
9
# Get the current date
10
$currentDate = Get-Date
11
$year = $currentDate.Year
0 commit comments