🔍️ chore(SEO): update social media cards
@ -71,7 +71,7 @@ function has_body_changes() {
|
|||||||
# Function to update the social media card for a post or section.
|
# Function to update the social media card for a post or section.
|
||||||
function generate_and_commit_card {
|
function generate_and_commit_card {
|
||||||
local file=$1
|
local file=$1
|
||||||
social_media_card=$(social-cards-zola -o static/img/social_cards -b http://127.0.0.1:1025 -u -p -i "$file") || {
|
social_media_card=$(social-cards-zola -o static/img/social_cards -b http://127.0.0.1:1111 -u -p -i "$file") || {
|
||||||
echo "Failed to update social media card for $file"
|
echo "Failed to update social media card for $file"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@ -87,6 +87,8 @@ function generate_and_commit_card {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export -f generate_and_commit_card
|
||||||
|
|
||||||
function has_minified_version() {
|
function has_minified_version() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
local extension="${file##*.}"
|
local extension="${file##*.}"
|
||||||
@ -200,6 +202,7 @@ modified_md_files=$(git diff --cached --name-only --diff-filter=M | grep -E '\.m
|
|||||||
|
|
||||||
# Loop through each modified .md file.
|
# Loop through each modified .md file.
|
||||||
for file in $modified_md_files; do
|
for file in $modified_md_files; do
|
||||||
|
echo $file
|
||||||
# If the file is an .md file and it's a draft, abort the commit.
|
# If the file is an .md file and it's a draft, abort the commit.
|
||||||
if is_draft "$file"; then
|
if is_draft "$file"; then
|
||||||
error_exit "Draft file $file is being committed!"
|
error_exit "Draft file $file is being committed!"
|
||||||
|
@ -9,6 +9,7 @@ tags = ["funcionalitat", "tutorial", "Preguntes Freqüents"]
|
|||||||
[extra]
|
[extra]
|
||||||
quick_navigation_buttons = true
|
quick_navigation_buttons = true
|
||||||
toc_ignore_pattern = "^(Preguntes Freqüents)"
|
toc_ignore_pattern = "^(Preguntes Freqüents)"
|
||||||
|
social_media_card = "img/social_cards/ca_blog_faq_languages.jpg"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
tabi simplifica el procés de creació de llocs web multilingües perquè puguis connectar amb una audiència global. En aquesta guia, t'explicarem tot el que necessites saber, des de com configurar la llengua principal en el teu lloc fins a com contribuir amb les teves pròpies traduccions. Comencem!
|
tabi simplifica el procés de creació de llocs web multilingües perquè puguis connectar amb una audiència global. En aquesta guia, t'explicarem tot el que necessites saber, des de com configurar la llengua principal en el teu lloc fins a com contribuir amb les teves pròpies traduccions. Comencem!
|
||||||
|
@ -9,6 +9,7 @@ tags = ["funcionalidad", "tutorial", "Preguntas Frecuentes"]
|
|||||||
[extra]
|
[extra]
|
||||||
quick_navigation_buttons = true
|
quick_navigation_buttons = true
|
||||||
toc_ignore_pattern = "^(Preguntas Frecuentes)"
|
toc_ignore_pattern = "^(Preguntas Frecuentes)"
|
||||||
|
social_media_card = "img/social_cards/es_blog_faq_languages.jpg"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
tabi simplifica el proceso de crear sitios web multilingües para que puedas conectar con una audiencia global. En esta guía, te explicaremos todo lo que necesitas saber, desde cómo configurar el idioma principal en tu sitio hasta cómo contribuir con tus propias traducciones. ¡Empecemos!
|
tabi simplifica el proceso de crear sitios web multilingües para que puedas conectar con una audiencia global. En esta guía, te explicaremos todo lo que necesitas saber, desde cómo configurar el idioma principal en tu sitio hasta cómo contribuir con tus propias traducciones. ¡Empecemos!
|
||||||
|
@ -9,6 +9,7 @@ tags = ["showcase", "tutorial", "FAQ"]
|
|||||||
[extra]
|
[extra]
|
||||||
quick_navigation_buttons = true
|
quick_navigation_buttons = true
|
||||||
toc_ignore_pattern = "^(Frequently Asked Questions)"
|
toc_ignore_pattern = "^(Frequently Asked Questions)"
|
||||||
|
social_media_card = "img/social_cards/blog_faq_languages.jpg"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
To broaden your reach to a global audience, tabi streamlines the process of building multilingual websites. In this guide, we'll walk you through everything you need to know—from setting a default language for your site to contributing your own translations. Let's get started!
|
To broaden your reach to a global audience, tabi streamlines the process of building multilingual websites. In this guide, we'll walk you through everything you need to know—from setting a default language for your site to contributing your own translations. Let's get started!
|
||||||
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 55 KiB |
BIN
static/img/social_cards/blog_faq_languages.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 59 KiB |
BIN
static/img/social_cards/ca_blog_faq_languages.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 58 KiB |
BIN
static/img/social_cards/es_blog_faq_languages.jpg
Normal file
After Width: | Height: | Size: 80 KiB |