My personal blog hauleth.dev
blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ft: add Twitter metadata

+16
+4
config.toml
··· 66 66 og_preview_img = "banner.png" 67 67 68 68 webmention = "https://webmention.io/hauleth.dev/webmention" 69 + 70 + [extra.twitter] 71 + site = "@hauleth" 72 + creator = "@hauleth"
+12
templates/index.html
··· 7 7 {%- if config.generate_feed -%} 8 8 <link rel="alternate" type="application/atom+xml" title="{{ config.title }} Feed" href="{{ get_url(path=config.feed_filename) | safe}}"> 9 9 {%- endif -%} 10 + {% endblock %} 11 + 12 + {% block og_preview %} 13 + {{ social::og_preview() }} 14 + 15 + {%- if config.extra.twitter.site -%} 16 + <meta name="twitter:site" content="{{ config.extra.twitter.site }}" /> 17 + {%- endif -%} 18 + {%- if config.extra.twitter.creator -%} 19 + <meta name="twitter:creator" content="{{ config.extra.twitter.creator }}" /> 20 + {%- endif -%} 21 + 10 22 {%- if config.extra.webmention -%} 11 23 <link rel="webmention" href="{{ config.extra.webmention }}" > 12 24 {%- endif -%}