forked from ansol/drm-pt.info
Mais alpine
This commit is contained in:
parent
5f6dbefe77
commit
1c98cfcdc7
12
mkstork.sh
12
mkstork.sh
@ -9,10 +9,12 @@ frontmatter_handling = "Parse"
|
||||
files = [
|
||||
EOF
|
||||
|
||||
find content/artigos -name "*.md" -printf "%P\n" | while read filename; do
|
||||
slug="$(echo "$filename" | sed -e 's|/index.md||')"
|
||||
date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')"
|
||||
echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"},"
|
||||
done
|
||||
find content/artigos -name "*.md" |
|
||||
sed -e 's|content/artigos/||' |
|
||||
while read filename; do
|
||||
slug="$(echo "$filename" | sed -e 's|/index.md||')"
|
||||
date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')"
|
||||
echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"},"
|
||||
done
|
||||
|
||||
echo "]"
|
||||
|
Loading…
Reference in New Issue
Block a user