Mais alpine

This commit is contained in:
Hugo Peixoto 2023-07-21 00:28:00 +01:00
parent 5f6dbefe77
commit 1c98cfcdc7

View File

@ -9,7 +9,9 @@ frontmatter_handling = "Parse"
files = [ files = [
EOF EOF
find content/artigos -name "*.md" -printf "%P\n" | while read filename; do find content/artigos -name "*.md" |
sed -e 's|content/artigos/||' |
while read filename; do
slug="$(echo "$filename" | sed -e 's|/index.md||')" slug="$(echo "$filename" | sed -e 's|/index.md||')"
date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')" date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')"
echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"}," echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"},"