fixup! typo

This commit is contained in:
theo1 2021-05-03 20:37:04 +02:00
parent 8467703e2a
commit 987c5fee75

View File

@ -1,6 +1,6 @@
title=$1 title=$1
date=`date --rfc-3339=date` date=`date --rfc-3339=date`
slug=`echo $title | tr '[:upper:]' '[:lower:]'|sed 's/\ /-/'` slug=`echo $title | tr '[:upper:]' '[:lower:]'|sed 's/\ /-/g'|sed 's/é/e/g'|sed 's/è/e/g'|sed "s/'/-/g"`
echo "Title: $title" echo "Title: $title"
echo "Author: theo" echo "Author: theo"
@ -18,12 +18,3 @@ echo "Modified: $date" >> "./content/poems/$slug.md"
echo "Category: poèmes" >> "./content/poems/$slug.md" echo "Category: poèmes" >> "./content/poems/$slug.md"
echo "Tags:" >> "./content/poems/$slug.md" echo "Tags:" >> "./content/poems/$slug.md"
echo "Slug: $slug" >> "./content/poems/$slug.md" echo "Slug: $slug" >> "./content/poems/$slug.md"
# Title: Ravage
# Authors: theo
# Date: 2021-04-12
# Modified: 2021-04-12
# Category: poèmes
# Tags:
# Class: monospace-this
# Slug: ravage