diff --git a/README.md b/README.md index e95de99..f94b7ce 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ section_path = "blog/_index.md" ``` [extra] -header = {title = "Hello! I'm tabi~", img = "img/main.webp" } +header = {title = "Hello! I'm tabi~", img = "img/main.webp", img_alt = "Your Name" } ``` The content outside the front matter will be rendered between the header title and the posts listing. In the screenshot above, it's the text that reads "tabi is a fast, lightweight, and modern Zola theme…". diff --git a/content/_index.ca.md b/content/_index.ca.md index 3142ded..39afee8 100644 --- a/content/_index.ca.md +++ b/content/_index.ca.md @@ -5,7 +5,7 @@ sort_by = "date" template = "section.html" [extra] -header = {title = "Hola! Soc tabi~", img = "img/main.webp" } +header = {title = "Hola! Soc tabi~", img = "img/main.webp", img_alt = "Óscar Fernández, l'autor de tabi" } section_path = "blog/_index.ca.md" max_posts = 4 social_media_card = "img/social_cards/ca.jpg" diff --git a/content/_index.es.md b/content/_index.es.md index 52497e2..cf8829b 100644 --- a/content/_index.es.md +++ b/content/_index.es.md @@ -5,7 +5,7 @@ sort_by = "date" template = "section.html" [extra] -header = {title = "¡Hola! Soy tabi~", img = "img/main.webp" } +header = {title = "¡Hola! Soy tabi~", img = "img/main.webp", img_alt = "Óscar Fernández, el autor de tabi" } section_path = "blog/_index.es.md" max_posts = 4 social_media_card = "img/social_cards/es.jpg" diff --git a/content/_index.md b/content/_index.md index ef494cd..bce83ab 100644 --- a/content/_index.md +++ b/content/_index.md @@ -5,7 +5,7 @@ sort_by = "date" template = "section.html" [extra] -header = {title = "Hello! I'm tabi~", img = "img/main.webp" } +header = {title = "Hello! I'm tabi~", img = "img/main.webp", img_alt = "Óscar Fernández, the theme's author" } section_path = "blog/_index.md" max_posts = 4 social_media_card = "img/social_cards/index.jpg" diff --git a/static/img/social_cards/es.jpg b/static/img/social_cards/es.jpg index d03480e..c56f364 100644 Binary files a/static/img/social_cards/es.jpg and b/static/img/social_cards/es.jpg differ diff --git a/templates/partials/home_banner.html b/templates/partials/home_banner.html index 9bcf83d..54d1a5f 100644 --- a/templates/partials/home_banner.html +++ b/templates/partials/home_banner.html @@ -16,7 +16,7 @@ {%- set image_path = get_url(path=header.img, trailing_slash=false) | safe -%} {%- endif -%}
- +
{%- endif -%}