Compare commits
No commits in common. "e0d8a36ab27b7d8f3ea882c86fa926b7d8e37c9a" and "45a5c727a30b22cf21a1c22f96107b7aa53efe1f" have entirely different histories.
e0d8a36ab2
...
45a5c727a3
@ -8,7 +8,7 @@ variables:
|
|||||||
default:
|
default:
|
||||||
before_script:
|
before_script:
|
||||||
- export PATH="/root/.cargo/bin:$PATH"
|
- 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
|
- cargo install stork-search --locked --all-features
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
12
mkstork.sh
12
mkstork.sh
@ -9,12 +9,10 @@ frontmatter_handling = "Parse"
|
|||||||
files = [
|
files = [
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
find content/artigos -name "*.md" |
|
find content/artigos -name "*.md" -printf "%P\n" | while read filename; do
|
||||||
sed -e 's|content/artigos/||' |
|
slug="$(echo "$filename" | sed -e 's|/index.md||')"
|
||||||
while read filename; do
|
date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')"
|
||||||
slug="$(echo "$filename" | sed -e 's|/index.md||')"
|
echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"},"
|
||||||
date="$(cat "content/artigos/$filename" | yq --front-matter=extract .date | sed -e 's/ ..:..:..//' -e 's/-/\//g')"
|
done
|
||||||
echo " {url=\"$date/$slug\", title=\"\", path=\"$filename\"},"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "]"
|
echo "]"
|
||||||
|
Loading…
Reference in New Issue
Block a user