clean before merge

This commit is contained in:
2025-08-04 23:23:06 +03:00
parent 32abfb86a0
commit 770f7e4874
50 changed files with 0 additions and 2364 deletions
-29
View File
@@ -1,29 +0,0 @@
#!/bin/bash
# Check if a title argument was passed
if [ -z "$1" ]; then
echo "Usage: $0 <slugified-title>"
exit 1
fi
# Get the current date
DATE=$(date +"%Y-%m-%d")
TIMEZONE="+0300"
TITLE_SLUG="$1"
FILENAME="${DATE}-${TITLE_SLUG}.md"
POST_PATH="_posts/${FILENAME}"
# Convert slugified title to a proper title
TITLE=$(echo "$TITLE_SLUG" | sed 's/-/ /g' | sed -E 's/\b(.)/\U\1/g')
# Create the post file with frontmatter
cat <<EOF > "$POST_PATH"
---
title: "${TITLE}"
description: ""
date: ${DATE} ${TIMEZONE}
tags: []
---
EOF
echo "New post created at $POST_PATH"