Compare commits
No commits in common. "e0d8a36ab27b7d8f3ea882c86fa926b7d8e37c9a" and "45a5c727a30b22cf21a1c22f96107b7aa53efe1f" have entirely different histories.
e0d8a36ab2
...
45a5c727a3
@ -8,7 +8,7 @@ variables:
|
||||
default:
|
||||
before_script:
|
||||
- export PATH="/root/.cargo/bin:$PATH"
|
||||
- apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev bash ack
|
||||
- apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev
|
||||
- cargo install stork-search --locked --all-features
|
||||
|
||||
test:
|
||||
|
12
mkstork.sh
12
mkstork.sh
@ -9,12 +9,10 @@ frontmatter_handling = "Parse"
|
||||
files = [
|
||||
EOF
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
echo "]"
|
||||
|
Loading…
Reference in New Issue
Block a user