cleanup
This commit is contained in:
parent
979a575223
commit
1734adb63a
2 changed files with 0 additions and 34 deletions
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
title: 'Liste de recettes'
|
||||
tags: []
|
||||
date: 2023-10-31T13:22:00
|
||||
draft: false
|
||||
publish: "true"
|
||||
---
|
||||
Astuce : utiliser [justtherecipe.com](justtherecipe.com) pour chap les kilomètres de blog useless dans les pages de recettes en ligne
|
||||
|
||||
```dataview
|
||||
table duration, maturity
|
||||
where type="recipe"
|
||||
```
|
|
@ -1,21 +0,0 @@
|
|||
#!/bin/bash
|
||||
title: 'rename'
|
||||
|
||||
# Directory to work on (current directory)
|
||||
DIR="."
|
||||
|
||||
# Loop over all files in the directory
|
||||
for file in "$DIR"/*; do
|
||||
# Only process regular files
|
||||
if [[ -f "$file" ]]; then
|
||||
# Get filename without extension and path
|
||||
filename=$(basename "$file")
|
||||
name="${filename%.*}"
|
||||
|
||||
# Insert title at line 2 using sed (create temp file)
|
||||
sed "1a\\
|
||||
title: '$name'
|
||||
" "$file" > "${file}.tmp" && mv "${file}.tmp" "$file"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue