aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2023-02-10 10:31:05 -0800
committerClayton Craft <clayton@craftyguy.net>2023-02-10 11:34:45 -0800
commit201e9051544cf8c8e8ad22845a79c19cd171ebe8 (patch)
treebc2dd2c03f07cfbf1d2d3bcfb822b270380c07de /templates
parent7daa254c0b2be4055a40ef320f44e7d066dca753 (diff)
templates/base: allow excluding twitter stuff from page source
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
1 files changed, 2 insertions, 0 deletions
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 %}<meta property="og:description" content="{{ description }}">{% endif %}
{% if image %}<meta property="og:image" content="{{ image }}">{% endif %}
+ {% if config.extra.twitter %}
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="{{ url | safe }}">
{% if title %}<meta property="twitter:title" content="{{ title }}">{% endif %}
{% if description %}<meta property="twitter:description" content="{{ description }}">{% endif %}
{% if image %}<meta property="twitter:image" content="{{ image }}">{% endif %}
+ {% endif %}
<link rel="canonical" href="{{ url | safe }}">
{% if image %}<link rel="shortcut icon" type="image/x-icon" href="{{ get_url(path=config.extra.logo, trailing_slash=false) }}">{% endif %}