Hauptordner der Seite umbenannt
von "sb" (static blog) zu "Website" (wie gewünscht) ;-)
This commit is contained in:
parent
fd3fc9856a
commit
c8ba286cf8
137 changed files with 1 additions and 1 deletions
7
Website/scripts/get-weight-by-publishdate.sh
Normal file
7
Website/scripts/get-weight-by-publishdate.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
FILE=$1
|
||||
WEIGHT="weight: -20500101"
|
||||
echo "working on >>"$FILE"<<"
|
||||
DETECTED_DATE=$(grep datePublished $FILE | sed -E 's/datePublished...(2024)-(..)-(..)./\1\2\3/')
|
||||
echo "weight to set: >>-"$DETECTED_DATE"<<"
|
||||
sed -i "s/weight: xxx/weight: -${DETECTED_DATE}/" $FILE
|
||||
Loading…
Add table
Add a link
Reference in a new issue