From 201e9051544cf8c8e8ad22845a79c19cd171ebe8 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Fri, 10 Feb 2023 10:31:05 -0800 Subject: [PATCH] templates/base: allow excluding twitter stuff from page source --- config.toml | 1 + templates/base.html | 2 ++ 2 files changed, 3 insertions(+) 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 9e3965f..e4d358e 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 %}