From 5f16d24ac4334acdbcfadb4891b892ef15998193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lopes?= <2897144+lopes@users.noreply.github.com> Date: Tue, 19 May 2020 20:55:35 -0300 Subject: [PATCH] bugfix in page header --- config.toml | 2 +- content/lorem-ipsum/index.md | 3 ++- templates/page.html | 9 +++------ theme.toml | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index c192e12..f9b3b51 100644 --- a/config.toml +++ b/config.toml @@ -34,7 +34,7 @@ zola386_menu = [ # disqus = "disqus-user" ### SOCIAL MEDIA -# image = "" +image = "https://raw.githubusercontent.com/lopes/zola.386/master/screenshot.png" twitter_user = "lopesoj" linkedin_user = "jlopesjr" github_user = "lopes" diff --git a/content/lorem-ipsum/index.md b/content/lorem-ipsum/index.md index 5669bb1..871b95c 100644 --- a/content/lorem-ipsum/index.md +++ b/content/lorem-ipsum/index.md @@ -11,7 +11,8 @@ tags = ["hac", "velit", "risus"] [extra] comments = true -lang = "br" +lang = "pt" +image = "https://zola386.netlify.app/lorem-ipsum/crt-phosphor-dots.png" +++ Posuere urna nec tincidunt praesent semper. Viverra mauris in aliquam sem fringilla ut morbi tincidunt. Mattis rhoncus urna neque viverra justo nec ultrices dui. Nulla pellentesque dignissim enim sit. Arcu ac tortor dignissim convallis aenean et. diff --git a/templates/page.html b/templates/page.html index 7449f30..8753530 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,12 +4,9 @@ {% block ogtitle %}{{ config.title}} - {{ page.title }}{% endblock ogtitle %} {% block ogdesc %}{{ page.description }}{% endblock ogdesc %} -{% if page.slug %} - {% block ogurl %}{{ config.base_url }}/{{ page.slug }}{% endblock ogurl %} -{% endif %} -{% if page.extra.image %} - {% block ogimg %}{{ page.extra.image }}{% endblock ogimg%} -{% endif %} +{% block ogurl %}{% if page.slug %}{{ config.base_url }}/{{ page.slug }}{% endif %}{% endblock ogurl %} +{% block ogimg %}{% if page.extra.image %}{{ page.extra.image }}{% endif %}{% endblock ogimg %} + {% block breadcrumb %}

diff --git a/theme.toml b/theme.toml index 1842bed..ce36551 100644 --- a/theme.toml +++ b/theme.toml @@ -2,7 +2,7 @@ name = "zola.386" description = "Zola port of the BOOTSTRA.386 theme." license = "MIT" homepage = "https://github.com/lopes/zola.386" -min_version = "0.2.0" +min_version = "0.2.1" demo = "https://zola-386.netlify.com" [author]