Skip to content

Commit

Permalink
rm template article, add new article script
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCavender committed Mar 11, 2024
1 parent 8e294cb commit f7d3c3c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
17 changes: 17 additions & 0 deletions newArticle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

echo "Article title:"
read TITLE

echo "Article slug:"
read SLUG

cat > src/content/articles/$SLUG.mdx <<EOL
---
title: $TITLE
description: foo
pubDate: 9999-12-31
updatedDate: 9999-12-31
tags: []
---
EOL
7 changes: 0 additions & 7 deletions src/content/articles/_template.mdx

This file was deleted.

0 comments on commit f7d3c3c

Please sign in to comment.