Compare commits
3 Commits
45a5c727a3
...
e0d8a36ab2
Author | SHA1 | Date | |
---|---|---|---|
e0d8a36ab2 | |||
1c98cfcdc7 | |||
5f6dbefe77 |
@ -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
|
- apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev bash ack
|
||||||
- cargo install stork-search --locked --all-features
|
- cargo install stork-search --locked --all-features
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@ -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\"},"
|
||||||
|
Loading…
Reference in New Issue
Block a user