fixup! typo
This commit is contained in:
parent
8467703e2a
commit
987c5fee75
11
newpoem.sh
11
newpoem.sh
@ -1,6 +1,6 @@
|
||||
title=$1
|
||||
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 "Author: theo"
|
||||
@ -18,12 +18,3 @@ echo "Modified: $date" >> "./content/poems/$slug.md"
|
||||
echo "Category: poèmes" >> "./content/poems/$slug.md"
|
||||
echo "Tags:" >> "./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
|
||||
|
Loading…
Reference in New Issue
Block a user