diff --git a/config.toml b/config.toml index c112134..0800857 100644 --- a/config.toml +++ b/config.toml @@ -17,6 +17,7 @@ highlight_code = true [extra] author = "Ahmed Alaa" logo = "images/logo.png" +twitter = true header_nav = [ { name = "~home", url = "/" }, { name = "#tags", url = "/tags" }, diff --git a/templates/base.html b/templates/base.html index 713307c..8c737df 100644 --- a/templates/base.html +++ b/templates/base.html @@ -60,11 +60,13 @@ {% if description %}{% endif %} {% if image %}{% endif %} + {% if config.extra.twitter %} {% if title %}{% endif %} {% if description %}{% endif %} {% if image %}{% endif %} + {% endif %} {% if image %}{% endif %}