Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vtbag/website. The @vtbag website. ⭐️ Please star to support this work! ⭐️
Something went wrong. Try again.
12345678910111213141516171819202122#! /bin/sh
sed -i 's/showSubResults: true,/showSubResults:true,excerptLength:40,/' node_modules/@astrojs/starlight/components/Search.astrosed -i 's/slug: PAGE_TITLE_ID/slug: "top"/' node_modules/@astrojs/starlight/utils/generateToC.tsastro check && astro buildif [ "$?" -ne "0" ]; then exit 1fi./bin/check_links.sh | grep -v "#starlight-image-zoom-icon-zoom" | grep -v "^unused page /demo-explainer/"[ -n "$GS" ] && echo -n "google-site-verification: ${GS}" > ./dist/${GS}
find dist -type f -exec grep -l '<a href=\S* rel="me"' {} \; | xargs sed -i 's|<a \(href=\S* rel="me"\)|<a \1 target="_blank"|'find dist -type f -exec grep -l 'script src="/chamber.js/"' {} \; | xargs sed -i 's|script src="/chamber.js/"|script src="/chamber.js"|'find dist -type f -exec grep -l 'source src="/video.mp4"' {} \; | xargs sed -i 's|source src="/video.mp4"|source src="https://cdn.pixabay.com/video/2021/02/21/65860-515617507_tiny.mp4"|'
echo "/*\n cache-control: max-age=60\n last-modified: `date -u +'%a, %d %b %Y %H:%M:%S GMT'`" > dist/_headers
cat dist/_headers
rm -f dist/sitemap-0.xmlnode ./bin/rss-update.ts