improve a bunch of images with new midjourney (#1722)

* improve a bunch of images with new midjourney

* more images

* more images

* change immutable data structures preview
This commit is contained in:
Andrey Vasnetsov
2025-06-23 14:59:05 +02:00
committed by GitHub
parent 9fe34435e8
commit 69c9a08f2d
149 changed files with 40 additions and 6 deletions
+20 -2
View File
@@ -17,11 +17,29 @@ if [ ! -f "$1" ]; then
exit 1
fi
ARTICLE_TITLE=${ARTICLE_TITLE:-""}
# If the article title is not provided, try to get it from the article info file
if [ -z "$ARTICLE_TITLE" ]; then
ARTICLE_INFO_PATH="./qdrant-landing/content/articles/${2}.md"
if [ -f "$ARTICLE_INFO_PATH" ]; then
ARTICLE_TITLE=$(cat $ARTICLE_INFO_PATH | grep "title:" | head -n 1 | sed 's/title: //g' | sed 's/"//g')
fi
fi
if [ -z "$ARTICLE_TITLE" ]; then
echo "Please provide an article title"
exit 1
fi
# Get the directory of the script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
TITLE_TEXT="${ARTICLE_TITLE}" \
SUBTITLE_TEXT="Article" \
PATH_TO_IMAGE=$1 \
STATIC_DIRECTORY_NAME="./qdrant-landing/static/articles_data/${2}" \
SOCIAL_PREVIEW_RESOLUTION="1200x630" \