this repo has no description

ft: add Twitter metadata

Changed files
+16
templates
+4
config.toml
···
og_preview_img = "banner.png"
webmention = "https://webmention.io/hauleth.dev/webmention"
+
+
[extra.twitter]
+
site = "@hauleth"
+
creator = "@hauleth"
+12
templates/index.html
···
{%- if config.generate_feed -%}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }} Feed" href="{{ get_url(path=config.feed_filename) | safe}}">
{%- endif -%}
+
{% endblock %}
+
+
{% block og_preview %}
+
{{ social::og_preview() }}
+
+
{%- if config.extra.twitter.site -%}
+
<meta name="twitter:site" content="{{ config.extra.twitter.site }}" />
+
{%- endif -%}
+
{%- if config.extra.twitter.creator -%}
+
<meta name="twitter:creator" content="{{ config.extra.twitter.creator }}" />
+
{%- endif -%}
+
{%- if config.extra.webmention -%}
<link rel="webmention" href="{{ config.extra.webmention }}" >
{%- endif -%}